I need to update sales order statuses. Add new states and buttons.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
You can use the selection_add attribute to add new values into the existing selection field. You should inherit the sale.order model and add the new state to the existing selection field.
eg:_inherit = 'sale.order'
state = fields.Selection(selection_add=[('c', 'C'), ('d', 'D')])
Here's a video for your reference:https://www.youtube.com/watch?v=wsf0y_2AVP8&ab_channel=CybrosysTechnologies
To add button and to call function when clicked, you can refer this video:https://www.youtube.com/watch?v=IPJwnFNb6RQ
Hope it helps
Thanks for your comment.
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
1
نوفمبر 23
|
2164 | |||
|
5
سبتمبر 25
|
24611 | |||
|
3
أغسطس 25
|
3756 | |||
|
1
مايو 25
|
3660 | |||
|
1
أبريل 25
|
4506 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.