Account voucher multi-company
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
I have created a multi-company environment with holding coy (HoldCoy) and two subsidiaries A & B.
I have created 3 new users - No1 has Holdcoy as default coy with access to other 2, other 2 users have access to either A or B.
I have created a customer with no company value in Sales and Purchases tab
I have created three new journals (one per company) for debtor adjustments.
When I process a debtor adjustment using journal voucher for either A or B it works fine.
When I process for No1 in Holdcoy I get a conmpanyID error - Company must be same for its related account and period.
I have checked partner not linked to another company, user preference coy = journal coy = company = company for GL account.
The only field I cannot check is the default type field - this is a defined list. Is there anything company specific about this field (the account value generated under voucher items is for the correct company).
Any ideas or is this a bug?
Thanks
Kevin
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
After further discussion with Graeme Gellalty we have agreed that this is a bug. The issue is that the get_period function gets the first period not the period based on a combination of date & journal or company. As the period is not visible until the record is posted (at which time the journal tab appears) it is not possible for the user to correct.
I have modified the view so that the journal tab is immediately visible so the period can be fixed as an interim workaround, but the get_period function needs to be fixed properly.