[FIX] Default valuation has to be on product template
This commit is contained in:
parent
cf48492570
commit
56c669b9b3
|
@ -143,11 +143,6 @@ class product_template(osv.osv):
|
|||
"there is a specific valuation account set on the destination location. When not set on the product, the one from the product category is used."),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'valuation': 'manual_periodic',
|
||||
'cost_method': 'standard',
|
||||
}
|
||||
|
||||
|
||||
class product_category(osv.osv):
|
||||
_inherit = 'product.category'
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
</record>
|
||||
<record forcecreate="True" id="default_valuation" model="ir.property">
|
||||
<field name="name">Valuation Property</field>
|
||||
<field name="fields_id" search="[('model', '=', 'product.product'), ('name', '=', 'valuation')]"/>
|
||||
<field name="fields_id" search="[('model', '=', 'product.template'), ('name', '=', 'valuation')]"/>
|
||||
<field name="value">manual_periodic</field>
|
||||
<field name="type">selection</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue