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.
 
 
 
 
 

26 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inheriting account move model for adding interest fields -->
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.account.interest.on.overdue.invoice</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tax_totals']" position="before">
<field name="interest_overdue_act" invisible="1"/>
<button name="action_interest_compute"
string='(Update Interest)'
type='object' groups="account.group_account_invoice"
attrs="{'invisible': ['|','|',('interest_overdue_act', '=', False),('state','in',('posted','cancel')),('move_type','!=','out_invoice')]}"
class="oe_edit_only"/>
<button name="action_interest_reset" string='(Reset)'
type='object'
groups="sales_team.group_sale_manager,account.group_account_invoice"
attrs="{'invisible': ['|','|',('interest_overdue_act', '=', False),('state','in',('posted','cancel')),('move_type','!=','out_invoice')]}"
class="oe_edit_only"/>
<field name="interest_amount" widget="monetary"
attrs="{'invisible': ['|',('interest_overdue_act', '=', False),('move_type','!=','out_invoice')]}"/>
</xpath>
</field>
</record>
</odoo>