[6.1 / trunk] bank_statement multicompany error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 3 |
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_
- 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
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 31 lines (+3/-1)2 files modifiedaccount/account.py (+2/-0)
account/account_bank_statement.py (+1/-1)
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
tags: | added: bank statement |
Hello Stepahane,
Bank statement with multi-company are working fine with latest trunk 7.0
Would you please try with latest code and notify us.
For your more information I have attached the video, So would you please check it.
Thanks ans waiting for your reply!