followup of rev [0]
If these wizards are called on multiple pickings, display the list of
the pickings that could be impacted and allow to select which one should
be impacted.
We also adapt the sanity checks at the start of `button_validte` in
order to specify the concerned pickings if needed. We do not enable the
multi behavior for batch at the moment, so it's only enabled for the
validate multi in the list view.
[0] 6ab4b0d496
task-2069646
closes odoo/odoo#41497
X-original-commit: ff276c6484b138982f185ec9c832f2dbf25baaef
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
35 lines
1.6 KiB
XML
35 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<record id="view_backorder_confirmation" model="ir.ui.view">
|
|
<field name="name">stock_backorder_confirmation</field>
|
|
<field name="model">stock.backorder.confirmation</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Backorder creation">
|
|
<group>
|
|
<p>
|
|
You have processed less products than the initial demand.
|
|
</p><p class="text-muted">
|
|
Create a backorder if you expect to process the remaining
|
|
products later. Do not create a backorder if you will not
|
|
process the remaining products.
|
|
</p>
|
|
</group>
|
|
|
|
<field name="show_transfers" invisible="1"/>
|
|
<field name="backorder_confirmation_line_ids" nolabel="1" attrs="{'invisible': [('show_transfers', '=', False)]}">>
|
|
<tree create="0" delete="0" editable="top">
|
|
<field name="picking_id"/>
|
|
<field name="to_backorder" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
|
|
<footer>
|
|
<button name="process" string="Create Backorder" type="object" class="oe_highlight"/>
|
|
<button name="process_cancel_backorder" string="No Backorder" type="object" class="btn-primary" attrs="{'invisible': [('show_transfers', '=', True)]}"/>
|
|
<button string="_Cancel" class="btn-secondary" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|