summaryrefslogtreecommitdiff
path: root/addons/mrp_account/views/mrp_production_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/mrp_account/views/mrp_production_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mrp_account/views/mrp_production_views.xml')
-rw-r--r--addons/mrp_account/views/mrp_production_views.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/mrp_account/views/mrp_production_views.xml b/addons/mrp_account/views/mrp_production_views.xml
new file mode 100644
index 00000000..4b1083c7
--- /dev/null
+++ b/addons/mrp_account/views/mrp_production_views.xml
@@ -0,0 +1,19 @@
+<odoo>
+ <record id="mrp_production_form_view_inherited" model="ir.ui.view">
+ <field name="name">mrp.production.view.inherited</field>
+ <field name="model">mrp.production</field>
+ <field name="inherit_id" ref="mrp.mrp_production_form_view" />
+ <field name="groups_id" eval="[(4, ref('stock.group_stock_manager'))]"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='product_id']" position="before">
+ <field name="show_valuation" invisible="1"/>
+ </xpath>
+ <xpath expr="//div[@name='button_box']" position="inside">
+ <button string="Valuation" type="object"
+ name="action_view_stock_valuation_layers"
+ class="oe_stat_button" icon="fa-dollar" groups="base.group_no_one"
+ attrs="{'invisible': [('show_valuation', '=', False)]}" />
+ </xpath>
+ </field>
+ </record>
+</odoo>