[MIG] rma_purchase: Migration to 14.0

This commit is contained in:
Mateu Griful
2020-12-23 10:53:01 +01:00
committed by Jordi Ballester Alomar
parent 5e0d08aa5b
commit 1cb2277c5e
13 changed files with 16 additions and 34 deletions

View File

@@ -18,7 +18,6 @@ class RmaOperation(models.Model):
default="no",
)
@api.multi
@api.constrains("purchase_policy")
def _check_purchase_policy(self):
if self.filtered(lambda r: r.purchase_policy != "no" and r.type != "supplier"):