Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
921 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 25
137
1
ago 25
738
2
ago 25
336
3
ago 25
1078
1
ago 25
626