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

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?

Avatar
Zrušit
Nejlepší odpověď

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.


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 25
1008
1
bře 15
5355
1
čvn 20
2618
2
říj 17
3780
1
pro 20
3580