stock_location tests fail

Bug #1107771 reported by Vo Minh Thu
8
This bug affects 1 person
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/trunk/,../../web/trunk/addons/,openerp/tests/addons/ -d xx -i stock_location --test-enable --stop-after-init

results in

    ...
    2013-01-28 11:05:54,546 17373 INFO xx openerp.modules.loading: module stock_location: loading stock_location_demo_cpu3.yml
    2013-01-28 11:05:56,827 17373 ERROR xx openerp.tools.yaml_import: AssertionError in Python code : Procurement order hasn't Created.
    2013-01-28 11:05:56,828 17373 ERROR xx openerp.tools.yaml_import: AssertionError in Python code : Picking hasn't Created.
    ...

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
André Winkler (aw-i) wrote :

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.

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Dhruvit Darji(OpenERP) (ddr-openerp) wrote :

Hello André Winkler (aw-i),

  Your Solution is working fine.
  Thanks for contributing !

  It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1107771-dhruvit
  branch

  Revision No : 8596
  Revision ID : <email address hidden>

  It will be merged soon in trunk.

Thanks,

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.