Asset in multi company: impossible to create/post items for subsidiary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Initial steps:
- 2 companies, 1 parent of the other
- 2 users, each one in a company
- Connect with the user from the subsidiary. Create some accounts and a journal for the asset category. Create an asset category. Create an asset based on this asset category. Confirm it.
- Go on the second tab (depreciation board), click on the small gears and you're told that :
AccessError
Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Company).
Even if your user and the permission are properly configured.
So impossible to create the depreciation lines in the accounting.
Also, if I try to connect with the admin of the parent company, I've also access to the asset I created for my subsidiary (normal). If I click on the gears to create/post the lines in the accounting, it's also impossible because it tells me that:
ValidateError
Error occurred while validating the field(s) company_id: Company must be same for its related account and period.
I think we should try to find a way to circumvent this. Here the company on the account is the subsidiary and it tries to create the entries on a period "owned" by the parent company. It should just try to find an existing current period on the company of the account (the subsidiary) and not have a look at the current period of the parent company and refuse to create the items because the companies are different between account and period.
Related branches
- Purnendu Singh (OpenERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 176 lines (+28/-18)2 files modifiedaccount_asset/account_asset.py (+18/-8)
account_asset/account_asset_view.xml (+10/-10)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Yes it seems in wrong currency configuration in user's company. Its like we have created user with subsidiary company but currency of parent company.
When we try to create new asset, it sets wrong currency. But when you select your own company's currency you can create journal entries for your depreciation without any problem.
We can fix it by selecting currency which belongs to current user's company (Same like Invoice).