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.
 
 
 
 
 

21 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!--Adds new buttons to Invoice for approvals-->
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.double.validation.invoice</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="model">account.move</field>
<field name="arch" type="xml">
<xpath expr="//button[@name='preview_invoice']" position="before">
<button name="action_first_approval" string="Approve"
class="oe_highlight" states="first_approval"
type="object"
groups="double_validation_invoice.double_validation_invoice_group_manager"/>
<button name="action_second_approval" string="Approve"
class="oe_highlight" type="object"
states="second_approval"
groups="double_validation_invoice.double_validation_invoice_group_finance_manager"/>
</xpath>
</field>
</record>
</odoo>