← Back to team overview

openerp-india team mailing list archive

[Bug 1067375] Re: [trunk / 6.1] system error creating invoice in multi-company context when customer has no payable/receivable account for current user's company

 

** Branch linked: lp:~acsone-openerp/openobject-addons/6.1-fixes

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

Title:
  [trunk / 6.1] system error creating invoice in multi-company context
  when customer has no payable/receivable account for current user's
  company

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  When creating a customer invoice in a multi-company context, a stack-
  trace is generated when the user selects a customer which has no
  payable/receivable account defined for the current user's company.

  This applies to 6.1 and trunk.

  How to reproduce:
  1. install trunk, accounting module, no demo data, initialize the Belgian chart of account for the default company
  2. activate multi-company feature in general settings
  3. set multi-company and technical feature right for user Administrator
  4. create a customer named Customer1
  5. create a new company called Mother Company and set it as parent of the default Company, do not create an account chart for the mother company
  6. in user preferences, switch to Mother Company
  7. create a new Customer Invoice:
     * a warning is produced saying there is no sales journal on Mother Company; this is normal
     * select the Sales Journal
     * select Customer 1 -> stack trace below

  Expected result: no stack trace or a warning.

  I'll attach a merge proposal.

  -sbi

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


References