123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="product_template_form_price_view">
- <field name="name">product.template.form.price.view</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_only_form_view" />
- <field name="arch" type="xml">
- <field name="standard_price" position="replace">
- </field>
- <field name="cost_method" position="replace">
- </field>
- <field name="list_price" position="before">
- <field name="standard_price" string="Precio de Costo"/>
- </field>
- <field name="standard_price" position="replace">
- </field>
- <field name="list_price" position="before">
- <field name="standard_price" string="Precio de Costo"/>
- <field name="cost_method" string="Método de Costo"/>
- </field>
- </field>
- </record>
- <record id="product_template_hide" model="ir.ui.view">
- <field name="name">product.template_hide</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_form_view"/>
- <field name="arch" type="xml">
- <xpath expr="//form/sheet/notebook//page[@string='Procurements']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <!-- <xpath expr="//form/sheet/notebook//page[@string='Sales']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath> -->
- <xpath expr="//form/sheet/notebook//page[@string='Inventory']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- </field>
- </record>
- <record id="product_template_stock_widget_form_view" model="ir.ui.view">
- <field name="name">fields_security.stock.widget.form</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="stock.product_template_form_view_procurement_button"/>
- <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
- <field name="arch" type="xml">
- <button name="action_view_routes" position="attributes">
- <attribute name="invisible">1</attribute>
- </button>
- <button name="action_view_orderpoints" position="attributes">
- <attribute name="invisible">1</attribute>
- </button>
- </field>
- </record>
- <record id="product_template_account_form_view" model="ir.ui.view">
- <field name="name">fields_security.account.form.view</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="account.product_template_form_view"/>
- <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
- <field name="arch" type="xml">
- <field name="property_account_income" position="attributes">
- <attribute name="invisible">1</attribute>
- </field>
- <field name="property_account_expense" position="attributes">
- <attribute name="invisible">1</attribute>
- </field>
- </field>
- </record>
- <record id="product_template_account_purchase_form_view" model="ir.ui.view">
- <field name="name">fields_security.account.purchase.form.view</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="purchase.view_product_account_purchase_ok_form"/>
- <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
- <field name="arch" type="xml">
- <field name="property_account_expense" position="attributes">
- <attribute name="invisible">1</attribute>
- </field>
- </field>
- </record>
- </data>
- </openerp>
|