← Back to team overview

openerp-india team mailing list archive

[Bug 1136161] Re: Cash register (cash box) cannot be saved in multi company setup

 

** Tags added: invoicing

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

Title:
  Cash register (cash box) cannot be saved in multi company setup

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Steps to reproduce:

  1. create new database with demo data
  2. install Accounting & Finance module as a bare minimum
  3. go to Settings >> General Settings and tick 'Manage multiple companies' check-box
  4. as Admin, create a new user login and name it e.g. UserA
  5. set UserA's company to 'OpenERP Editor'
  6. under Access Rights, set Allowed Companies to 'OpenERP Editor', which will enable access to the companies defined as children to 'OpenERP Editor':  'OpenERP BE', 'OpenERP IN', 'OpenERP US'
  7. log in as UserA and go to Accounting >> Cash Registers
  8. create new cash register
  9. change the journal to 'OpenERP BE Bank (EUR)' and change the date. 
  10. click on the right facing arrow next to period field and in the window that pops up note that the period refers to 'OpenERP BE' (see Company field'
  11. optionally enter some cash box lines
  12. upon clicking Save button the following error message pops up:
  =====================================================
  ValidateError

  Error occurred while validating the field(s) journal_id,period_id: The journal and period chosen have to belong to the same company.
  =====================================================

  How is this possible given that in step 10, we've verified that
  journal and period belong to the same company?!

  Moreover, the system will let you save the cash box if you save it without changing the journal and date/period.
  Then you click edit button and change only the journal (thus the company) and save it again. Note that the period still remains for the  initial company set, and the system doesn't complain although now it definitely should (!!!). You have to edit the cash box again and finally set the period to the correct company by changing the date back and forth and saving it again.

  I'm using OpenERP version 7.0-20130228-002141 which is latest as of
  this writing, but have noticed the same bug in slightly older builds
  of v7.0.

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