Asset in multi company: impossible to create/post items for subsidiary

Bug #893523 reported by Antoine(OpenERP)
10
This bug affects 1 person
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

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

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).

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Antoine,

Thanks for reporting. The solution for this bug is proposed in the branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-893523-mdi/

with following Revision ID and Number.

Revision ID : <email address hidden>
Revision Number : 5959

Thanks and Regards,

Divyesh Makwana(MDI)

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

landed in trunk
revno: 6000
revision-id: <email address hidden>

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.