Amit Parik (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-931776-amp into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #931776 in OpenERP Addons: "[account] account_move button_validate method 
is not taking into account group privilages"
  https://bugs.launchpad.net/openobject-addons/+bug/931776

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-931776-amp/+merge/99722

Need to add account group privileges on post button.

Please try the following scenario

Create one new group and gives read access for account.account, account.move 
and account.move.line. Create one new user for this group as well assign this 
new group for accounting application for accessing account,move.As well as set 
this group for Accounting main menu and Journal Entry menu.

Create a real time environment then creates a account move from the stock move. 
Now trying to post this account move which gives a access error on line#1329 of 
account.py (like you can not write this document) from the write method.

So that is a better thing we have to assign a one account group for this 
button.That's why I have set Accounting Invoicing and Payment group on posted 
button.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-931776-amp/+merge/99722
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-931776-amp.
=== modified file 'account/account_view.xml'
--- account/account_view.xml	2012-03-26 11:48:47 +0000
+++ account/account_view.xml	2012-03-28 13:18:19 +0000
@@ -1455,7 +1455,7 @@
                             <group col="4" colspan="4">
                                 <field name="state" select="1"/>
                                 <button name="button_cancel" states="posted" string="Cancel" type="object" icon="gtk-cancel"/>
-                                <button name="button_validate" states="draft" string="Post" type="object" icon="terp-camera_test"/>
+                                <button name="button_validate" states="draft" string="Post" type="object" icon="terp-camera_test" groups="account.group_account_invoice"/>
                             </group>
                         </page>
                     </notebook>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to