summaryrefslogtreecommitdiff
path: root/addons/stock/wizard/stock_immediate_transfer_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/stock/wizard/stock_immediate_transfer_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/stock/wizard/stock_immediate_transfer_views.xml')
-rw-r--r--addons/stock/wizard/stock_immediate_transfer_views.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/addons/stock/wizard/stock_immediate_transfer_views.xml b/addons/stock/wizard/stock_immediate_transfer_views.xml
new file mode 100644
index 00000000..ef562bfd
--- /dev/null
+++ b/addons/stock/wizard/stock_immediate_transfer_views.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<odoo>
+ <record id="view_immediate_transfer" model="ir.ui.view">
+ <field name="name">stock.immediate.transfer.view.form</field>
+ <field name="model">stock.immediate.transfer</field>
+ <field name="arch" type="xml">
+ <form string="Immediate transfer?">
+ <group>
+ <p>You have not recorded <i>done</i> quantities yet, by clicking on <i>apply</i> Odoo will process all the quantities.</p>
+ </group>
+
+ <!-- Added to ensure a correct default_get behavior
+
+ The wizard is always opened with default_pick_ids values in context,
+ which are used to generate the backorder_confirmation_line_ids.
+
+ To ensure default_pick_ids is correctly converted from the context
+ by default_get, the field has to be present in the view.
+ -->
+ <field name="pick_ids" invisible="1"/>
+
+ <field name="show_transfers" invisible="1"/>
+ <field name="immediate_transfer_line_ids" nolabel="1" attrs="{'invisible': [('show_transfers', '=', False)]}">>
+ <tree create="0" delete="0" editable="top">
+ <field name="picking_id"/>
+ <field name="to_immediate" widget="boolean_toggle"/>
+ </tree>
+ </field>
+
+ <footer>
+ <button name="process" string="Apply" type="object" class="btn-primary"/>
+ <button string="Cancel" class="btn-secondary" special="cancel" />
+ </footer>
+ </form>
+ </field>
+ </record>
+</odoo>