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

We are sharing Sales Quotations with customers who use the portal to view and confirm them.


Since confirmation kicks off procurement (Purchase Orders / Manufacturing Orders) we would like our Users to review the confirmed (from a customer perspective) Quotation before confirming (from a procurement perspective) it into a Sales Order.


What is the best way to do this?

Awatar
Odrzuć
Najlepsza odpowiedź

First, examine the reasons that orders confirmed by Customers can't be confirmed for procurement at the same time and resolve them as much as you can (pricelists incorrect, Vendors not setup, reordering rules not configured, etc) to make sure you don't introduce an artificial delay in your process.

If you really need this step, you can interfere with the confirmation and stop Odoo moving Quotations beyond the QUOTATION SENT stage.

Leverage the Automation Framework and create an Automated Action that watches the state field and is applied on all records that move "into" the SALES ORDER state:




This code snippet checks WHO is doing the confirming.  If it is not an end User (uid = 1 is Odoo Bot), then the state is set to "sent" instead of "sale" and a custom field x_signed is set to True, allowing you to find Quotations that have been signed but not yet confirmed (you can also create a custom Filter to find them faster).


Please test this in your own database, this is an approach, not necessarily a complete solution.  There may be additional cases you have to consider.


Awatar
Odrzuć
Najlepsza odpowiedź

Have tried it on version 17 not working gives an error so any suggestions wto make it working on version 17

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
1008
1
mar 15
5355
1
cze 20
2618
2
paź 17
3780
1
gru 20
3580