summaryrefslogtreecommitdiff
path: root/addons/purchase_stock/views/stock_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/purchase_stock/views/stock_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/purchase_stock/views/stock_views.xml')
-rw-r--r--addons/purchase_stock/views/stock_views.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/addons/purchase_stock/views/stock_views.xml b/addons/purchase_stock/views/stock_views.xml
new file mode 100644
index 00000000..2ea08b5e
--- /dev/null
+++ b/addons/purchase_stock/views/stock_views.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="stock_move_purchase" model="ir.ui.view">
+ <field name="name">stock.move.form</field>
+ <field name="model">stock.move</field>
+ <field name="inherit_id" ref="stock.view_move_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//group[@name='origin_grp']" position="inside">
+ <field name="purchase_line_id"/>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="view_warehouse_inherited" model="ir.ui.view">
+ <field name="name">Stock Warehouse Inherited</field>
+ <field name="model">stock.warehouse</field>
+ <field name="inherit_id" ref="stock.view_warehouse"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='resupply_wh_ids']" position="before">
+ <field name="buy_to_resupply" />
+ </xpath>
+ <xpath expr="//group[@name='group_resupply']" position="attributes">
+ <attribute name="attrs">{}</attribute>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="view_warehouse_orderpoint_tree_editable_inherited_mrp" model="ir.ui.view">
+ <field name="name">stock.warehouse.orderpoint.tree.editable.inherit.mrp</field>
+ <field name="model">stock.warehouse.orderpoint</field>
+ <field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable"/>
+ <field name="arch" type="xml">
+ <field name="route_id" position="after">
+ <field name="show_supplier" invisible="1"/>
+ <field name="supplier_id" optional="hide" attrs="{'invisible': [('show_supplier', '=', False)]}" options="{'no_create': True}"/>
+ </field>
+ </field>
+ </record>
+
+</odoo>