1.产品新增计划岗权限,页面部分字段新增只读控制2.采购优化确认订单按钮
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<field name="currency_id" position="after">
|
||||
<field name="check_status" invisible="1"/>
|
||||
<!-- <field name="state"/>-->
|
||||
<field name="remark"/>
|
||||
<field name="remark" attrs="{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['pending','approved'])]}"/>
|
||||
</field>
|
||||
<xpath expr="//form/header/button[@name='action_rfq_send'][1]" position="after">
|
||||
<button name="sf_sale.action_purchase_order_check_wizard" string="审核" type="action"
|
||||
@@ -20,7 +21,7 @@
|
||||
<xpath expr="//form/header/button[@name='button_confirm'][2]" position="replace">
|
||||
<button name="button_confirm" type="object" context="{'validate_analytic': True}"
|
||||
string="确认订单" id="draft_confirm"
|
||||
attrs="{'invisible': ['|','&',('check_status','in', ['approved','fail']),('state', 'in', ['draft','purchase']),('check_status','=',False ),('state', 'in', ['purchase'])]}"
|
||||
attrs="{'invisible': ['|','&',('check_status','in', ['approved','fail','pending']),('state', 'in', ['draft','purchase']),('state', 'in', ['purchase'])]}"
|
||||
/>
|
||||
</xpath>
|
||||
|
||||
@@ -65,42 +66,42 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='order_line']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</xpath>
|
||||
<field name="partner_ref" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="date_planned" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="receipt_reminder_email" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="user_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="origin" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="payment_term_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="fiscal_position_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
</field>
|
||||
@@ -114,12 +115,12 @@
|
||||
<field name="arch" type="xml">
|
||||
<field name="incoterm_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
<field name="incoterm_location" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['&',('state', 'in', ['purchase']),('check_status','in',
|
||||
['approved'])]}
|
||||
['pending','approved'])]}
|
||||
</attribute>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user