跳至內容
選單
此問題已被標幟
1 回覆
2909 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 25
1299
2
3月 21
8974
2
9月 17
5778
1
3月 15
10983
1
3月 15
4233