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

Hi there,

i want to create an invoice with a server action, based on the record's data.


So i created one serve action to create the invoice, and one to create the invoice line.

Finally i created the overall server action to firstly create the invoice, then the invoice line.

On the invoice line i fill:

- move_id (mandatory)

- currency (mandatory)

- product

- account

- label

- vat code

- list price


My temporary result is that the invoice is created and the invoice line as well but...

- the invoice line's subtotal is still 0

- the journal entries are not created

It seems that i need to trigger an action to recalculate the invoice total.


Can anyone help me to point out what i need to do?

Thanks in advance!


I'm using V14 & studio, no Odoo.sh

อวตาร
ละทิ้ง

Can you please send screenshot to see what the server action looks like?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 21
2262
2
มี.ค. 25
1261
1
เม.ย. 24
2038
3
ต.ค. 23
8301
3
ก.พ. 24
3747