I am currently running Odoo v13 Community Edition and I am trying to create new fields.
These fields I am creating are inside the purchase.order.line model. These fields are computed but for me to do that I need to get a field called "currency_rate" from the purchase.order model.
I tried to add this before the function:
@api.depends("purchase.order.currency_rate")
but it did not work.
Then I also tried to get the field by using the following 2 methods
x_unit_price = ... * self.super.currency_rate
and
x_unit_price = ... * super.currency_rate
and both did not work
Does anyone know what can I do to get the field?
PS the currency rate field is different between each Purchase Order
I need help please :)
Thank you in advance