** Branch linked: lp:~openerp-dev/openobject-addons/7.0-staging-mat

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

Title:
  Fiscal year is not correctly found in accounting reports with multi-
  company setup

Status in OpenERP Addons (modules):
  Confirmed
Status in OpenERP Addons 7.0 series:
  New
Status in OpenERP Addons trunk series:
  Confirmed

Bug description:
  To replicate: (using version 7.0-20130313-002537)
  - Create a new DB
  - Install Accounting & Finance app & run the wizard for a default chart of 
accounts/currency setup
  - Go to Users > Adminstrator and update the access rights to the following: 
Multi-Companies=True.
  - Refresh and then go to Settings > Companies and create a new company, 
'Company B'
  - Go to Settings > Configuration > Accounting, then under 'Chart of Accounts' 
choose Company B. Under that choose "Configurable Account Chart Template" as 
the template and click 'Apply'
  - Go to Accounting > Reporting > Generic Reporting > Partners > Aged Partner 
Balance. Select '0 Company B' as the chart of accounts. Click 'Print'
  - To following error occurs:
  "ValidateError

  Error occurred while validating the field(s)
  chart_account_id,fiscalyear_id,period_from,period_to: The fiscalyear,
  periods or chart of account chosen have to belong to the same company.
  "

  This is because it is getting the fiscalyear_id of 'Your Company' and so the 
validation in account_report_common.py is failing!
  It looks to me as if the domain filter on fiscal years only accounts for 
multiple companies if the active_model is 'account.account', which it won't be 
if the report is being run from the Reporting menu!

  This is crippling our company's implementation right now and would
  appreciate it being looked into.

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to