销售1.新增进度状态字段,选项为:待排程、待加工、待发货、待收货、已收货,

2.销售和报价页面的所有按钮根据审核状态和状态做隐藏显示控制
3.销售订单Form和Tree视图新增进度状态字段,且form表单根据状态字段的值为销售和取消时,表单不可编辑
4.产品页面的所有按钮根据销售和采购的权限组做显示和隐藏控制
This commit is contained in:
jinling.yang
2023-12-21 17:45:29 +08:00
parent bbb5ddb177
commit 58d4b3813b
6 changed files with 160 additions and 37 deletions

View File

@@ -42,11 +42,53 @@
</group>
</page>
<page name="inventory" position="attributes">
<attribute name="groups">stock.group_stock_user,product.group_stock_packaging</attribute>
<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
</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>
@@ -80,5 +122,6 @@
</xpath>
</field>
</record>
</data>
</odoo>