v4-po
This commit is contained in:
parent
8c60af366e
commit
799b6b54d5
|
|
@ -336,39 +336,40 @@
|
|||
|
||||
|
||||
<!-- Inherit the Purchase Order form -->
|
||||
<record id="purchase_order_custom_form_view_Inherit" model="ir.ui.view">
|
||||
<field name="name">purchase.order.form.custom</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase_requisition_custom.purchase_order_custom_form_view"/>
|
||||
<field name="priority" eval="100"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="/form/header" position="inside">
|
||||
<field name="requisition_id" invisible="1"/>
|
||||
<field name="annual_request_id" invisible="1"/>
|
||||
<field name="is_signed" invisible="1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="/form/header/button[@name='action_sign']" position="replace">
|
||||
<button type="object"
|
||||
name="action_sign"
|
||||
class="oe_highlight"
|
||||
string="Sign"
|
||||
groups="purchase_requisition_custom.group_sign_purchase_order"
|
||||
attrs="{
|
||||
'invisible': [
|
||||
'|','|',
|
||||
'&', ('requisition_id','=',False), ('annual_request_id','=',False),
|
||||
('state','in',['sign','purchase','to approve','done','cancel','budget_rejected','wait_for_send','waiting']),
|
||||
('is_signed','=',True)
|
||||
]
|
||||
}"/>
|
||||
</xpath>
|
||||
<record id="purchase_order_custom_form_view" model="ir.ui.view">
|
||||
<field name="name">purchase.order.form.custom</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||
<field name="priority" eval="100"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
|
||||
<xpath expr="//form/header" position="inside">
|
||||
<field name="requisition_id" invisible="1"/>
|
||||
<field name="annual_request_id" invisible="1"/>
|
||||
<field name="is_signed" invisible="1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="/form/header/button[@name='print_quotation']" position="after">
|
||||
<button type="object"
|
||||
name="action_sign"
|
||||
class="oe_highlight"
|
||||
string="Sign"
|
||||
groups="purchase_requisition_custom.group_sign_purchase_order"
|
||||
attrs="{
|
||||
'invisible': [
|
||||
'|','|',
|
||||
'&', ('requisition_id','=',False), ('annual_request_id','=',False),
|
||||
('state','in',['sign','purchase','to approve','done','cancel','budget_rejected','wait_for_send','waiting']),
|
||||
('is_signed','=',True)
|
||||
]
|
||||
}"/>
|
||||
</xpath>
|
||||
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
Loading…
Reference in New Issue