Hello
I have modified the workflow of account.invoice, I added other states before 'draft', now I want to modify the onchange_partner_id function so that I can assign a default value for account_id,
first I made the partner_id field editable, and at draft state I made it readonly but account_id has no default value.
should I override the method :onchange_partner_id ?