← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 805403] Re: taxes report active_id problem

 

Hello Thomas/Leonardo,

Can you please check once again?

Thanks.

-- 
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/805403

Title:
  taxes report active_id problem

Status in OpenERP Modules (addons):
  Fix Committed

Bug description:
  observed in v6

  I have a multi-company DB where the the printing of the Taxes Report
  fails with accesserror on on account_tax_code. The report was trying
  to read an account_code that belonged to another company.

  After some investigation, I found out that that account_code came from
  that line:

  http://bazaar.launchpad.net/~openerp/openobject-
  addons/6.0/view/head:/account/wizard/account_vat.py#L47

  That context['active_ids'] that is here assigned to datas['ids'] is
  just the ir_ui_meny entry for 'taxes report'. The report itself tries
  to access to the account_tax_code with that ID which fails in my case.

  With demo data everything works but it seems to me that that's just a
  coincicence. The line I quoted before seems to be just wrong in some
  way.

  Thanks!

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


References