Skip to content
Snippets Groups Projects
Commit 56c669b9 authored by Josse Colpaert's avatar Josse Colpaert
Browse files

[FIX] Default valuation has to be on product template

parent cf484925
Branches
Tags
No related merge requests found
......@@ -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):
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment