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
|
# Increments the revision on each save action
|
||||||
@api.multi
|
@api.multi
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
vals["revision"] = self.revision + 1
|
res = True
|
||||||
return super(Agreement, self).write(vals)
|
for rec in self:
|
||||||
|
vals["revision"] = rec.revision + 1
|
||||||
|
res = super(Agreement, rec).write(vals)
|
||||||
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user