Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
984 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
août 25
961
2
août 25
460
2
août 25
509
3
août 25
1336
1
août 25
739