← Back to team overview

openerp-community-reviewer team mailing list archive

lp:~therp-nl/ocb-addons/6.1-lp1244663_failing_test_purchase_double_validation into lp:ocb-addons/6.1

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/ocb-addons/6.1-lp1244663_failing_test_purchase_double_validation into lp:ocb-addons/6.1.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1244663 in OpenERP Community Backports (Addons): "[ocb-6.1] Failing test in purchase_double_validation"
  https://bugs.launchpad.net/ocb-addons/+bug/1244663

For more details, see:
https://code.launchpad.net/~therp-nl/ocb-addons/6.1-lp1244663_failing_test_purchase_double_validation/+merge/192708

Rev. 6800 of ocb-addons/6.1 adds a new check on missing stock input accounts, which raises in a test from the purchase_double_validation module. This change adds demo data to configure the products from this test correctly.

-- 
https://code.launchpad.net/~therp-nl/ocb-addons/6.1-lp1244663_failing_test_purchase_double_validation/+merge/192708
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~therp-nl/ocb-addons/6.1-lp1244663_failing_test_purchase_double_validation into lp:ocb-addons/6.1.
=== modified file 'account_anglo_saxon/__openerp__.py'
--- account_anglo_saxon/__openerp__.py	2012-01-31 13:36:57 +0000
+++ account_anglo_saxon/__openerp__.py	2013-10-25 14:19:40 +0000
@@ -38,7 +38,7 @@
     "depends": ["product", "purchase"],
     "category": "Hidden/Dependency",
     "init_xml": [],
-    "demo_xml": [],
+    "demo_xml": ['account_anglo_saxon_demo.xml'],
     "update_xml": ["product_view.xml",],
     "auto_install": False,
     "installable": True,

=== added file 'account_anglo_saxon/account_anglo_saxon_demo.xml'
--- account_anglo_saxon/account_anglo_saxon_demo.xml	1970-01-01 00:00:00 +0000
+++ account_anglo_saxon/account_anglo_saxon_demo.xml	2013-10-25 14:19:40 +0000
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <!-- 
+            Create a stock input account in the minimal
+            chart of accounts
+        -->
+
+        <record id="stk_in" model="account.account">
+            <field name="code">X12000</field>
+            <field name="name">Incoming Stocks - (test)</field>
+            <field ref="account.cas" name="parent_id"/>
+            <field name="type">other</field>
+            <field name="user_type" ref="account.data_account_type_asset"/>
+        </record>
+
+        <!-- 
+             Set the input account to these products, purchased in
+             the tests in purchase_double_validation
+        -->
+
+        <record id="product.product_product_pc4" model="product.product">
+            <field name="property_stock_account_input"
+                   ref="stk_in" />
+        </record>
+
+        <record id="product.product_product_hdd2" model="product.product">
+            <field name="property_stock_account_input"
+                   ref="stk_in" />
+        </record>
+
+    </data>
+</openerp>


Follow ups