c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27835
Re: [Bug 804991] Re: Cant process picking in multi-company environment
Yes, the user is in the same company as the PO.
It depends on the order in which you create the periods in database. for
example: create first the periods for company A in the database (then B)
and try to receive an incoming shipment for company B
_get_periods gives you the first period id it finds in the table.
Eric CAUDAL
eric.caudal@xxxxxxxxxxxxxx <mailto:caudaleric@xxxxxxxxxxxxxx>
Cell phone: + 86 186 2136 1670
Elico Corp, Shanghai
OpenERP Ready Partner
http://www.elico-corp.com
On 04/07/2011 04:44, Kevin McMenamin wrote:
> I have tried on 6.0.02 and works fine - are you sure that the company
> under user/preferences was the same as the PO you were receipting?
>
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/804991
Title:
Cant process picking in multi-company environment
Status in OpenERP Modules (addons):
New
Bug description:
In 6.02
With 2 companies A and B, 2 charts of account and 2 periods set, one for each company.
Creating a purchase order and then I try to process the "incoming shipment".
When click in "Process", then in subform in "Validate" I receive the following message:
Error occurred while validating the field(s) company_id: Company must be same for its related account and period.
This is due to the fact that no periods are passed in stock_partial_move.do_partial()
And then in account._get_period(), all periods are returned and the first period is chosen instead of chosing the one corresponding to the user.
Maybe change in _get_period()
periods = self.pool.get('account.period').find(cr, uid)
and add a filter according to the user
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/804991/+subscriptions
Follow ups
References