Greetings!
In odoo 13 the model sale.order has this definition for this field
But if I want to make this field readonly I have several ways:
Add attrs readonly in view
Overwrite the definition by rewriting it again (payment_term_id = fields.Many2o....
I can use states={'draft': [('readonly', False)]} or I can use required=True directly
I wonder if there is another way to resolve this, for example rewrite some method that tries to get the field attributes for the view. Or something like that.
Kind regards.