[IMP] Add view_load
bzr revid: jco@openerp.com-20130418134736-7sln2dbco6yfxf91
This commit is contained in:
parent
36407b6598
commit
e17325325f
|
@ -300,9 +300,9 @@ class product_template(osv.osv):
|
|||
'rental': fields.boolean('Can be Rent'),
|
||||
'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]" ,help="Select category for the current product"),
|
||||
'list_price': fields.float('Sale Price', digits_compute=dp.get_precision('Product Price'), help="Base price to compute the customer price. Sometimes called the catalog price."),
|
||||
'standard_price': fields.property('product.template', type = 'float',
|
||||
'standard_price': fields.property('', type = 'float', view_load=True,
|
||||
help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.",
|
||||
groups="base.group_user"),
|
||||
groups="base.group_user", string="Cost"),
|
||||
#fields.float('Cost', digits_compute=dp.get_precision('Product Price'), help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", groups="base.group_user"),
|
||||
'volume': fields.float('Volume', help="The volume in m3."),
|
||||
'weight': fields.float('Gross Weight', digits_compute=dp.get_precision('Stock Weight'), help="The gross weight in Kg."),
|
||||
|
|
|
@ -190,15 +190,10 @@ parameter) will see those record just disappear.
|
|||
Product
|
||||
-->
|
||||
|
||||
<record forcecreate="True" id="standard_price" model="ir.property">
|
||||
<field name="name">standard_price</field>
|
||||
<field name="fields_id" search="[('model','=','product.template'),('name','=','standard_price')]"/>
|
||||
<field eval="30.0" name="value"/>
|
||||
</record>
|
||||
|
||||
<record id="product_product_consultant" model="product.product">
|
||||
<field name="list_price">75.0</field>
|
||||
<!--<field name="standard_price">30.0</field>-->
|
||||
<field name="standard_price">30.0</field>
|
||||
<field name="uom_id" ref="product.product_uom_hour"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_hour"/>
|
||||
<field name="name">Service</field>
|
||||
|
|
Loading…
Reference in New Issue