Show mandate identification as rec name if is set

This commit is contained in:
Jordi Esteve 2014-02-22 19:24:17 +01:00
parent 7e5c78e3ea
commit d09ddce01d

View file

@ -320,6 +320,9 @@ class Mandate(Workflow, ModelSQL, ModelView):
def default_state():
return 'draft'
def get_rec_name(self, name):
return self.identification or unicode(self.id)
@property
def is_valid(self):
if self.state == 'validated':