72 lines
3.7 KiB
XML
72 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record model="ir.ui.view" id="res_partner_view_form">
|
|
<field name="name">res.partner.view.form</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="priority" eval="5"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button groups="account.group_account_basic,account.group_account_readonly" type="object" class="oe_stat_button" name="open_follow_up_report" icon="fa-list" invisible="not has_moves">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="total_all_due" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
|
</span>
|
|
<span class="o_stat_text">Due</span>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_partner_property_form_followup">
|
|
<field name="name">res.partner.property.form.followup</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<group name="general" position="after">
|
|
<group string="Invoice Follow-ups" name="invoice_followups" groups="account.group_account_invoice">
|
|
<field name="company_id" invisible="1"/>
|
|
<div colspan="2" invisible="not followup_line_id">
|
|
<field name="followup_line_id" widget="statusbar" invisible="not unreconciled_aml_ids" options="{'clickable': '1'}" domain="[('company_id','=', current_company_id)]"/>
|
|
</div>
|
|
<label for="followup_status"/>
|
|
<div class="d-flex">
|
|
<field name="followup_status"
|
|
widget="badge"
|
|
decoration-danger="followup_status == 'in_need_of_action'"
|
|
decoration-warning="followup_status == 'with_overdue_invoices'"
|
|
class="w-50"
|
|
/>
|
|
<a name="action_open_partner_followup_journal_items"
|
|
invisible="followup_status not in ('in_need_of_action', 'with_overdue_invoices')"
|
|
class="fw-bold w-50"
|
|
type="object"
|
|
>
|
|
Journal Items
|
|
</a>
|
|
</div>
|
|
<label for="followup_reminder_type"/>
|
|
<div class="d-flex">
|
|
<field name="followup_reminder_type"
|
|
widget="radio"
|
|
class="w-50"
|
|
options="{'horizontal': true}"
|
|
/>
|
|
<a name="%(manual_reminder_action)d"
|
|
type="action"
|
|
class="fw-bold w-50"
|
|
>
|
|
Send
|
|
</a>
|
|
</div>
|
|
<field name="followup_next_action_date"/>
|
|
<field name="followup_responsible_id"/>
|
|
</group>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|