Is there a method in odoo Online to create an invoice from an action?
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
6983
มุมมอง
Hello,
I don't really know the purpose but if you want to create an empty customer invoice.
In python you can do a method like:
def create_empty_invoice(self):
self.env['account.move'].create({'move_type': 'out_invoice'})
Then you can add a button in form view for example calling the method
Hope it will help you
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
1
มี.ค. 23
|
4166 | ||
|
|
1
พ.ย. 22
|
5161 | ||
|
Create invoice via xmlrpc
แก้ไขแล้ว
|
|
1
พ.ย. 22
|
5287 | |
|
|
1
ก.ย. 20
|
5236 | ||
|
|
1
ก.ค. 20
|
6474 |