diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/mrp/wizard/mrp_production_backorder.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/mrp/wizard/mrp_production_backorder.xml')
| -rw-r--r-- | addons/mrp/wizard/mrp_production_backorder.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/addons/mrp/wizard/mrp_production_backorder.xml b/addons/mrp/wizard/mrp_production_backorder.xml new file mode 100644 index 00000000..7b116eb3 --- /dev/null +++ b/addons/mrp/wizard/mrp_production_backorder.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- MO Backorder --> + <record id="view_mrp_production_backorder_form" model="ir.ui.view"> + <field name="name">Create Backorder</field> + <field name="model">mrp.production.backorder</field> + <field name="arch" type="xml"> + <form string="Create a Backorder"> + <group> + <p> + 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_backorder_lines" invisible="1"/> + <field name="mrp_production_backorder_line_ids" nolabel="1" attrs="{'invisible': [('show_backorder_lines', '=', False)]}"> + <tree create="0" delete="0" editable="top"> + <field name="mrp_production_id" force_save="1"/> + <field name="to_backorder" widget="boolean_toggle"/> + </tree> + </field> + <footer> + <button name="action_backorder" string="Create backorder" + colspan="1" type="object" class="btn-primary" attrs="{'invisible': [('show_backorder_lines', '!=', False)]}"/> + <button name="action_backorder" string="Validate" + colspan="1" type="object" class="btn-primary" attrs="{'invisible': [('show_backorder_lines', '=', False)]}"/> + <button name="action_close_mo" type="object" string="No Backorder" attrs="{'invisible': [('show_backorder_lines', '!=', False)]}"/> + <button string="Discard" class="btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_mrp_production_backorder" model="ir.actions.act_window"> + <field name="name">You produced less than initial demand</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">mrp.production.backorder</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + + </data> +</odoo> |
