purchase.requisition: make_po should not override requisition's name default value

Bug #967415 reported by Aristóbulo Meneses
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

Bug Description

at this line http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/purchase_requisition/purchase_requisition.py#L54 a default value is declared for purchase.requisition's name, then at http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/purchase_requisition/purchase_requisition.py#L243 in procurement.order's make_po method is assigning (hardcoded) a sequence value to name field.

This should not happen, because if you inherit purchase.requistion object a re-declare name's default value then make_po will ignore default value.

Name assignation should not be declared at this point http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/purchase_requisition/purchase_requisition.py#L243 overriding default value.

Related branches

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
status: Confirmed → In Progress
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Aristóbulo Meneses,

Thanks for reporting!

It has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-967415-amb branch with following revision no and id.

rev no :6697
rev id : 6697 <email address hidden>

Thanks again!

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

fixed in trunk.
Thanks for the good contribution.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

r7604

Changed in openobject-addons:
status: Fix Committed → Fix Released
milestone: none → 7.0
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.