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

Hi all,

I am developing REST APIs for creating subscriptions in odoo 18 as well as sales orders in odoo. When creating both subscription and sales order simutaneously I am facing trouble to identify which is subscription and which is sales order since both are using same 'sale.order' module. Is there any possible way to use seperate names without giving a specific name when creating subscription and sales order? For example I need to give subscription name as "SUB0001"(with the number increment by 1 each time when  I am creating a subscription) and remain sales order name as the default name.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด



Try enabling the subscription_status field or any other field related to the subscription model, that way you can identify the sale order and subscription sale order. 

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
1757
1
ส.ค. 25
357
2
ก.ค. 25
2808
API xmlrpc - upload pdf bills to account แก้ไขแล้ว
3
ก.ค. 25
624
1
มิ.ย. 25
1077