Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
934 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 25
178
1
srp 25
753
2
srp 25
345
3
srp 25
1100
1
srp 25
635