Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2936 Lượt xem

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.
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1330
2
thg 3 21
8994
2
thg 9 17
5811
1
thg 3 15
10999
1
thg 3 15
4267