Skip to content

Commit

Permalink
[FIX] stock_{picking_batch,fleet}: scope no content helper
Browse files Browse the repository at this point in the history
Since [1], a CSS rule was changing the size of all the no content
helpers throughout Odoo when `stock_picking_batch` was installed.

This commit fixes that by scoping the rule to its original intent.

opw-4370026

[1]: odoo@06d1d48#diff-87ad06e3496be4ac6761b7052a11d9e9f1464e291d305405aae839f1a4d2ba9cR1

closes odoo#189786

Signed-off-by: Lucas Perais (lpe) <[email protected]>
  • Loading branch information
brboi committed Dec 9, 2024
1 parent 22bbe42 commit 9a75284
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions addons/stock_fleet/views/stock_picking_batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<field name="name">stock.picking.batch.pivot</field>
<field name="model">stock.picking.batch</field>
<field name="arch" type="xml">
<pivot string="Batch Transfer" sample="1">
<pivot string="Batch Transfer" class="oe_stock_picking_batch" sample="1">
<field name="scheduled_date" type="row"/>
<field name="vehicle_id" type="col"/>
</pivot>
Expand All @@ -14,7 +14,7 @@
<field name="name">stock.picking.batch.graph</field>
<field name="model">stock.picking.batch</field>
<field name="arch" type="xml">
<graph string="Graph View" sample="1">
<graph string="Graph View" class="oe_stock_picking_batch" sample="1">
<field name="scheduled_date" type="row" interval="day"/>
<field name="vehicle_category_id" type="row"/>
</graph>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.o_view_nocontent .o_nocontent_help {
.oe_stock_picking_batch .o_view_nocontent .o_nocontent_help {
max-width: 90%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<field name="name">stock.picking.batch.list</field>
<field name="model">stock.picking.batch</field>
<field name="arch" type="xml">
<list string="Stock Batch Transfer" multi_edit="1" sample="1">
<list string="Stock Batch Transfer" multi_edit="1" sample="1" class="oe_stock_picking_batch">
<field name="company_id" column_invisible="True"/>
<field name="name" decoration-bf="1"/>
<field name="description"/>
Expand All @@ -151,7 +151,7 @@
<field name="name">stock.picking.batch.kanban</field>
<field name="model">stock.picking.batch</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile" sample="1">
<kanban class="o_kanban_mobile oe_stock_picking_batch" sample="1">
<field name="company_id"/>
<templates>
<t t-name="card">
Expand Down

0 comments on commit 9a75284

Please sign in to comment.