Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2144 มุมมอง

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
482
2
มี.ค. 21
7980
Account.invoice customization แก้ไขแล้ว
2
ก.ย. 17
4979
1
มี.ค. 15
10260
1
มี.ค. 15
3682