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/stock/views/stock_warehouse_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/stock/views/stock_warehouse_views.xml')
| -rw-r--r-- | addons/stock/views/stock_warehouse_views.xml | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/addons/stock/views/stock_warehouse_views.xml b/addons/stock/views/stock_warehouse_views.xml new file mode 100644 index 00000000..c25df973 --- /dev/null +++ b/addons/stock/views/stock_warehouse_views.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <record id="view_warehouse" model="ir.ui.view"> + <field name="name">stock.warehouse</field> + <field name="model">stock.warehouse</field> + <field name="arch" type="xml"> + <form string="Warehouse"> + <sheet> + <div class="oe_button_box" name="button_box"> + <button name="action_view_all_routes" + string="Routes" + icon="fa-refresh" + class="oe_stat_button" + type="object"/> + </div> + <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> + <label for="name" class="oe_edit_only"/> + <h1><field name="name"/></h1> + <group> + <group> + <field name="active" invisible="1"/> + <field name="code"/> + </group> + <group> + <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> + <field name="partner_id"/> + </group> + </group> + <notebook colspan="4" groups="stock.group_adv_location"> + <page string="Warehouse Configuration" name="warehouse_config" colspan="4"> + <group colspan="4"> + <group string="Shipments"> + <field name="reception_steps" widget='radio'/> + <field name="delivery_steps" widget='radio'/> + </group> + <field name="show_resupply" invisible="1"/> + <group name="group_resupply" string="Resupply" attrs="{'invisible': [('show_resupply', '!=', True)]}"> + <field name="warehouse_count" invisible="1"/> + <field name="resupply_wh_ids" attrs="{'invisible': [('show_resupply', '!=', True)]}" domain="[('id', '!=', id)]" widget='many2many_checkboxes'/> + </group> + </group> + </page> + <page string="Technical Information" name="technical_info" groups='base.group_no_one'> + <group> + <group string="Locations"> + <field name="view_location_id" string="Warehouse view location" readonly="1" required="0"/> + <field name="lot_stock_id" readonly="1" required="0"/> + <field name="wh_input_stock_loc_id" readonly="1"/> + <field name="wh_qc_stock_loc_id" readonly="1"/> + <field name="wh_pack_stock_loc_id" readonly="1"/> + <field name="wh_output_stock_loc_id" readonly="1"/> + </group> + <group string="Operation Types"> + <field name="in_type_id" readonly="1"/> + <field name="int_type_id" readonly="1"/> + <field name="pick_type_id" readonly="1"/> + <field name="pack_type_id" readonly="1"/> + <field name="out_type_id" readonly="1"/> + </group> + </group> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <record id="view_warehouse_tree" model="ir.ui.view"> + <field name="name">stock.warehouse.tree</field> + <field name="model">stock.warehouse</field> + <field name="arch" type="xml"> + <tree string="Warehouse"> + <field name="sequence" widget="handle"/> + <field name="name"/> + <field name="active" invisible="1"/> + <field name="lot_stock_id" groups="stock.group_stock_multi_locations"/> + <field name="partner_id"/> + <field name="company_id" groups="base.group_multi_company"/> + </tree> + </field> + </record> + + <record id="stock_warehouse_view_search" model="ir.ui.view"> + <field name="name">stock.warehouse.search</field> + <field name="model">stock.warehouse</field> + <field name="arch" type="xml"> + <search string="Warehouse"> + <field name="name"/> + <filter string="Archived" name="inactive" domain="[('active','=',False)]"/> + </search> + </field> + </record> + + <record id="action_warehouse_form" model="ir.actions.act_window"> + <field name="name">Warehouses</field> + <field name="res_model">stock.warehouse</field> + <field name="type">ir.actions.act_window</field> + <field name="view_id" ref="view_warehouse_tree"/> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + Define a new warehouse + </p> + </field> + </record> + + <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" + parent="menu_warehouse_config" sequence="1"/> + +</odoo> |
