[trunk]Confirmed PO Lines should not be deleted

Bug #1188479 reported by Dharmraj Zala(OpenERP)
6
This bug affects 1 person
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

Revision history for this message
Amit Parik (amit-parik) wrote :

@Dharmraj : Thanks for the pointing out.

summary: - [trunk]Confirmed PO Lines must not be deleted
+ [trunk]Confirmed PO Lines should not be deleted
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Dharmraj Zala(OpenERP) (dharmraj.zala-openerp) wrote :

Hello,

It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1188479-dharmraj branch.
Revision Id: <email address hidden>
Revision No : 8755

Thanks,
Dharmraj.

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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