openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27016
[Bug 1266480] Re: Error when wharehouse user confirms delivery
** Also affects: ocb-addons
Importance: Undecided
Status: New
** Also affects: ocb-addons/7.0
Importance: Undecided
Status: New
** Changed in: ocb-addons/7.0
Importance: Undecided => High
** Description changed:
This error occurs when:
- real time stock accounting is used
- by a user that has no authority to finance (account.period,
account.move ..)
When that user goes into an outgoing delivery (probably the same for
- incoming) and tries the button Deliver, and then Deliver in the window
- that appears.
+ incoming) and tries the button Deliver, and then Deliver, a window with
+ an error message appears.
This is the error text:
Access Denied
Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
- Purchases/User
- Accounting & Finance/Financial Manager
- Accounting & Finance/Invoicing & Payments
(Document model: account.period)
The problem is that the method _create_product_valuation_moves in
stock.py tries to write records to account.move. Normally a wharehouse
user does not have any authorizations to account.move.
This might be solved be granting the wharehouse users authority to
Finance, but that would defeat the whole purpose of authorization.
I think the best solution will be to use the SUPERUSER_ID within the
method _create_product_valuation_moves to create the actual moves.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1266480
Title:
Error when wharehouse user confirms delivery
Status in OpenERP Community Backports (Addons):
New
Status in OpenERP Community Backports (Addons) 7.0 series:
New
Status in OpenERP Addons (modules):
New
Bug description:
This error occurs when:
- real time stock accounting is used
- by a user that has no authority to finance (account.period,
account.move ..)
When that user goes into an outgoing delivery (probably the same for
incoming) and tries the button Deliver, and then Deliver, a window
with an error message appears.
This is the error text:
Access Denied
Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
- Purchases/User
- Accounting & Finance/Financial Manager
- Accounting & Finance/Invoicing & Payments
(Document model: account.period)
The problem is that the method _create_product_valuation_moves in
stock.py tries to write records to account.move. Normally a wharehouse
user does not have any authorizations to account.move.
This might be solved be granting the wharehouse users authority to
Finance, but that would defeat the whole purpose of authorization.
I think the best solution will be to use the SUPERUSER_ID within the
method _create_product_valuation_moves to create the actual moves.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1266480/+subscriptions
References