c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15167
[Bug 713570] Re: [6.0.1_l10n_ch] cannot configure l10n_ch
*** This bug is a duplicate of bug 704311 ***
https://bugs.launchpad.net/bugs/704311
Set as Invalid as it is a duplicated one.
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/713570
Title:
[6.0.1_l10n_ch] cannot configure l10n_ch
Status in OpenERP Modules (addons):
Invalid
Bug description:
Hello
configuring l10n_ch fails
I've been told some effort is on-going on this module. This bug report intends to document the problem 6.0.1 user are facing.
on a 6.0.1 server, create from the web-interface a database with or without demo data and with fr_CH language
configure it with finance and accounting module only
choose Swiss accounting plan
1_ first trace back if you have set demo data :
[2011-02-05 11:02:49,945][testch2] ERROR:tests.l10n_ch:('Unknown Error', 'null value in column "address_invoice_id" violates not-null constraint\n')
Traceback (most recent call last):
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 729, in process
self._process_node(node)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 742, in _process_node
self.process_record(node)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 322, in process_record
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
File "/home/sisalpuser/openerp/version6/server/bin/addons/base/ir/ir_model.py", line 686, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/sisalpuser/openerp/version6/server/bin/addons/account/invoice.py", line 353, in create
raise orm.except_orm(_('Unknown Error'), str(e))
except_orm: ('Unknown Error', 'null value in column "address_invoice_id" violates not-null constraint\n')
[2011-02-05 11:02:49,946][testch2] ERROR:test:Tests failed to execute in module l10n_ch
Traceback (most recent call last):
File "/home/sisalpuser/openerp/version6/server/bin/addons/__init__.py", line 670, in load_test
_load_data(cr, module_name, id_map, mode, 'test')
File "/home/sisalpuser/openerp/version6/server/bin/addons/__init__.py", line 693, in _load_data
tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 794, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 729, in process
self._process_node(node)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 742, in _process_node
self.process_record(node)
File "/home/sisalpuser/openerp/version6/server/bin/tools/yaml_import.py", line 322, in process_record
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
File "/home/sisalpuser/openerp/version6/server/bin/addons/base/ir/ir_model.py", line 686, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/sisalpuser/openerp/version6/server/bin/addons/account/invoice.py", line 353, in create
raise orm.except_orm(_('Unknown Error'), str(e))
except_orm: ('Unknown Error', 'null value in column "address_invoice_id" violates not-null constraint\n')
[2011-02-05 11:02:49,961][testch2] INFO:i18n:module l10n_ch: loading translation file (fr) for language fr_CH
2_ second traceback with and without demo data you'll get this when it
create accounting plan for the company :
[2011-02-05 11:10:27,950][testch3] INFO:init:module l10n_ch: loading report/report_webkit_html_view.xml
[2011-02-05 11:10:28,188][testch3] INFO:i18n:module l10n_ch: loading translation file (fr) for language fr_CH
[2011-02-05 11:10:28,188][testch3] INFO:i18n:loading /home/sisalpuser/openerp/version6/server/bin/addons/l10n_ch/i18n/fr.po
[2011-02-05 11:10:28,987][testch3] INFO:res.config:getting next operation
[2011-02-05 11:10:28,988][testch3] INFO:res.config:getting next <base.ir.ir_actions.ir_actions_todo object at 0xa3cabec>
[2011-02-05 11:10:28,989][testch3] INFO:res.config:next action is browse_record(ir.actions.todo, 7)
[2011-02-05 11:10:38,876][testch3] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/sisalpuser/openerp/version6/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/sisalpuser/openerp/version6/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/sisalpuser/openerp/version6/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/sisalpuser/openerp/version6/server/bin/osv/orm.py", line 1975, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/sisalpuser/openerp/version6/server/bin/osv/orm.py", line 1877, in _add_missing_default_values
defaults[dv] = [(0, 0, x) for x in defaults[dv]]
TypeError: 'bool' object is not iterable
regards
References