[Fix] Bug 338233 : Corrected Pricelist application on qty and price(ref:CDA)

bzr revid: jvo@tinyerp.com-20090310071213-7efp485g4bs7pqtz
This commit is contained in:
Jay (Open ERP) 2009-03-10 12:42:13 +05:30
parent 66a8766413
commit 86c4375065
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ class purchase_order_line(osv.osv):
'date': date_order,
})[pricelist]
qty = 1
qty = qty or 1.0
seller_delay = 0
for s in prod.seller_ids:
seller_delay = s.delay

View File

@ -173,7 +173,7 @@
<notebook>
<page string="Order Line">
<field colspan="4" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order, parent.fiscal_position)"/>
<field name="product_qty"/>
<field context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" name="product_qty" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order, parent.fiscal_position)"/>
<field name="product_uom" on_change="product_uom_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order)"/>
<field colspan="4" name="name"/>
<field name="date_planned"/>