Merge pull request #3513 from expsa/change_orer_button
action confirm pur
This commit is contained in:
commit
2e08c48e6f
|
|
@ -87,6 +87,39 @@
|
|||
<field name="approved_date" invisible="0"/>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
||||
<record id="purchase_order_governmental_form_viewe" model="ir.ui.view">
|
||||
<field name="name">purchase.order.governmental.form.custom</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||
<field name="priority" eval="200"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
|
||||
<!-- states="wait,sign,sent"-->
|
||||
<xpath expr="//button[@name='button_confirm']" position="replace">
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Reference in New Issue