fix product log

This commit is contained in:
ivan deng
2021-08-06 16:30:17 +08:00
parent 40ab2bd157
commit 15ffc5ca24
5 changed files with 15 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ class MrpWorkCenter(models.Model):
child_all_count = fields.Integer(
'Indirect Surbordinates Count',
compute='_compute_child_all_count', store=False)
level = fields.Integer('Level', compute='_compute_level', inverse=False, readonly=True, store=True)
level = fields.Integer('Level', compute='_compute_level', inverse=False, readonly=True, default='1', store=True)
@api.depends('child_ids.child_all_count')
def _compute_child_all_count(self):