跳至内容
菜单
此问题已终结
1 回复
2735 查看

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
1064
2
3月 21
8733
2
9月 17
5563
1
3月 15
10833
1
3月 15
4063