Odoo 14 E
When creating a Customer Invoice and adding invoice lines, I have programmed it so that the Analytic Account is set based on the customer when the line is created.
After the method sets the analytic_account_id, I want to prevent the user from editing it to anything else.
When I try to make the field "readonly" it prevents any writing to it. I want it to be readonly after setting it so it can't be changed from what the above sets it to.
Any ideas?