l10n_ch taxes 2011 Beta 1

Bug #704311 reported by forstera
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1973, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1875, in _add_missing_default_values
    defaults[dv] = [(0, 0, x) for x in defaults[dv]]
TypeError: 'bool' object is not iterable

Tags: maintenance

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Forstera,

I have tested your scenario, But i could not get this type of traceback .
So would you please elaborate with more or provide the proper steps.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Hello Amit,

I just updated addons, web and server to the last revisions, then tried to create a new datase with default currency = CHF. After trying to set the account numbers to 4 I get the following error.

Let me know if you need that I send to you a complete trace of the configuration.

Thanks

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Forstera,

Please give me the complete trace of the configuration.

Thanks.

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Hello,
Here's the trace of the problem. I just tried again by creating a complete new database but the problem still occurs ...

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1975, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/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

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

The l10n_ch has to be installed with zero digit, the default value is the right one.
The problem comes from the way that account are generated in the hearth of OpenERP does not match the swiss numeration.

One solution will be to put the decimal fields in read only. The other way will be to be able to have only non view account having numeration using digit parameters.

Regards

Nicolas

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Ok, thanks for the information. But what will happend when we'll have to migrate our old version 5.0 database ? There, all accounts are defined with 4 digits !

Thanks

Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello Forstera,

Thanks for your reporting!

I have checked the issue and got the traceback in the web-client at the time of configuring the swiss chart of account. So I am confirming this bug.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: Incomplete → Confirmed
tags: added: maintenance
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → Somesh Khare(OpenERP) (skh-openerp)
affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: Somesh Khare(OpenERP) (skh-openerp) → OpenERP's Framework R&D (openerp-dev-framework)
Changed in openobject-server:
status: Confirmed → Fix Released
milestone: none → 6.0.2
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

For migrating It does not impact anything as account are already generated.

Regards

Nicolas

Revision history for this message
Szappanyos Zoltán (szappanyos-zoltan) wrote :

Where can I find this fix? Because I would like to fix the bug on my current 6.0.1 server if it's possible.

Thanks

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :
Revision history for this message
Roland Plüss (rpluess) wrote :

Tried the fix (the new one, not the one it superceeded). Problem still persists as posted in the comment there. Would like to try this out but without a working SAC it is impossible to init the database.

Revision history for this message
vvlads (vlad-smolovik-info) wrote :

I confirm the same problem with the same symptoms.

Revision history for this message
pitititi (pitititi) wrote :

after this error (with the web client), i try to install with the gtk client and let the default value ( 0 ) in the number of digit in account number configuration and it works

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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