Saurang Suthar(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-addons-issues5-purchase-pso-imp_purchase-ssu
 into lp:~openerp-dev/openobject-addons/trunk-addons-issues5-purchase-pso.

Requested reviews:
  Priyesh (OpenERP) (pso-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons-issues5-purchase-pso-imp_purchase-ssu/+merge/121746

Hello sir,

I have improved purchase module by:

- making Quotation and Sales button invisible from Suppliers form view in 
Purchase
- making Approve Order button invisible for purchase/user

Thank you.
Saurang Suthar
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons-issues5-purchase-pso-imp_purchase-ssu/+merge/121746
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-addons-issues5-purchase-pso.
=== modified file 'purchase/purchase_view.xml'
--- purchase/purchase_view.xml	2012-08-17 08:46:11 +0000
+++ purchase/purchase_view.xml	2012-08-29 05:26:23 +0000
@@ -183,7 +183,7 @@
                     <button name="action_cancel" states="except_picking,except_invoice" string="Cancel" type="object" />
                     <button name="picking_ok" states="except_picking" string="Manually Corrected"/>
                     <button name="invoice_ok" states="except_invoice" string="Manually Corrected"/>
-                    <button name="purchase_approve" states="confirmed" string="Approve Order" class="oe_highlight"/>
+                    <button name="purchase_approve" states="confirmed" string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
                     <button name="view_invoice" string="Receive Invoice" type="object" attrs="{'invisible': ['|', ('invoice_method','=','picking'), '|', ('state','!=', 'approved'), ('invoiced','=',True) ]}" class="oe_highlight"/>
                     <button name="view_picking" string="Receive Products" type="object" attrs="{'invisible': ['|', ('shipped','=',True), ('state','!=', 'approved')]}" class="oe_highlight"/>
                     <button name="action_cancel_draft" states="cancel,sent,confirmed" string="Set to Draft" type="object" />

=== modified file 'sale/res_partner_view.xml'
--- sale/res_partner_view.xml	2012-08-14 12:11:17 +0000
+++ sale/res_partner_view.xml	2012-08-29 05:26:23 +0000
@@ -50,6 +50,7 @@
                 <xpath expr="//div[@name='buttons']" position="inside">
                     <button name="%(sale.act_res_partner_2_sale_order)d" type="action"
                         string="Quotations and Sales"
+                        attrs="{'invisible': [('customer', '=', False)]}"
                         groups="base.group_sale_salesman"/>
                 </xpath>
             </field>

_______________________________________________
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