[FIX] product: allow user to set price at template creation
authorMartin Trigaux <mat@openerp.com>
Wed, 9 Jul 2014 11:20:48 +0000 (13:20 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 9 Jul 2014 11:20:48 +0000 (13:20 +0200)
commitbd163d7bd4499f60d6e5b5aca6abedfeb354a4d5
tree00a7279a5463fd6c8a0b1164dac2ae47b2863de5
parent95cc7054ec9a5d9f5141f27107d5a68597028ae8
[FIX] product: allow user to set price at template creation

The lst_price field on product.template is a related to list_price. As we do not allow to set a value for related fields at creation (see orm.py , L4180), we display the list_price instead (float field).
On the product.product form, we display the lst_price (function field, readonly) as we don't want to allow changing the template price from the product. opw 609497
addons/product/product_view.xml