hi everyone,
i got an issue, i would like to set up my inventory.
I want that when i have a reception or an order to sent which is higher that price x, the operations put itself in priority : URGENT.
Does any one know if i can and how ?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi everyone,
i got an issue, i would like to set up my inventory.
I want that when i have a reception or an order to sent which is higher that price x, the operations put itself in priority : URGENT.
Does any one know if i can and how ?
Thanks.
Hii,
Option 1: Use a Server Action (no coding)
Go to: Settings > Technical > Automated Actions
(Enable developer mode if not visible)
Create a new automated action:
Save and test.
Option 2: Small Python Customization (if you want more control):
You can override the write() or create a computed field in a custom module like this:
from odoo import models, fields, api
class StockPicking(models.Model):
_inherit = 'stock.picking'
@api.onchange('move_ids_without_package')
def _compute_priority_urgent(self):
for picking in self:
total = sum(move.product_id.standard_price * move.product_uom_qty for move in picking.move_ids_without_package)
if total > 10000: # Threshold price
picking.priority = '2' # Urgent
i hope it is use full
Are you sure about that? I believe priority is either 0 (Normal) or 1 (Urgent).
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.