mirror of
https://github.com/NaN-tic/trytond-account_payment_sepa.git
synced 2023-12-13 21:00:30 +01:00
Show mandate identification as rec name if is set
This commit is contained in:
parent
7e5c78e3ea
commit
d09ddce01d
1 changed files with 3 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue