[IMP] stock: priority widget
Use the priority widget (the yellow stars) to represent the priority field on stock.picking Task: 1942231 Co-Authored-By: Hetal Dhanak <hdh-odoo@users.noreply.github.com>
This commit is contained in:
co-authored by
Hetal Dhanak
parent
e8916a817c
commit
8868e14e54
@@ -218,7 +218,7 @@ class Picking(models.Model):
|
||||
# default='1', required=True, # TDE: required, depending on moves ? strange
|
||||
index=True, tracking=True,
|
||||
states={'done': [('readonly', True)], 'cancel': [('readonly', True)]},
|
||||
help="Priority for this picking. Setting manually a value here would set it as priority for all the moves")
|
||||
help="Products will be reserved first for the transfers with the highest priorities.")
|
||||
scheduled_date = fields.Datetime(
|
||||
'Scheduled Date', compute='_compute_scheduled_date', inverse='_set_scheduled_date', store=True,
|
||||
index=True, tracking=True,
|
||||
|
||||
@@ -329,7 +329,7 @@
|
||||
<group string="Other Information" name="other_infos">
|
||||
<field name="picking_type_code" invisible="1"/>
|
||||
<field name="move_type" attrs="{'invisible': [('picking_type_code', '=', 'incoming')]}"/>
|
||||
<field name="priority"/>
|
||||
<field name="priority" widget="priority"/>
|
||||
<field name="group_id" groups="base.group_no_one"/>
|
||||
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user