← Back to team overview

openerp-india team mailing list archive

[Bug 1240265] Re: [7.0] unable to update openerp if ln10_fr is installed (related to VAT change)

 

You're right, this is probably caused by the removal of obsolete
templates in the French Accounting Chart when Camptocamp's patch for
2014 taxes was applied. We missed the fact that the chart templates
records were not in "noupdate" mode, so the system tries to delete them
during the next update. This step fails because the tax templates are
removed before the corresponding fiscal positions.

As a workaround you can try to delete all "fiscal position templates"
before trying to update.

This problem might have been avoided by adapting the existing templates
instead of dropping them and creating new ones.

There are many possible solutions but we should try to find the one that
has the lowest possible risk (i.e. no change to the framework and no
change to the template models). The solution might be to add a <delete
ref="old.id"/> record at the beginning of the chart of account
definition for each fiscal.position that was removed in the patch.

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
    Milestone: None => 7.0

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1240265

Title:
  [7.0] unable to update openerp if ln10_fr is installed (related to VAT
  change)

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Hi.

  I think there is a bug introduced in the rev 9515.

  == Initial config :
  ~openerp/openobject-addons/7.0 - revision #9514
  ~openerp/openobject-server/7.0 - revision #5100
  ~openerp/openerp-web/7.0/ - revision #4037

  == Step to reproduce the bug : 
  - Create a new database ; 
  - Install l10n_fr ; 
  - Configuring accounting data, choose "France - Comptabilité" and follow with default values ; 
  - Stop server
  - bzr pull at last revision openobject-addons (tested with #9523)
  - run server, updating all
  - You have an error.

  "2013-10-15 22:34:59,700 6483 ERROR base_created_9514 openerp.sql_db:
  bad query: delete from account_tax_template where id IN (11)"

  (See attachment for complete stacktrace)

  Possible origin : 
  There is some mistake in the last MP #9515. xml_ids are deleted. (Maybe it's better to create new account.tax.template instead of replace existing account.tax.template)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1240265/+subscriptions


References