← Back to team overview

openerp-india team mailing list archive

[Bug 1203883] [NEW] csv import jounal entries as admin fails on company-id

 

Public bug reported:

In multi company environment the journal entry csv-import fails even on admin because of wrong default company_id in admin user. The message is that validation found that account.company_id is not equal to period.company_id. They ARE equal, but both are not equal to the default company of the user, admin in this case. 
If one wants to run an import for entries for more than one company (as admin), this will not work.
Inspecting def  _check_company_id in account.move.line.py line 585 shows that this check indeed compares account.company_id with period.company_id. But it also compares both with company_id from context. Which it shouldn't.

ver 7.0 community branch

** Affects: openobject-addons
     Importance: Undecided
         Status: New

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

Title:
  csv import jounal entries as admin fails on company-id

Status in OpenERP Addons (modules):
  New

Bug description:
  In multi company environment the journal entry csv-import fails even on admin because of wrong default company_id in admin user. The message is that validation found that account.company_id is not equal to period.company_id. They ARE equal, but both are not equal to the default company of the user, admin in this case. 
  If one wants to run an import for entries for more than one company (as admin), this will not work.
  Inspecting def  _check_company_id in account.move.line.py line 585 shows that this check indeed compares account.company_id with period.company_id. But it also compares both with company_id from context. Which it shouldn't.

  ver 7.0 community branch

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


Follow ups

References