Skip to content

Commit

Permalink
[IMP] stock_storage_category_usage_report: Use web_widget_progressbar…
Browse files Browse the repository at this point in the history
…_gradient instead
  • Loading branch information
rousseldenis committed Nov 15, 2024
1 parent 809d1b4 commit 243db31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stock_storage_category_usage_report/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"stock",
"stock_location_children",
"stock_location_occupancy",
"web_widget_progressbar_color",
"web_widget_progressbar_gradient",
],
"data": [
"views/stock_storage_category.xml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
<field name="arch" type="xml">
<xpath expr="//label[@for='max_weight']/parent::group" position="after">
<group name="usage_report">
<field name="occupation_rate" widget="progressbar_cFolor" />
<field
name="occupation_rate"
widget="progressbar_gradient"
options="{'inverse': true}"
/>
</group>
</xpath>
</field>
Expand All @@ -22,7 +26,8 @@
<field name="allow_new_product" position="after">
<field
name="occupation_rate"
widget="progressbar_color"
widget="progressbar_gradient"
options="{'inverse': true}"
optional="hide"
/>
</field>
Expand All @@ -37,7 +42,11 @@
<field name="name" />
<field name="void_location_count" />
<field name="occupied_location_count" />
<field name="occupation_rate" widget="progressbar_color" />
<field
name="occupation_rate"
widget="progressbar_gradient"
options="{'inverse': true}"
/>
</tree>
</field>
</record>
Expand Down

0 comments on commit 243db31

Please sign in to comment.