Skip to content

Commit c9a3fe7

Browse files
author
Antoni Marroig Campomar
committed
f
1 parent 093cfc4 commit c9a3fe7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

maintenance_product/models/maintenance_equipment.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ class MaintenanceEquipmentCategory(models.Model):
4242
comodel_name="product.category", string="Product Category", tracking=True
4343
)
4444

45-
@property
46-
def _valid_field_parameter(self):
47-
return super()._valid_field_parameter + ['tracking']
45+
def _valid_field_parameter(self, field, name):
46+
return name == 'tracking' or super()._valid_field_parameter(field, name)
4847

4948
@api.onchange("product_category_id")
5049
def _onchange_product_category_id(self):

0 commit comments

Comments
 (0)