Files
gzth/yuthon_work_brand/views/purchase_menus.xml
T
2026-03-30 11:10:15 +08:00

39 lines
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- 复制采购产品动作,加上详细类型过滤 -->
<record id="action_purchase_product_template_consumable" model="ir.actions.act_window">
<field name="name">可消耗产品</field>
<field name="res_model">product.template</field>
<field name="view_mode">kanban,tree,form,activity</field>
<field name="context">{"search_default_filter_to_purchase":1, "purchase_product_template": 1}</field>
<field name="search_view_id" ref="product.product_template_search_view"/>
<field name="view_id" eval="False"/>
<field name="domain">[("detailed_type", "=", "consu")]</field>
</record>
<record id="action_purchase_product_template_service" model="ir.actions.act_window">
<field name="name">服务类产品</field>
<field name="res_model">product.template</field>
<field name="view_mode">kanban,tree,form,activity</field>
<field name="context">{"search_default_filter_to_purchase":1, "purchase_product_template": 1}</field>
<field name="search_view_id" ref="product.product_template_search_view"/>
<field name="view_id" eval="False"/>
<field name="domain">[("detailed_type", "=", "service")]</field>
</record>
<menuitem id="purchase_menus_root_board" name="采购" web_icon="yuthon_work_brand,static/description/purchase.png" sequence="95">
<menuitem id="purchase_fixe_assets_root" name="采购订单" action="purchase.purchase_form_action" sequence="1"/>
<menuitem id="purchase_fixed_root" name="办公用品" action="purchase.product_normal_action_puchased" sequence="2"/>
<menuitem id="purchase_consumable_root" name="可消耗" action="yuthon_work_brand.action_purchase_product_template_consumable" sequence="3"/>
<menuitem id="purchase_service_root" name="服务类" action="yuthon_work_brand.action_purchase_product_template_service" sequence="4"/>
<menuitem id="purchase_fixed_asset_root" name="固定资产" action="maintenance.hr_equipment_action" sequence="5"/>
<menuitem id="purchase_maintain_setting_root" name="配置" sequence="99">
<menuitem id="purchase_suppliers_root" name="供应商" action="account.res_partner_action_supplier" sequence="1"/>
<menuitem id="purchase_product_product_root" name="变体" action="purchase.product_product_action" sequence="5"/>
<menuitem id="purchase_attribute_root" name="产品属性" action="product.attribute_action" sequence="10"/>
<menuitem id="purchase_product_category_root" name="产品类别" action="product.product_category_action_form" sequence="15"/>
<menuitem id="product_uom_categ_root" name="计算单位类别" action="uom.product_uom_categ_form_action" sequence="20"/>
</menuitem>
</menuitem>
</odoo>