Skip to Content
Menu
This question has been flagged

Hi,


is there a possibility to confirm POs which have an amount of 0$ but have some products.

These POs are generated in my scenario out of Sales Orders as i have activated MTO.

If these POs are now generated and have the amount of 0$, i want to directly have them confirmed.

 

Regards

Bülent


Avatar
Discard
Author

Hi,

is there a possibility to confirm POs which have an amount of 0$ but have some products.

These POs are generated in my scenario out of Sales Orders as i have activated MTO.

If these POs are now generated and have the amount of 0$, i want to directly have them confirmed.

Regards

Bülent

Author Best Answer

I'm using Odoo comm. V10.


I have created one server action called "0D_auto_approve" set it on active and chosse the model PO.
This server action now runs every time when a PO is created. 
I have assigned the filter for amount_total = 0.

The action itself calls a phyton code and excecudes
 if records: records.button_approve()

All is fine. All POs with the amount of 0 are confirmed automatically.
I have only the problem they the POs are split again.

Details: My product is setup as (BOM)
- 2Parts from Product A from Supplier ABC
- 2Parts from Product A from Supplier ABC
- 1 Part from Supplier D

Now i get 3 POs confirmed directly. Would have expected one confirmed PO per Supplier.
Is there a possibility to get the standard merge of the POs done before this automation runs?

Avatar
Discard

Please create a new thread for a new question. I will delete this post later.

Related Posts Replies Views Activity
2
Nov 22
10500
1
Mar 15
3392
1
Mar 15
7636
1
Nov 23
530
0
Mar 15
2999