Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2143 Visualizzazioni

In Odoo ce v14, when creating invoice from a purchase order I got the following error:

_prepare_account_move_line() missing 1 required positional argument: 'move'" while evaluating
'if records:\n                action = records.action_create_invoice()'

Creating invoice from sale order works fine, this issue appear only for purchase orders.

I am a newbie in Odoo I can't get out of this.

Help will be appreciated.

Thank you.
Avatar
Abbandona
Risposta migliore

use the following method it may help you

def _prepare_account_move_line(self, move):
res = super(ClassName, self)._prepare_account_move_line(move)

"""  Here will be your logic """

return res

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 25
480
2
mar 21
7980
2
set 17
4978
1
mar 15
10260
1
mar 15
3682