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
911 B

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Inherit account move to add extra fields.-->
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.account.budget.limit.alert</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="priority" eval="2"/>
<field name="arch" type="xml">
<xpath expr="//header" position="after">
<div class="alert alert-warning" role="alert"
invisible="state != 'draft' or not budget_warning">
<strong>Budget Exceed Alert.</strong>
<br/>
<field name="budget_warning"/>
<field name="budget_alert" invisible="1"/>
</div>
</xpath>
</field>
</record>
</odoo>