[FIX] Default valuation has to be on product template

This commit is contained in:
Josse Colpaert 2014-06-23 10:25:49 +02:00
parent cf48492570
commit 56c669b9b3
2 changed files with 1 additions and 6 deletions

View File

@ -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 "
"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):

View File

@ -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>