Community mailing list archives

community@mail.odoo.com

Re: Disable Confirm Sale Button in Odoo 9

by
Gauri Shirsath
- 04/11/2016 12:25:21
Hi Team,

I want to hide 'Confirm Sale' button for all users.
How to do it using attrs?

Regards,
Gauri

On Mon, Apr 11, 2016 at 5:07 PM, zahid jalal <j.zahid@gmail.com> wrote:
1- if you mean that you need some automation of sale workflow, you should either write some code in a new add on or automated action. Because sale_workflow is non more available in V9.

2 - if you just need to hide this button from some users depending on their access right. you just add a "groups" attribute to button declaration

 <button name="action_confirm" states="draft" string="Confirm Sale" type="object" context="{'show_sale': True}"  groups = "your_custom_group" />

 this can also be done with attribut value.





Odoo Integrator,
Data integration
BI and IT consulting.

j.zahid@auriumtechnologies.com
tél  0661360233 - 0636898882
fax 0528215738

On Mon, Apr 11, 2016 at 12:17 PM, Gauri Shirsath <gauri.shirsath@inspiritvision.com> wrote:
Hi Team,

I want to disable 'Confirm Sale' button in Odoo 9.
Please let me know how to do this.

Regards,
Gauri

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


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