Hello,
I'm building a new model (odoo16.0) and I have the 2 fields below. I want to make the eur_exc_rate field invisible in my form view when the currency field is set to "EUR".
currency = fields.Many2one(
comodel_name='res.currency',
string='Currency',
required=True,
help='Currency used for the bank transfer',
create=False
)
eur_exc_rate = fields.Monetary(
string='Exchange rate',
help="In case the value isn't euro, please provide the mandatory exchange rate (1 eur = X? )",
currency_field='currency'
)
I declared the fields in my form view as below:
But id doesn't work (and can't see any error in the logs).
Any ideas?
(sorry for the newbie questions but I'm quite a beginner)
L.