Compare commits

...

3 commits

Author SHA1 Message Date
GitHub Copilot
16941b8183 [IMP] stock_picking_batch_custom: increase quantity column size for touch usability
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 19:32:20 +02:00
GitHub Copilot
72da09715d [IMP] stock_picking_batch_custom: widen quantity column for easier touch interaction
Add o_batch_move_line_list class to the detailed ops list and use it to
set min-width: 100px on the quantity column header and cells.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 19:31:34 +02:00
GitHub Copilot
c9188e4f10 [IMP] stock_picking_batch_custom: order detailed ops by category, product, partner
Store picking_partner_id on stock.move.line and set default_order to
product_categ_id, product_id, picking_partner_id in the detailed operations view.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 19:25:46 +02:00
3 changed files with 21 additions and 0 deletions

View file

@ -23,6 +23,12 @@ class StockMoveLine(models.Model):
readonly=True,
)
picking_partner_id = fields.Many2one(
related="picking_id.partner_id",
store=True,
readonly=True,
)
is_collected = fields.Boolean(
string="Collected",
default=False,

View file

@ -7,3 +7,14 @@ table.o_list_table tbody tr.o_data_row:nth-child(even) td {
table.o_list_table tbody tr.o_data_row:hover td {
background-color: rgba(0, 0, 0, 0.045);
}
/* Widen the quantity column in detailed operations so it is easier to tap */
table.o_batch_move_line_list th[data-name="quantity"],
table.o_batch_move_line_list td[name="quantity"] {
min-width: 140px;
}
table.o_batch_move_line_list td[name="quantity"] .o_field_widget input {
min-height: 44px;
font-size: 1.1rem;
}

View file

@ -46,6 +46,10 @@
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock_picking_batch.view_move_line_tree"/>
<field name="arch" type="xml">
<xpath expr="//list" position="attributes">
<attribute name="default_order">product_categ_id,product_id,picking_partner_id</attribute>
<attribute name="class">o_batch_move_line_list</attribute>
</xpath>
<xpath expr="//field[@name='product_id']" position="before">
<field name="product_categ_id" readonly="1"/>
</xpath>