Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
924 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
147
1
sie 25
742
2
sie 25
341
3
sie 25
1082
1
sie 25
630