[11.0][FIX] mrp_multi_level:

* calendar defined only in warehouse.
 * remove raw query.
This commit is contained in:
Lois Rilo
2018-08-08 11:24:18 +02:00
committed by joan
parent 382954547e
commit 9339af0456
5 changed files with 15 additions and 11 deletions

View File

@@ -19,5 +19,8 @@ class MrpArea(models.Model):
required=True,
)
active = fields.Boolean(default=True)
calendar_id = fields.Many2one('resource.calendar',
'Working Hours')
calendar_id = fields.Many2one(
comodel_name='resource.calendar',
string='Working Hours',
related='warehouse_id.calendar_id',
)