← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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,

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References