Add related_sudo where it may be needed

PEP8 fix
This commit is contained in:
Alexis de Lattre
2018-07-09 10:41:53 +02:00
parent 6ef322be4c
commit f34a731d95
8 changed files with 15 additions and 15 deletions

View File

@@ -9,4 +9,4 @@ class MrpBom(models.Model):
_inherit = 'mrp.bom'
_rec_name = 'product_id'
sale_ok = fields.Boolean(related='product_id.sale_ok', store=True)
sale_ok = fields.Boolean(related='product_id.sale_ok', store=True, related_sudo=True)