mrp_operations : duplicates procurement and generates Draft move for relevant outgoing picking.

Bug #530984 reported by twenger26
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
gpa(OpenERP)

Bug Description

ver. 5.07
When a sales order is generated openMRP creates duplicate procurement orders.

steps to reproduce
1. install new database with demonstration data
2. install mrp_operations module
3. make a sales order for product CPU_GEN
4. goto "procurement orders" in the manufacturing menu.
5. double procurement orders will be made for all subproducts within the CPU_GEN bom.
6. the duplicate entries will be in "DRAFT" status.

Revision history for this message
twenger26 (twenger26) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

We tried the same steps, but could not face the error.

Would you please tell us ,what is the policy of sale order?

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
twenger26 (twenger26) wrote :

Hi,
The packing policy is Partial Delivery, and the shipping policy is Invoice from the Packing. I have also tried switching the policies and got the same results. I've attached a screen shot of the sales order. Please let me know if you need anything else.

Revision history for this message
twenger26 (twenger26) wrote :

Hello,
I was able to narrow it down so you can reproduce the bug. This bug is dependent on sales policies.
Steps to reproduce:
1. install new database with demonstration data
2. In the initial configuration wizard choose Manufacturing profile and the following under sales configuration
    a. Packing Default Policy: Direct Delivery
    b. Shipping Default Policy: Invoice Based on Deliveries
    c. Steps to Deliver a Sale Order: Packing List & Delivery Order
3. install mrp_operations module and the mrp_JIT module. Both must be installed
4. make a sales order for product CPU_GEN
5. goto "procurement orders" in the manufacturing menu.
6. double procurement orders will be made for all subproducts within the CPU_GEN bom.
7. the duplicate entries will be in "DRAFT" status.

The attachment will show how the sales configuration options are set to duplicate this.

Changed in openobject-addons:
status: Incomplete → Confirmed
Changed in openobject-addons:
assignee: nobody → gpa(Open ERP) (gpa-openerp)
summary: - mrp_operations duplicate procurements added
+ mrp_operations : duplicates procurement and generates Draft move for
+ relevant outgoing picking.
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello guys,

Thanks for reporting.

@Jeroen Mollers, thanks for the excellent patch.

It has been fixed in : by revision

Stable : 2861 <email address hidden>
Trunk : 5022 <email address hidden>

Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.