[trunk]Confirmed PO Lines should not be deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
Hello,
Issue 1 :
Steps:
1) Create a PO with invoicing control set to "Based on Purchase Order lines" , add some order lines to it and confirm the PO.
2) Go to Purchases => Invoice Control => On Purchase Order Lines. You can see the order lines related to the PO you confirmed.
3) Deleted any or all purchase order line.
Behavior I observed: The lines are deleted. Go to Purchases => Purchase Orders , and see the related PO where the line you deleted will not appear.
Expected Behavior : Once the purchase order is confirmed, its purchase order line should not be deleted.
=======
Issue 2:
Steps:
1) Create a PO with invoicing control set to "Based on Purchase Order lines" , add some order lines to it and confirm the PO.
2) Cancel the PO and set it to Draft state.
3) Go to Purchases => Invoice Control => On Purchase Order Lines. You can still see the order lines related to the PO even after setting it to the draft state .
Behavior I observed: You can create an invoice for the PO which is in draft state.
Expected Behavior: While cancelling the Purchase Order, its related lines should also be set to the draft state.
Thanks,
Dharmraj.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 65 lines (+25/-1)1 file modifiedpurchase/purchase.py (+25/-1)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
@Dharmraj : Thanks for the pointing out.