This question has been flagged
1 Reply
1807 Views

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 ? 

Avatar
Discard
Best Answer

http://odootechnical.com/overriding-default_get-method-in-odoo-8/


https://www.odoo.com/forum/help-1/question/how-to-override-private-method-account-invoice-line-25187


 you just follow this links, it will help you,
 if not, you just modify your question with code, 
we will help you.

Avatar
Discard