Community mailing list archives

community@mail.odoo.com

Re: How to disable Cancel Button in Sale Order for certain user

by
Bima
- 09/16/2016 22:10:49
Hi Andy,

Normally you can disable button / view using group user.
<record id="ID" model="ir.ui.view">
   <field name="name">name</field>
            <field name="model">model</field>
   <field name="inherit_id" ref="id_parent"/>
   <field name="groups_id" eval="[(6, 0, [ref('user group') ])]"/>
   <field name="arch" type="xml">
       <field name="" position = "attributes"> 
           <attribute name="invisible">1</attribute>
       </field>
   </field>
</record>


On Sat, Sep 17, 2016 at 8:47 AM, Andy Utomo <andyut@outlook.com> wrote:
Dear all,

How to disable Cancel Button in sale Order and invoice  for certain user? 


Andy Utomo
Indoguna Utama PT
Jl. Taruna No 8 Pondok Bambu 
Jakarta Timur , 13430

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Best Regards,
Bima Jati Wijaya
IT Engineer Port Cities
IT solutions for International Trade, Manufacturing and e-Commerce


Your trusted partner in Asia
www.portcities.net