Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2926 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jan. 25
1320
2
mar. 21
8981
2
sep. 17
5796
1
mar. 15
10995
1
mar. 15
4253