account_parallel_currency: test failure test/mapping_parallel_accounts.yml

Bug #1334645 reported by Alexandre Fayolle - camptocamp on 2014-06-26
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Account - Consolidation
High
Lorenzo Battistini

Bug Description

2014-06-26 12:46:48,249 4451 INFO test_70 openerp.modules.loading: module account_parallel_currency: loading test/mapping_parallel_accounts.yml
2014-06-26 12:46:48,297 4451 TEST test_70 openerp.tools.yaml_import: I create Tax Codes
2014-06-26 12:46:48,348 4451 ERROR test_70 openerp.tools.yaml_import: (u'Error', u'Tax code 1 does not have parent')
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/openobject-server/7.0/openerp/tools/yaml_import.py", line 864, in process
    self._process_node(node)
  File "/home/afayolle/work/oerp/openobject-server/7.0/openerp/tools/yaml_import.py", line 875, in _process_node
    self.process_record(node)
  File "/home/afayolle/work/oerp/openobject-server/7.0/openerp/tools/yaml_import.py", line 328, in process_record
    self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
  File "/home/afayolle/work/oerp/server/7.0/openerp/addons/base/ir/ir_model.py", line 971, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/afayolle/work/oca/account-consolidation/7.0/account_parallel_currency/account.py", line 504, in create
    self.create_parallel_tax_codes(cr, uid, [res], context=None)
  File "/home/afayolle/work/oca/account-consolidation/7.0/account_parallel_currency/account.py", line 464, in create_parallel_tax_codes
    % tax_code.code)
except_orm: (u'Error', u'Tax code 1 does not have parent')

Related branches

description: updated

@elbati: since you wrote both the code raising the exception and the test, you're best suited to fix this. :-)

Changed in account-consolidation:
importance: Undecided → High
assignee: nobody → Lorenzo Battistini - Agile BG (elbati)
Changed in account-consolidation:
status: New → Confirmed
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers