[RM] unexpected behavior
This commit is contained in:
parent
7490044254
commit
d9bb974f81
@ -47,14 +47,6 @@ class PartnerContract(models.Model):
|
||||
default='draft'
|
||||
)
|
||||
|
||||
@api.onchange('date')
|
||||
def _change_contract_name(self):
|
||||
"""
|
||||
Procedure for forming contract name
|
||||
:return: contract name in format "DDMM-YY-№"
|
||||
"""
|
||||
self.name = self._calculate_contract_name(self.date)
|
||||
|
||||
@api.multi
|
||||
def action_sign(self):
|
||||
self.write({'state': 'sign'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user