Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
948 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất



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. 

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1747
1
thg 8 25
354
2
thg 7 25
2803
3
thg 7 25
620
1
thg 6 25
1072