stock_location tests fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
server revno: 4769
addons revno: 8521
web revno: 3671
Although stock_location tests pass on the runbot (i.e. when all modules are isntalled), installing it alone makes tests fail.
I.e. something like
python2 openerp-server --addons-path ../../addons/
results in
...
2013-01-28 11:05:54,546 17373 INFO xx openerp.
2013-01-28 11:05:56,827 17373 ERROR xx openerp.
2013-01-28 11:05:56,828 17373 ERROR xx openerp.
...
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 25 lines (+2/-2)2 files modifiedprocurement/procurement_workflow.xml (+1/-1)
stock_location/test/stock_location_pull_flow.yml (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
I have found the solution for this problem.
ERROR: "2013-01-28 11:05:56,827 17373 ERROR xx openerp. tools.yaml_ import: AssertionError in Python code : Procurement order hasn't Created."
File: "stock_ location/ test/stock_ location_ pull_flow. yml"
Line: 196 -> procurement_ ids=self. search( cr, uid, [('name' ,'=','E001' )])
Solution: procurement_ ids=self. search( cr, uid, [('name' ,'=','Testing pulled flow')])
_______ _______ _______ _____
ERROR: " 2013-01-28 11:05:56,828 17373 ERROR xx openerp. tools.yaml_ import: AssertionError in Python code : Picking hasn't Created."
File: "procurement/ procurement_ workflow. xml"
Line: 156 -> <field name="condition ">not check_produce() and not check_buy()</field>
Solution: <field name="condition ">not check_produce() and not check_buy() and not check_move( )</field>
The secound Problem of the test is that the workflow didn't create the stock.picking object. The extended part of the procurement workflow in "stock_ location/ procurement_ pull_workflow. xml" didnt work, because the base workflow in "procurement/ procurement_ workflow. xml" has a Item with incomplete condition.