← Back to team overview

openerp-india team mailing list archive

[Bug 967415] Re: purchase.requisition: make_po should not override requisition's name default value

 

r7604

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/967415

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

Status in OpenERP Addons (modules):
  Fix Committed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/967415/+subscriptions


References