I’m using Odoo 15 and I’d like to create a Server Action that allows me to select multiple Delivery Orders (Stock Pickings) from the list view and validate them all at once, regardless of their current state.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I’m using Odoo 15 and I’d like to create a Server Action that allows me to select multiple Delivery Orders (Stock Pickings) from the list view and validate them all at once, regardless of their current state.
To create a Server Action in Odoo 15 for validating multiple Delivery Orders, follow these steps:
Navigate to Settings > Technical > Actions > Server Actions.
Create a new Server Action with the model set to "Stock Picking".
In the Python Code section, use:
for picking in records:
if picking.state not in ('done', 'cancel'):
picking.button_validate()
Save the action and link it to the appropriate menu or button.
If you'd like to explore this further for your use case, you're welcome to connect with us at Pragmatic Techsoft.
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
2
11월 24
|
1319 | ||
|
0
11월 24
|
1371 | ||
|
1
2월 24
|
1606 | ||
|
1
10월 16
|
4755 | ||
|
1
6월 24
|
2329 |