142 lines
7.9 KiB
XML
142 lines
7.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="view_product_category_form_inherit_sf" model="ir.ui.view">
|
|
<field name="name">product.category.form.inherit.sf</field>
|
|
<field name="model">product.category</field>
|
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="parent_id" position="before">
|
|
<field name="type"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_template_tree_view_inherit_sf" model="ir.ui.view">
|
|
<field name="name">product.template.tree.inherit.sf</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_tree_view"/>
|
|
<field name="arch" type="xml">
|
|
<tree position="attributes">
|
|
<attribute name="delete">False</attribute>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="view_template_property_form" model="ir.ui.view">
|
|
<field name="name">product.template.stock.property.form.inherit</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='group_lots_and_weight']" position="after">
|
|
<group string="订单规则">
|
|
<field name="single_manufacturing" string="单个制造" widget="checkbox"/>
|
|
</group>
|
|
</xpath>
|
|
|
|
<page name="inventory" position="inside">
|
|
<group>
|
|
<group string="Description for Receipts">
|
|
<field name="description_pickingin" nolabel="1"
|
|
placeholder="This note is added to receipt orders (e.g. where to store the product in the warehouse)."/>
|
|
</group>
|
|
<group string="Description for Delivery Orders">
|
|
<field name="description_pickingout" nolabel="1"
|
|
placeholder="This note is added to delivery orders."/>
|
|
</group>
|
|
<group string="Description for Internal Transfers" groups="stock.group_stock_multi_locations">
|
|
<field name="description_picking"
|
|
placeholder="This note is added to internal transfer orders (e.g. where to pick the product in the warehouse)."
|
|
nolabel="1"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page name="inventory" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,product.group_stock_packaging,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director,sf_base.group_plan_dispatch
|
|
</attribute>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_template_form_view_procurement_button_inherit_sf" model="ir.ui.view">
|
|
<field name="name">product.template_procurement.form.inherit.sf</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.product_template_form_view_procurement_button"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//button[@name='action_open_quants']" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_product_tmpl_forecast_report']" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_view_stock_move_lines']" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_view_orderpoints']" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director
|
|
</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//button[@name='action_view_related_putaway_rules']" position="attributes">
|
|
<attribute name="groups">
|
|
stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director
|
|
</attribute>
|
|
</xpath>
|
|
|
|
<!-- <xpath expr="//button[@name='action_view_orderpoints']" position="attributes">-->
|
|
<!-- <attribute name="groups">-->
|
|
<!-- stock.group_stock_user,sf_base.group_sale_salemanager,sf_base.group_sale_director,sf_base.group_purchase,sf_base.group_purchase_director-->
|
|
<!-- </attribute>-->
|
|
<!-- </xpath>-->
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_mrp_bom_form_inherit_sf" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.inherit.sf</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp_subcontracting.mrp_bom_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="subcontractor_ids" position="replace">
|
|
<field name="subcontractor_id"
|
|
attrs="{'invisible': [('type', '!=', 'subcontract')], 'required': [('type', '=', 'subcontract')]}"/>
|
|
</field>
|
|
<xpath expr="//group" position="after">
|
|
<field name="subcontractor_name" attrs="{'invisible': True}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_template_search_view_sf" model="ir.ui.view">
|
|
<field name="name">product.template.search</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_search_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='consumable']" position="after">
|
|
<separator/>
|
|
<filter name="finish_product" string="成品" domain="[('categ_id.type','=','成品')]"/>
|
|
<filter name="embryo" string="坯料" domain="[('categ_id.type','=','坯料')]"/>
|
|
<filter name="raw_bom" string="原材料" domain="[('categ_id.type','=','原材料')]"/>
|
|
<!-- <searchpanel>-->
|
|
<!-- <field name="categ_id" icon="fa-building" enable_counters="1"/>-->
|
|
<!-- </searchpanel>-->
|
|
</xpath>
|
|
<xpath expr="//search" position="inside">
|
|
<searchpanel>
|
|
<field name="categ_id" icon="fa-building" enable_counters="1"/>
|
|
</searchpanel>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo> |