[IMP] stock: recolor operations status badges
In various views, expand and harmonize the badge colors for picking status (draft, assigned, done, ...). Task: 2654703-4 Part-of: odoo/odoo#84056
This commit is contained in:
@@ -15,7 +15,12 @@
|
||||
<field name="qty_done" string="Quantity Done"/>
|
||||
<field name="product_uom_id" options="{'no_open': True, 'no_create': True}" string="Unit of Measure" groups="uom.group_uom"/>
|
||||
<field name="company_id" groups="base.group_multi_company" force_save="1"/>
|
||||
<field name="state" widget='badge' decoration-success="state == 'done'" decoration-info="state not in ('done', 'cancel')"/>
|
||||
<field name="state" widget='badge' optional="show"
|
||||
decoration-danger="state=='cancel'"
|
||||
decoration-info="state== 'assigned'"
|
||||
decoration-muted="state == 'draft'"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-warning="state not in ('draft','cancel','done','assigned')"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -36,7 +41,12 @@
|
||||
<field name="qty_done" string="Quantity Done" optional="hide"/>
|
||||
<field name="product_uom_id" options="{'no_open': True, 'no_create': True}" optional="hide" string="Unit of Measure" groups="uom.group_uom"/>
|
||||
<field name="company_id" groups="base.group_multi_company" force_save="1" optional="hide"/>
|
||||
<field name="state" widget='badge' decoration-success="state == 'done'" decoration-info="state not in ('done', 'cancel')"/>
|
||||
<field name="state" widget='badge' optional="show"
|
||||
decoration-danger="state=='cancel'"
|
||||
decoration-info="state== 'assigned'"
|
||||
decoration-muted="state == 'draft'"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-warning="state not in ('draft','cancel','done','assigned')"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -41,7 +41,12 @@
|
||||
<field name="product_uom_qty"/>
|
||||
<field name="product_uom" options="{'no_open': True, 'no_create': True}" string="Unit of Measure" groups="uom.group_uom"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="state" widget='badge' decoration-success="state == 'done'" decoration-info="state not in ('done', 'cancel')"/>
|
||||
<field name="state" widget='badge' optional="show"
|
||||
decoration-danger="state=='cancel'"
|
||||
decoration-info="state== 'assigned'"
|
||||
decoration-muted="state == 'draft'"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-warning="state not in ('draft','cancel','done','assigned')"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -207,7 +207,12 @@
|
||||
<field name="backorder_id" optional="hide"/>
|
||||
<field name="picking_type_id" optional="hide"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="state" optional="show" widget="badge" decoration-success="state == 'done'" decoration-info="state not in ('done', 'cancel', 'draft')" decoration-muted="state == 'draft'"/>
|
||||
<field name="state" optional="show" widget="badge"
|
||||
decoration-danger="state=='cancel'"
|
||||
decoration-info="state== 'assigned'"
|
||||
decoration-muted="state == 'draft'"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-warning="state not in ('draft','cancel','done','assigned')"/>
|
||||
<field name="activity_exception_decoration" widget="activity_exception"/>
|
||||
<field name="json_popover" nolabel="1" widget="stock_rescheduling_popover" attrs="{'invisible': [('json_popover', '=', False)]}"/>
|
||||
</tree>
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="scrap_location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="company_id" readonly="1" groups="base.group_multi_company"/>
|
||||
<field name="state" widget="badge" decoration-success="state == 'done'" decoration-info="state == 'draft'"/>
|
||||
<field name="state" widget="badge" decoration-success="state == 'done'" decoration-muted="state == 'draft'"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user