Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2725 Переглядів

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.
Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 25
1051
2
бер. 21
8725
2
вер. 17
5555
1
бер. 15
10825
1
бер. 15
4055