openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17608
[Bug 1077029] [NEW] [6.1 / trunk] bank_statement multicompany error
Public bug reported:
Hello,
In trunk and 6.1, it is not possible to create bank statements for
another company.
How to reproduce:
- install trunk with demo data
- configure an account chart for another company than Your Company (eg OpenERP Editor)
- make sure Administrator has access to OpenERP Editor and has Your Company as preferred company
- create a bank statement and change the journal to the bank journal of OpenERP Editor
- try to save -> ValidateError: Error occurred while validating the field(s) journal_id,period_id: The journal and period chosen have to belong to the same company. This is because the period is incorrect
- change the period to a period of OpenERP Editor
- try to save again -> same error for no obvious reason
I think this is due to the fact that in the orm create method, the
validation of related fields (company_id) is done before calculating
related fields.
Best regards,
-sbi
** 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/1077029
Title:
[6.1 / trunk] bank_statement multicompany error
Status in OpenERP Addons (modules):
New
Bug description:
Hello,
In trunk and 6.1, it is not possible to create bank statements for
another company.
How to reproduce:
- install trunk with demo data
- configure an account chart for another company than Your Company (eg OpenERP Editor)
- make sure Administrator has access to OpenERP Editor and has Your Company as preferred company
- create a bank statement and change the journal to the bank journal of OpenERP Editor
- try to save -> ValidateError: Error occurred while validating the field(s) journal_id,period_id: The journal and period chosen have to belong to the same company. This is because the period is incorrect
- change the period to a period of OpenERP Editor
- try to save again -> same error for no obvious reason
I think this is due to the fact that in the orm create method, the
validation of related fields (company_id) is done before calculating
related fields.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1077029/+subscriptions
Follow ups
References