You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited the Landed Cost Form to Add a Cancel Button in the Header-->
<record id="view_stock_landed_cost_form" model="ir.ui.view">
<field name="name">
stock.landed.cost.view.form.inherit.cancel.landed.cost.odoo
</field>
<field name="model">stock.landed.cost</field>
<field name="inherit_id"
ref="stock_landed_costs.view_stock_landed_cost_form"/>
<field name="arch" type="xml">
<xpath expr="//header" position="inside">
<button name="action_landed_cost_cancel_form" string="Cancel"
type="object"
class="oe_highlight"
groups="cancel_landed_cost_odoo.cancel_landed_cost_odoo_group_cancel_user"
invisible="(state != 'done') or (is_cancel)"/>
</xpath>
<xpath expr="//field[@name='vendor_bill_id']" position="after">
<field name="is_cancel" invisible="1"/>
</xpath>
</field>
</record>
</odoo>