Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2841 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 25
1185
2
Mar 21
8883
2
Sep 17
5675
1
Mar 15
10912
1
Mar 15
4132