action confirm pur
This commit is contained in:
parent
0aa7287c77
commit
451e94140f
|
|
@ -35,11 +35,23 @@
|
|||
'required':[('auto_notification','=', True),]}"/>
|
||||
<field name="cron_end_date" invisible="1"/>
|
||||
</xpath>
|
||||
<!-- states="wait,sign,sent"-->
|
||||
<xpath expr="//button[@name='button_confirm']" position="replace">
|
||||
<button name="button_confirm" type="object" states="wait,sign,sent" string="Confirm Order"
|
||||
<button name="button_confirm" type="object"
|
||||
string="Confirm Order"
|
||||
attrs="{'invisible': [('state', 'in', ('wait', 'sent')), ('is_purchase_budget', '=', True)]}"
|
||||
class="oe_highlight" id="bid_confirm"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='button_confirm']" position="attributes">
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('state', 'in', ('wait', 'sent')),
|
||||
('is_purchase_budget', '=', True)]}
|
||||
</attribute>
|
||||
</xpath>
|
||||
|
||||
|
||||
|
||||
<!-- show analytic account -->
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='account_analytic_id']" position="replace">
|
||||
</xpath>
|
||||
|
|
|
|||
|
|
@ -315,13 +315,24 @@
|
|||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='button_confirm']" position="attributes">
|
||||
<attribute name="groups">purchase.group_purchase_manager</attribute>
|
||||
<attribute name="states">draft</attribute>
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('state', '=', 'draft'),
|
||||
('is_purchase_budget', '=', True)]}
|
||||
</attribute>
|
||||
{"invisible": [["state", "=", "draft"], ["is_purchase_budget", "=", true]]}
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='button_confirm'][1]" position="attributes">
|
||||
<attribute name="groups">purchase.group_purchase_manager</attribute>
|
||||
<attribute name="states">sent</attribute>
|
||||
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('state', '=', 'sent'),
|
||||
('is_purchase_budget', '=', True)]}
|
||||
</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="/form/header/button[@name='action_rfq_send']" position="attributes">
|
||||
|
|
|
|||
Loading…
Reference in New Issue