销售订单按钮顺序优化为: 确认接单/拒绝接单/创建结算单/通过Email发送
This commit is contained in:
@@ -17,11 +17,6 @@
|
|||||||
<xpath expr="//field[@name='user_id']" position="replace">
|
<xpath expr="//field[@name='user_id']" position="replace">
|
||||||
<field name="user_id" widget="many2one_avatar_user" context="{'is_sale': True }"/>
|
<field name="user_id" widget="many2one_avatar_user" context="{'is_sale': True }"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//form/header/button[@name='action_quotation_send'][1]" position="replace">
|
|
||||||
<button name="action_quotation_send" string="通过EMAIL发送" type="object"
|
|
||||||
class="btn-primary" data-hotkey="g" context="{'validate_analytic': True}"
|
|
||||||
attrs="{'invisible': ['|','&',('check_status', '!=', 'approved'),('state', 'in', ['draft','cancel']),'&',('check_status', '=', 'approved'),('state', 'in', ['sale','cancel'])]}"/>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//form/header/button[@name='action_confirm']" position="after">
|
<xpath expr="//form/header/button[@name='action_confirm']" position="after">
|
||||||
<button name="submit" string="提交" type="object"
|
<button name="submit" string="提交" type="object"
|
||||||
context="{'default_order_id':active_id}"
|
context="{'default_order_id':active_id}"
|
||||||
@@ -52,6 +47,39 @@
|
|||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="string">拒绝接单</attribute>
|
<attribute name="string">拒绝接单</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ======================= 销售订单按钮顺序优化 start ======================= -->
|
||||||
|
<xpath expr="//form/header/button[@name='action_quotation_send'][1]" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//form/header/button[@name='action_quotation_send'][4]" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//form/header/button[@id='create_invoice']" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//form/header/button[@id='create_invoice_percentage']" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//form/header/button[@name='action_cancel']" position="after">
|
||||||
|
<button id="create_invoice" name="%(sale.action_view_sale_advance_payment_inv)d"
|
||||||
|
string="创建结算单"
|
||||||
|
type="action" class="btn-primary" data-hotkey="q"
|
||||||
|
attrs="{'invisible': [('invoice_status', '!=', 'to invoice')]}"/>
|
||||||
|
<button id="create_invoice_percentage" name="%(sale.action_view_sale_advance_payment_inv)d"
|
||||||
|
string="创建结算单"
|
||||||
|
type="action" context="{'default_advance_payment_method': 'percentage'}" data-hotkey="q"
|
||||||
|
attrs="{'invisible': ['|',('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/>
|
||||||
|
<button name="action_quotation_send" string="通过EMAIL发送" type="object"
|
||||||
|
class="btn-primary" data-hotkey="g" context="{'validate_analytic': True}"
|
||||||
|
attrs="{'invisible': ['|','&',('check_status', '!=', 'approved'),('state', 'in', ['draft','cancel']),'&',('check_status', '=', 'approved'),('state', 'in', ['sale','cancel'])]}"/>
|
||||||
|
<button name="action_quotation_send" string="通过EMAIL发送" type="object" states="sent,sale"
|
||||||
|
data-hotkey="g" context="{'validate_analytic': True}"/>
|
||||||
|
</xpath>
|
||||||
|
<!-- ====================== 销售订单按钮顺序优化 end======================== -->
|
||||||
|
|
||||||
|
|
||||||
<xpath expr="//form/header/button[@name='action_draft']" position="attributes">
|
<xpath expr="//form/header/button[@name='action_draft']" position="attributes">
|
||||||
<attribute name="invisible">1</attribute>
|
<attribute name="invisible">1</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
Reference in New Issue
Block a user