mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
@@ -368,5 +368,8 @@ class Agreement(models.Model):
|
||||
# Increments the revision on each save action
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
vals["revision"] = self.revision + 1
|
||||
return super(Agreement, self).write(vals)
|
||||
res = True
|
||||
for rec in self:
|
||||
vals["revision"] = rec.revision + 1
|
||||
res = super(Agreement, rec).write(vals)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user