Compare commits
3 commits
e2a22c5d71
...
16941b8183
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16941b8183 | ||
|
|
72da09715d | ||
|
|
c9188e4f10 |
3 changed files with 21 additions and 0 deletions
|
|
@ -23,6 +23,12 @@ class StockMoveLine(models.Model):
|
||||||
readonly=True,
|
readonly=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
picking_partner_id = fields.Many2one(
|
||||||
|
related="picking_id.partner_id",
|
||||||
|
store=True,
|
||||||
|
readonly=True,
|
||||||
|
)
|
||||||
|
|
||||||
is_collected = fields.Boolean(
|
is_collected = fields.Boolean(
|
||||||
string="Collected",
|
string="Collected",
|
||||||
default=False,
|
default=False,
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
table.o_list_table tbody tr.o_data_row:hover td {
|
||||||
background-color: rgba(0, 0, 0, 0.045);
|
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;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@
|
||||||
<field name="model">stock.move.line</field>
|
<field name="model">stock.move.line</field>
|
||||||
<field name="inherit_id" ref="stock_picking_batch.view_move_line_tree"/>
|
<field name="inherit_id" ref="stock_picking_batch.view_move_line_tree"/>
|
||||||
<field name="arch" type="xml">
|
<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">
|
<xpath expr="//field[@name='product_id']" position="before">
|
||||||
<field name="product_categ_id" readonly="1"/>
|
<field name="product_categ_id" readonly="1"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue