How to show the priority widget icon in website
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3819
Views
Dear aneesh,
Generally priority widget use in selection field data type.
Here Given simple example of how to use priority widget.
Step-1
in python file.
AVAILABLE_PRIORITIES = [
('0', 'Very Low'),
('1', 'Low'),
('2', 'Normal'),
('3', 'High'),
('4', 'Very High'),
]
'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority')
Step-2
in XML file
<field name="priority" widget="priority"/>
Now may be you can use priority widget
Thanks & Regards
Ankit H Gandhi