[IMP] stock_picking_batch_custom: allow deleting operator lines, show picking reference
Allow removing stock.move.line records from the Basket Assembly operator view (select + Delete action) instead of forcing quantity to zero, which caused issues for operators. Also expose the picking reference field (hidden by default) before the contact column. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
aba22fd230
commit
07b0e546c4
2 changed files with 3 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ class StockPickingBatch(models.Model):
|
|||
"domain": [("batch_id", "=", self.id)],
|
||||
"context": {
|
||||
"create": False,
|
||||
"delete": False,
|
||||
"delete": True,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,13 +21,14 @@
|
|||
<field name="name">stock.move.line.batch.operator</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="0" delete="0" editable="bottom"
|
||||
<list create="0" delete="1" editable="bottom"
|
||||
default_order="product_categ_id,product_id,picking_partner_id"
|
||||
class="o_batch_operator_list">
|
||||
<field name="batch_id" column_invisible="True"/>
|
||||
<field name="product_categ_id" readonly="1" optional="show"/>
|
||||
<field name="product_id" readonly="1"
|
||||
context="{'display_default_code': False}"/>
|
||||
<field name="reference" readonly="1" optional="hide"/>
|
||||
<field name="picking_partner_id" readonly="1" optional="show"/>
|
||||
<field name="home_delivery" readonly="1" widget="boolean_toggle" optional="show"/>
|
||||
<field name="consumer_group_id" readonly="1" optional="show"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue