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.5 KiB
26 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inheriting account.move for adding interest related fields -->
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.inherit.account.interest</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"
|
|
invisible=" not interest_overdue_act or state in ('posted','cancel') or 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"
|
|
invisible=" not interest_overdue_act or state in ('posted','cancel') or move_type != 'out_invoice'"
|
|
class="oe_edit_only"/>
|
|
<field name="interest_amount" widget="monetary"
|
|
invisible=" not interest_overdue_act or state in ('posted','cancel') or move_type != 'out_invoice'"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|