[FIX] Default valuation has to be on product template
This commit is contained in:
parent
cf48492570
commit
56c669b9b3
|
@ -142,11 +142,6 @@ class product_template(osv.osv):
|
||||||
help="When doing real-time inventory valuation, counterpart journal items for all outgoing stock moves will be posted in this account, unless "
|
help="When doing real-time inventory valuation, counterpart journal items for all outgoing stock moves will be posted in this account, unless "
|
||||||
"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."),
|
"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):
|
class product_category(osv.osv):
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</record>
|
</record>
|
||||||
<record forcecreate="True" id="default_valuation" model="ir.property">
|
<record forcecreate="True" id="default_valuation" model="ir.property">
|
||||||
<field name="name">Valuation Property</field>
|
<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="value">manual_periodic</field>
|
||||||
<field name="type">selection</field>
|
<field name="type">selection</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
Loading…
Reference in New Issue