mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[12.0][FIX] agreement_legal: Error when mass action on list view
This commit is contained in:
committed by
Patrick Wilson
parent
7f5dabeff9
commit
a547f25081
@@ -388,5 +388,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