[fix] variants with extra on product list view

bzr revid: fp@tinyerp.com-20090630125514-gp3gr3dodugyh90v
This commit is contained in:
Fabien Pinckaers
2009-06-30 14:55:14 +02:00
parent 81b9288a07
commit f9e8e5f27f
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -383,6 +383,7 @@ class product_product(osv.osv):
uom.id, product.list_price, context['uom'])
else:
res[product.id] = product.list_price
res[product.id] = (res[product.id] or 0.0) * product.price_margin + product.price_extra
return res
def _get_partner_code_name(self, cr, uid, ids, product_id, partner_id, context={}):
+4
View File
@@ -116,6 +116,8 @@
<separator string="Base Prices" colspan="4"/>
<field name="standard_price"/>
<field name="list_price"/>
<field name="price_margin" select="1"/>
<field name="price_extra" select="1"/>
<field groups="base.group_extended" name="cost_method"/>
<newline/>
<field colspan="4" name="seller_ids" nolabel="1"/>
@@ -533,6 +535,8 @@
<separator string="Base Prices" colspan="4"/>
<field name="standard_price"/>
<field name="list_price"/>
<field name="price_margin" select="1"/>
<field name="price_extra" select="1"/>
<field groups="base.group_extended" name="cost_method"/>
<newline/>
<field colspan="4" name="seller_ids" nolabel="1"/>