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
agreement_legal 12.0.2.0.1
This commit is contained in:
committed by
Víctor Martínez
parent
a78e44bff5
commit
387e6957f4
@@ -11,7 +11,7 @@
|
|||||||
"website": "https://github.com/OCA/contract",
|
"website": "https://github.com/OCA/contract",
|
||||||
"category": "Partner",
|
"category": "Partner",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"version": "12.0.2.0.0",
|
"version": "12.0.2.0.1",
|
||||||
"depends": ["contacts", "agreement", "product"],
|
"depends": ["contacts", "agreement", "product"],
|
||||||
"data": [
|
"data": [
|
||||||
"data/ir_sequence.xml",
|
"data/ir_sequence.xml",
|
||||||
|
|||||||
@@ -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