summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2014-06-23 10:25:49 +0200
committerJosse Colpaert <jco@odoo.com>2014-06-23 10:25:49 +0200
commit56c669b9b37a9d08b3dfd35b611cf06e6fa21e7a (patch)
tree506e71d795195cba84a9d943086f2137375f796e
parentcf48492570bf1eb7d4cd68861f32caa697136660 (diff)
[FIX] Default valuation has to be on product template
-rw-r--r--addons/stock_account/product.py5
-rw-r--r--addons/stock_account/stock_account_data.xml2
2 files changed, 1 insertions, 6 deletions
diff --git a/addons/stock_account/product.py b/addons/stock_account/product.py
index 807c5bc08fc..cdab10af624 100644
--- a/addons/stock_account/product.py
+++ b/addons/stock_account/product.py
@@ -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):
diff --git a/addons/stock_account/stock_account_data.xml b/addons/stock_account/stock_account_data.xml
index 4dea1742498..8723d11c9d3 100644
--- a/addons/stock_account/stock_account_data.xml
+++ b/addons/stock_account/stock_account_data.xml
@@ -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>