← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 874851] Re: purchase_requisition: cannot create purchase order lines manually

 

Hello,

I have faced the same problem which is on product_id_change method, when
I select the product the unit price doesn't change properly in stable
version.

But in trunk it is working fine so I am assigning this to OPW  team for
stable version.

Thanks.

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/874851

Title:
  purchase_requisition: cannot create purchase order lines manually

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  How to reproduce it in stable 6:

  Purchases -> Purchase Management -> Purchase Requisitions -> New
  On "Quotations" tab, New purchase order
  Select a supplier and make sure that all required fields are filled
  Create a new  purchase order line

  The error is:
   product_id_change method from class purchase_order_line does not receive correctly none of its parameters.

  The onchange method call is done this way:
                              <field name="product_id" colspan="4" 
   context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" 
  on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes)"/>

  The problem is that "parent" does not refer to the purchase.order, but
  to the purchase.requisition, and purchase.requisition does not have
  partner_id, pricelist_id, etcetera.

  
  Greetings,

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


References