Skip to Content
Menu
This question has been flagged
1 Reply
1948 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
Related Posts Replies Views Activity
0
Apr 24
400
4
Nov 23
4250
0
Oct 23
378
0
Dec 22
1334
2
Dec 23
17353