Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
927 Tampilan

Hi all,


Our company sends a lot of quotations to our potential customers, and we would like to distinguish these from official sales orders.


If you could help me to have the following:

Numbering sequence for quotation to be different from the official sales order which was accepted from our customer and confirmed in Odoo.


We would have one sequence numbers once we send the quotation and once we click "confirm" quotation button we get different number sequence and it becomes a sales order.

Example: OFF-2025-001 (quotation, not accepted)

FOC-2025-001 (Sales order, quotation accepted)

I am already aware on how to change the sequences but I have troubles applying the above.


Thank you.

Avatar
Buang
Jawaban Terbai

Converting from OFF-XXXX-XXX to FOC-XXXX-XXX can be a single python line using the replace function original_string.replace("OFF", "FOC") or or using string slicing which is 1 line,  using regex: re.sub(r"OFF", "FOC", which is 2 lines . And you can trigger it by overriding action_confirm of the Sales Order (either with code or with automation). I like your way of using prefix with OFF possibly means Offer and FOC means Final Order Confirmation but they both means discount or reduced price to the customer with OFF=discount and FOC=Free Of Charge. Your customers must be very happy to see the quotations and the sale orders.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 25
150
1
Agu 25
744
2
Agu 25
341
3
Agu 25
1083
1
Agu 25
632