Hello everyone,
I have a module that depends on 'purchase', but the api.depends does not work except if an api.depends that already exists in the parent model is redefined. Can you make an api.depends on a field that is in the parent model?
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
@api.depends('order_line.product_qty')
def _hellooo(self):
for order in self:
for line in order.order_line:
a=1