account
This commit is contained in:
13
account_reports/views/account_account_views.xml
Normal file
13
account_reports/views/account_account_views.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
<record id="view_account_form" model="ir.ui.view">
|
||||
<field name="name">account.account.reports.form</field>
|
||||
<field name="model">account.account</field>
|
||||
<field name="inherit_id" ref="account.view_account_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="currency_id" position="before">
|
||||
<field name="non_trade" invisible="account_type not in ('liability_payable', 'asset_receivable')"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
240
account_reports/views/account_audit_views.xml
Normal file
240
account_reports/views/account_audit_views.xml
Normal file
@@ -0,0 +1,240 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Account Audit -->
|
||||
<record id="account_audit_kanban_view" model="ir.ui.view">
|
||||
<field name="name">account.audit.kanban</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban js_class="account_return_audit_kanban" action="action_open_audit_return" type="object" can_open="0" on_create="account_reports.action_create_account_audit" options="{'allowed_categories': ['audit']}">
|
||||
<field name="state" />
|
||||
<t t-name="card" class="o_audit_kanban_record">
|
||||
<div class="d-flex flex-column w-100 h-100">
|
||||
<div class="d-flex flex-row justify-content-between w-100 ps-2 pe-4 py-2 gap-2">
|
||||
<h5 class="text-truncate" t-att-title="record.name.raw_value">
|
||||
<field name="name"/>
|
||||
</h5>
|
||||
<field
|
||||
widget="account_review_state_selection_badge"
|
||||
name="audit_status"
|
||||
options="{
|
||||
'ongoing': {'decoration': 'muted'},
|
||||
'paused': {'decoration': 'danger'},
|
||||
'done': {'decoration': 'success'},
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-column w-100 h-100 px-2 mt-2 gap-3">
|
||||
<div class="w-100">
|
||||
<label for="resolved_check_count">Balances</label>
|
||||
<field name="audit_balances_count" invisible="1"/>
|
||||
<field name="audit_balances_completed_count" class="w-100 audit_return_progressbar" widget="account_audit_progressbar" options="{ 'max_value': 'audit_balances_count'}"/>
|
||||
</div>
|
||||
|
||||
<div class="w-100" >
|
||||
<label for="resolved_check_count">Checks</label>
|
||||
<field name="check_count" invisible="1"/>
|
||||
<field name="resolved_check_count" class="w-100 audit_return_progressbar" widget="account_audit_progressbar" options="{ 'max_value': 'check_count'}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-row-reverse w-100 h-25 px-2 mt-2 align-items-center align-self-end">
|
||||
<field name="activity_ids" widget="kanban_activity" class="ms-1"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="menu" class="py-2">
|
||||
<field name="is_completed" invisible="1"/>
|
||||
<a class="dropdown-item" type="object" name="action_mark_completed" string="Mark as Completed" invisible="is_completed"/>
|
||||
<a class="dropdown-item" type="object" name="action_mark_uncompleted" string="Reset" invisible="not is_completed"/>
|
||||
<a class="dropdown-item" type="object" name="action_archive" string="Archive" invisible="state or is_completed or not active"/>
|
||||
<a class="dropdown-item" type="object" name="action_unarchive" string="Unarchive" invisible="active"/>
|
||||
<a class="dropdown-item" type="object" name="action_export_working_files" string="Export"/>
|
||||
<a class="dropdown-item" type="object" name="action_open_audit_settings" string="Configure"/>
|
||||
<a invisible="state" class="dropdown-item" type="delete" name="action_delete" groups="account.group_account_user">Delete</a>
|
||||
</t>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_audit_form_view" model="ir.ui.view">
|
||||
<field name="name">account.audit.form</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Edit Working File">
|
||||
<group>
|
||||
<field name="name" style="width: 40%"/>
|
||||
<label for="date_from" string="Dates"/>
|
||||
<div class="d-flex align-items-center">
|
||||
<field name="date_to" invisible="1"/>
|
||||
<field name="date_from" nolabel="1" style="width: 40%"
|
||||
widget="daterange" options="{'end_date_field': 'date_to'}"/>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="cycle_ids" widget="many2many_tags" options="{'no_open': True, 'no_create': True}"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string="Save" class="btn-primary" special="save" data-hotkey="q"/>
|
||||
<button class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_audit_search_view" model="ir.ui.view">
|
||||
<field name="name">account.audit.search</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="date_to"/>
|
||||
<field name="date_from"/>
|
||||
<field name="date_deadline"/>
|
||||
<field name="type_id"/>
|
||||
<field name="state"/>
|
||||
<field name="date_submission"/>
|
||||
<filter name="todo_returns" string="Ongoing" domain="[('audit_status', '=', 'ongoing')]"/>
|
||||
<filter name="done_returns" string="Done" domain="[('audit_status', '=', 'done')]"/>
|
||||
<filter name="paused_returns" string="Paused" domain="[('audit_status', '=', 'paused')]"/>
|
||||
<separator/>
|
||||
<filter name="filter_archived" string="Archived" domain="[('active', '=', False)]"/>
|
||||
<filter name="groupby_type_id" string="Return Type" context="{'group_by': 'type_id'}"/>
|
||||
<separator/>
|
||||
<filter invisible="1" string="My Activities" name="filter_activities_my" domain="[('activity_user_id', '=', uid)]"/>
|
||||
<separator invisible="1"/>
|
||||
<filter invisible="1" string="Late Activities" name="activities_overdue" domain="[('my_activity_date_deadline', '<', 'today')]" help="Show all records whose next activity date is past"/>
|
||||
<filter invisible="1" string="Today Activities" name="activities_today" domain="[('my_activity_date_deadline', '=', 'today')]"/>
|
||||
<filter invisible="1" string="Future Activities" name="activities_upcoming_all" domain="[('my_activity_date_deadline', '>', 'today')]"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_create_account_audit" model="ir.actions.act_window">
|
||||
<field name="name">Start an Audit</field>
|
||||
<field name="res_model">account.return.creation.wizard</field>
|
||||
<field name="view_id" ref="account_reports.return_creation_wizard_form"/>
|
||||
<field name="target">new</field>
|
||||
<field name="context">{'open_account_return_on_save': True, 'default_category': 'audit'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_audit" model="ir.actions.act_window">
|
||||
<field name="name">Working Files</field>
|
||||
<field name="res_model">account.return</field>
|
||||
<field name="view_mode">kanban,search</field>
|
||||
<field name="domain">[('return_type_category', '=', 'audit')]</field>
|
||||
<field name="view_id" ref="account_reports.account_audit_kanban_view"/>
|
||||
<field name="search_view_id" ref="account_reports.account_audit_search_view"/>
|
||||
<field name="context">{'search_default_todo_returns': 1, 'search_default_paused_returns': 1}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">No pending working files!</p>
|
||||
<p>Create a new working file to start your next period review.</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Account Balances -->
|
||||
<record id="account_audit_account_balances_list_view" model="ir.ui.view">
|
||||
<field name="name">account.audit.account.balances.list</field>
|
||||
<field name="model">account.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<list js_class="account_audit_balance_list" editable="top" create="0" edit="1" multi_edit="1" type="object">
|
||||
<field name="audit_balance_show_warning" column_invisible="1"/>
|
||||
<field name="audit_previous_balance_show_warning" column_invisible="1"/>
|
||||
<field name="code" readonly="1"/>
|
||||
<field name="name" readonly="1" string="Name" widget="accountAuditClickableCharField" options="{'onclick': 'action_audit_account'}"/>
|
||||
<field name="audit_debit" readonly="1" optional="hide"/>
|
||||
<field name="audit_credit" readonly="1" optional="hide"/>
|
||||
<field name="audit_balance" readonly="1"/>
|
||||
<field name="audit_previous_balance" readonly="1"/>
|
||||
<field name="audit_var_n_1" readonly="1"/>
|
||||
<field name="audit_var_percentage" widget="percentage" digits="[0,2]" readonly="1"/>
|
||||
<field name="last_message" readonly="1" />
|
||||
<field
|
||||
widget="account_review_state_selection_badge"
|
||||
name="audit_status"
|
||||
options="{
|
||||
'todo': {'decoration': 'info'},
|
||||
'reviewed': {'decoration': 'success'},
|
||||
'supervised': {'decoration': 'success'},
|
||||
'anomaly': {'decoration': 'danger'},
|
||||
}"
|
||||
/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_audit_account_balances_search_view" model="ir.ui.view">
|
||||
<field name="name">account.audit.account.balances.search</field>
|
||||
<field name="model">account.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="audit_debit"/>
|
||||
<field name="audit_credit"/>
|
||||
<field name="audit_balance"/>
|
||||
<field name="audit_previous_balance"/>
|
||||
<field name="audit_var_n_1"/>
|
||||
<field name="audit_var_percentage"/>
|
||||
<field name="account_type"/>
|
||||
<filter name="account_with_entries" string="Account with Entries" domain="['|', ('audit_debit', '!=', 0.0), '|', ('audit_credit', '!=', 0.0), ('audit_var_n_1', '!=', 0.0)]"/>
|
||||
<filter name="account_inactive" string="Inactive Account" domain="[('active', '=', False)]"/>
|
||||
<filter name="groupby_audit_status" string="Account Audit Status" context="{'group_by': 'audit_status'}"/>
|
||||
<filter name="groupby_type" string="Account Type" context="{'group_by': 'account_type'}"/>
|
||||
<filter string="Audit Accounts"
|
||||
name="audit_account_ids"
|
||||
invisible="not context.get('audit_account_ids')"
|
||||
domain="[('id', 'in', context.get('audit_account_ids'))]"
|
||||
/>
|
||||
<searchpanel>
|
||||
<field name="audit_status" select="multi" enable_counters="1"/>
|
||||
<field name="account_type" select="multi" enable_counters="1"/>
|
||||
</searchpanel>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_balances" model="ir.actions.act_window">
|
||||
<field name="name">Balances</field>
|
||||
<field name="res_model">account.account</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="account_reports.account_audit_account_balances_list_view"/>
|
||||
<field name="search_view_id" ref="account_reports.account_audit_account_balances_search_view"/>
|
||||
<field name="context">{'working_file_id': active_id }</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_audit_checks" model="ir.actions.act_window">
|
||||
<field name="name">Cycles</field>
|
||||
<field name="res_model">account.return.check</field>
|
||||
<field name="view_mode">kanban</field>
|
||||
<field name="view_id" ref="account_reports.account_return_check_kanban_view"/>
|
||||
<field name="domain">[['return_id', '=', active_id]]</field>
|
||||
<field name="context" eval="{
|
||||
'account_return_view_id': ref('account_reports.account_return_kanban_view'),
|
||||
'search_default_groupby_cycle': 1,
|
||||
'active_model': 'account.return',
|
||||
'max_number_opened_groups': 100000,
|
||||
}"/>
|
||||
</record>
|
||||
|
||||
<record id="account_audit_embedded_action_account_balances_view" model="ir.embedded.actions">
|
||||
<field name="parent_res_model">account.return</field>
|
||||
<field name="parent_action_id" ref="account_reports.action_view_account_audit_checks"/>
|
||||
<field name="sequence">10</field>
|
||||
<field name="name">Balances</field>
|
||||
<field name="context" eval="False"/>
|
||||
<field name="action_id" ref="account_reports.action_view_account_balances"/>
|
||||
</record>
|
||||
|
||||
<record id="account_audit_embedded_action_cycles_view" model="ir.embedded.actions">
|
||||
<field name="parent_res_model">account.return</field>
|
||||
<field name="parent_action_id" ref="account_reports.action_view_account_balances"/>
|
||||
<field name="sequence">10</field>
|
||||
<field name="name">Cycle</field>
|
||||
<field name="context" eval="False"/>
|
||||
<field name="python_method">action_open_audit_return</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
66
account_reports/views/account_journal_dashboard_view.xml
Normal file
66
account_reports/views/account_journal_dashboard_view.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="account_reports_journal_dashboard_kanban_view">
|
||||
<field name="name">account.journal.dashboard.kanban.reports</field>
|
||||
<field name="model">account.journal</field>
|
||||
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="//div[@name='kanban_manage_reports']" position="inside">
|
||||
<div t-if="journal_type == 'sale'">
|
||||
<a type="action" name="%(action_account_report_ar)d">Aged Receivables</a>
|
||||
</div>
|
||||
<div t-if="journal_type == 'purchase'">
|
||||
<a type="action" name="%(action_account_report_ap)d">Aged Payables</a>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<!-- Replace the displayed amount by an action opening the General Ledger report -->
|
||||
<xpath expr="//div[@id='dashboard_bank_cash_balance']" position="replace">
|
||||
<div id="dashboard_bank_cash_balance" class="col overflow-hidden text-start">
|
||||
<a type="object" name="action_open_bank_balance_in_gl" title="Last Statement balance + Transactions since statement">Balance</a>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='bank_and_cash_container']//div[@name='action_card_reconciliation']" position="inside">
|
||||
<a type="action" name="%(action_account_report_bank_reconciliation)d" groups="account.group_account_user" >Report</a>
|
||||
</xpath>
|
||||
|
||||
<t t-call="JournalMiscelaneous" position="before">
|
||||
<t t-if="dashboard['is_account_return_journal']" t-call="JournalTaxReturn"/>
|
||||
</t>
|
||||
|
||||
<t t-call="JournalMiscelaneous" position="attributes">
|
||||
<attribute name="t-if" add="!dashboard['is_account_return_journal']" separator="and"/>
|
||||
</t>
|
||||
|
||||
<xpath expr="//t[@name='empty_journal_helper']" position="inside">
|
||||
<span class="text-muted" t-if="dashboard['is_account_return_journal']">Simplify tax filing. Automate return preparation.</span>
|
||||
</xpath>
|
||||
|
||||
<t t-name="JournalMiscelaneous" position="after">
|
||||
<t t-name="JournalTaxReturn">
|
||||
<div id="dashboard_return_left" class="col mb-3 mb-sm-0">
|
||||
<div class="row">
|
||||
<div>
|
||||
<button type="action" name="account_reports.action_server_open_view_account_return" groups="account.group_account_user"
|
||||
t-attf-class="me-1 btn btn-{{dashboard['tax_return_button_color']}}">
|
||||
<t t-out="dashboard['tax_return_button_label']"/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<widget t-if="!record.has_posted_entries.raw_value and dashboard['onboarding']"
|
||||
name="account_onboarding"
|
||||
groups="account.group_account_manager"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dashboard_return_right" class="col-auto">
|
||||
<widget name="account_return_dashboard_list" groups="account.group_account_user"/>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
278
account_reports/views/account_move_views.xml
Normal file
278
account_reports/views/account_move_views.xml
Normal file
@@ -0,0 +1,278 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_move_form_vat_return" model="ir.ui.view">
|
||||
<field name="name">account.move.form.vat.return</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[hasclass('oe_button_box')]/button" position="before">
|
||||
<button
|
||||
name="action_open_tax_return"
|
||||
class="oe_stat_button"
|
||||
icon="book"
|
||||
type="object"
|
||||
string="Tax Return"
|
||||
invisible="not closing_return_id"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='line_ids']//list//field[@name='tax_ids']" position="attributes">
|
||||
<attribute name="column_invisible">parent.closing_return_id</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='line_ids']//list//field[@name='tax_tag_ids']" position="attributes">
|
||||
<attribute name="column_invisible">parent.closing_return_id</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='line_ids']//form//field[@name='tax_ids']" position="attributes">
|
||||
<attribute name="invisible">parent.closing_return_id</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_archived_tag_move_tree" model="ir.ui.view">
|
||||
<field name="name">account.archived.tax.tag.list</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='tax_ids']" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='tax_tag_ids']" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='matching_number']" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_journal_report_audit_move_line_tree" model="ir.ui.view">
|
||||
<field name="name">account.journal.report.audit.move.line.list</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="move_name" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</field>
|
||||
<list name="move_line_tree" position="attributes">
|
||||
<attribute name="js_class">account_move_line_journal_report_list</attribute>
|
||||
</list>
|
||||
<button name="edit" position="replace">
|
||||
<button name="open_partner" type="object" string="View"/>
|
||||
</button>
|
||||
<field name="invoice_date" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="account_id" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="tax_ids" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="date" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
<field name="matching_number" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
<field name="partner_id" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_journal_report_audit_bank_move_line_tree" model="ir.ui.view">
|
||||
<field name="name">account.journal.report.audit.bank.move.line.tree</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account_reports.view_journal_report_audit_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="invoice_date" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
<field name="date" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="matching_number" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="partner_id" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_journal_report_audit_move_line_search" model="ir.ui.view">
|
||||
<field name="name">account.journal.report.audit.move.line.search</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_account_move_line_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="journal_id" position="after">
|
||||
<field name="exclude_bank_lines"/>
|
||||
</field>
|
||||
<filter name="group_by_move" position="attributes">
|
||||
<attribute name="context">{'group_by': 'move_id'}</attribute>
|
||||
</filter>
|
||||
<filter name="to_check" position="after">
|
||||
<filter string="To Review or Draft"
|
||||
name="to_review_draft"
|
||||
domain="['|', ('parent_state', '=', 'draft'), ('move_id.review_state', 'in', ('todo', 'anomaly'))]"
|
||||
invisible="1"/>
|
||||
</filter>
|
||||
<filter name="sales" position="before">
|
||||
<filter string="Invoice lines" name="invoices_lines" domain="[('display_type','=','product')]" invisible="1"/>
|
||||
<filter string="Exclude Bank lines" name="search_default_exclude_bank_lines" domain="[('exclude_bank_lines','=', True)]" invisible="1"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_audit_check_invoices_list" model="ir.ui.view">
|
||||
<field name="name">account.invoice.list</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_invoice_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="partner_id"/>
|
||||
</field>
|
||||
<xpath expr="//field[@name='date']" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</xpath>
|
||||
<field name="ref" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<xpath expr="//field[@name='review_state']" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_audit_move_line_filter" model="ir.ui.view">
|
||||
<field name="name">account.audit.move.line.filter</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_account_move_line_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<group position="before">
|
||||
<separator/>
|
||||
<filter string="Audit Dates" name="audit_date_between"
|
||||
domain="[('date', '>=', context.get('date_from')), ('date', '<=', context.get('date_to'))]"
|
||||
/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_audit_move_line_list" model="ir.ui.view">
|
||||
<field name="name">account.move.line.tree.audit</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<list position="inside">
|
||||
<field name="cumulated_balance" optional="show"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_move_line_account" model="ir.ui.view">
|
||||
<field name="name">account.move.line.list.account</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree_grouped_partner"/>
|
||||
<field name="arch" type="xml">
|
||||
<list position="inside">
|
||||
<field name="cumulated_balance" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_analytic_move_line_tree" model="ir.ui.view">
|
||||
<field name="name">account.analytic.coverage.move.line.tree</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="analytic_distribution" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<xpath expr="//field[@name='analytic_distribution']" position="after">
|
||||
<field name="analytic_coverage"
|
||||
widget="percentage"
|
||||
optional="show"
|
||||
groups="analytic.group_analytic_accounting"
|
||||
invisible="not analytic_coverage"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_analytic_line_tree" model="ir.ui.view">
|
||||
<field name="name">account.analytic.coverage.analytic.line.tree</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="inherit_id" ref="analytic.view_account_analytic_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="move_line_id" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<field name="analytic_distribution" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</field>
|
||||
<xpath expr="//field[@name='analytic_distribution']" position="after">
|
||||
<field name="analytic_coverage"
|
||||
widget="percentage"
|
||||
optional="show"
|
||||
groups="analytic.group_analytic_accounting"
|
||||
invisible="not analytic_coverage"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_multi_currency_report_audit" model="ir.ui.view">
|
||||
<field name="name">account.multi.currency.report.audit.tree</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="balance" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</field>
|
||||
<field name="balance" position="after">
|
||||
<field name="consolidation_currency_id" column_invisible="1"/>
|
||||
<field name="consolidation_balance" string="Balance" sum="Total Balance"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_cumulative_translation_adjustment_audit_tree" model="ir.ui.view">
|
||||
<field name="name">account.other.comprehensive.income.audit.tree</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
<field name="debit" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</field>
|
||||
<field name="credit" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</field>
|
||||
<field name="balance" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</field>
|
||||
<field name="balance" position="after">
|
||||
<field name="consolidation_currency_id" column_invisible="1"/>
|
||||
<field name="consolidation_balance" string="Balance" sum="Total Balance"/>
|
||||
<field name="consolidation_rate" digits="[12,12]"/>
|
||||
<field name="cta_value" sum="Total CTA"/>
|
||||
</field>
|
||||
<field name="matching_number" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
20
account_reports/views/account_report_snapshot_views.xml
Normal file
20
account_reports/views/account_report_snapshot_views.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="snpashots_list_view" model="ir.ui.view">
|
||||
<field name="name">account.report.snapshot.list</field>
|
||||
<field name="model">account.report.snapshot</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="date"/>
|
||||
<field name="report_id"/>
|
||||
<field name="groupby"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="engine_func" optional="hide"/>
|
||||
<field name="engine_version" optional="hide"/>
|
||||
<field name="date_scope" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
396
account_reports/views/account_report_view.xml
Normal file
396
account_reports/views/account_report_view.xml
Normal file
@@ -0,0 +1,396 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="account_report_tree" model="ir.ui.view">
|
||||
<field name="name">account.report.list</field>
|
||||
<field name="model">account.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="country_id"/>
|
||||
<field name="root_report_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_add_sections_tree" model="ir.ui.view">
|
||||
<field name="name">account.report.add.sections.list</field>
|
||||
<field name="model">account.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<list editable="bottom" create="1" delete="1" decoration-muted="not active" open_form_view="True">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="country_id" readonly="1"/>
|
||||
<field name="active" widget="boolean_toggle"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_report_search" model="ir.ui.view">
|
||||
<field name="name">account.report.search</field>
|
||||
<field name="model">account.report</field>
|
||||
<field name="priority">100</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Accounting Reports">
|
||||
<field name="name"/>
|
||||
<field name="root_report_id"/>
|
||||
<filter string="Inactive" name="inactive" domain="[('active', '=', False)]"/>
|
||||
<group>
|
||||
<filter string="Country" name="country_id" domain="[]" context="{'group_by':'country_id'}"/>
|
||||
<filter string="Root Report" name="root_report_id" domain="[]" context="{'group_by':'root_report_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_coa" model="ir.ui.view">
|
||||
<field name="name">account.view.coa</field>
|
||||
<field name="model">account.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<list editable="top" create="1" delete="1" open_form_view="True">
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
<field name="company_ids" column_invisible="True"/>
|
||||
<field name="account_type"/>
|
||||
<field name="current_balance"/>
|
||||
<field name="tax_ids" optional="hide" widget="many2many_tax_tags"/>
|
||||
<field name="tag_ids" optional="hide" widget="many2many_tags"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_form" model="ir.ui.view">
|
||||
<field name="name">account.report.form</field>
|
||||
<field name="model">account.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<field name="is_account_coverage_report_available" invisible="1"/>
|
||||
<button class="btn btn-secondary float-end" invisible="not is_account_coverage_report_available"
|
||||
name="action_download_xlsx_accounts_coverage_report" type="object" string="Accounts Coverage Report"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<field name="snapshot_ids" invisible="1"/>
|
||||
<button
|
||||
string="Snapshots"
|
||||
class="oe_stat_button"
|
||||
name="action_open_snapshots"
|
||||
type="object"
|
||||
icon="history"
|
||||
invisible="snapshot_ids.length == 0"
|
||||
/>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="Report Name"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<field name="root_report_id" domain="[('root_report_id', '=', None)]"/>
|
||||
<field name="availability_condition" required="1" invisible="not root_report_id"/>
|
||||
<field name="use_sections" invisible="line_ids"/>
|
||||
<field name="force_pdf_engine"/>
|
||||
<field string="Group By" name="user_groupby" widget="user_groupby_widget" invisible="section_report_ids"/>
|
||||
<div colspan="2" class="alert alert-warning" role="alert" invisible="not display_custom_groupby_warning">
|
||||
This Report uses a custom user-defined 'Group By' value.
|
||||
<button class="oe_link" type="object" name="action_reset_custom_groupby">Reset to Standard</button>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="active" widget="boolean_toggle"/>
|
||||
<field name="country_id" invisible="availability_condition != 'country'" required="availability_condition == 'country'"/>
|
||||
<field name="chart_template" invisible="availability_condition != 'coa'" required="availability_condition == 'coa'"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<notebook>
|
||||
<page string="Lines" name="page_lines" invisible="use_sections">
|
||||
<field class="w-100" name="line_ids" no_label="1" widget="account_report_lines_list_x2many">
|
||||
<list limit="2000">
|
||||
<field name="id" column_invisible="1"/>
|
||||
<field name="sequence" column_invisible="1"/>
|
||||
<field name="parent_id" column_invisible="1"/>
|
||||
<field name="hierarchy_level" column_invisible="1"/>
|
||||
|
||||
<field name="name"/>
|
||||
<field name="code" optional="hide"/>
|
||||
<field name="print_on_new_page" optional="hide"/>
|
||||
<field name="hide_if_zero" optional="hide"/>
|
||||
<field name="user_groupby" optional="hide"/>
|
||||
<field name="foldability" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="Sections" name="page_sections" invisible="not use_sections">
|
||||
<field
|
||||
name="section_report_ids"
|
||||
no_label="1"
|
||||
options="{'no_create': True, 'no_quick_create': True}"
|
||||
domain="[('section_report_ids', '=', False)]"
|
||||
context="{'list_view_ref': 'account_reports.account_report_add_sections_tree', 'active_test': False}"
|
||||
/>
|
||||
</page>
|
||||
|
||||
<page string="Columns" name="page_columns" invisible="use_sections">
|
||||
<field name="column_ids">
|
||||
<list editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="expression_label"/>
|
||||
<field name="figure_type"/>
|
||||
<field name="sortable"/>
|
||||
<field name="blank_if_zero"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="Options" name="page_options" invisible="use_sections">
|
||||
<group>
|
||||
<group >
|
||||
<field name="load_more_limit"/>
|
||||
<field name="filter_hierarchy" required="1"/>
|
||||
<field name="filter_multi_company" groups="base.group_multi_company" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="default_opening_date_filter" required="True"/>
|
||||
<field name="horizontal_group_ids" widget="many2many_tags" options="{'no_quick_create': True, 'on_tag_click': 'open_form'}"/>
|
||||
<field name="filter_analytic_groupby" groups="analytic.group_analytic_accounting"/>
|
||||
</group>
|
||||
<group string="Advanced" class="oe_edit_only">
|
||||
<field name="use_fiscal_periods"/>
|
||||
<field name="filter_date_range"/>
|
||||
<field name="filter_unfold_all"/>
|
||||
<field name="filter_growth_comparison"/>
|
||||
<field name="filter_period_comparison"/>
|
||||
<field name="integer_rounding" placeholder="None"/>
|
||||
<field name="currency_translation" required="1" groups="base.group_multi_currency"/>
|
||||
<field name="enable_snapshots"/>
|
||||
</group>
|
||||
<group string="Filters" class="oe_edit_only">
|
||||
<field name="filter_account_type"/>
|
||||
<field name="filter_journals"/>
|
||||
<field name="filter_partner"/>
|
||||
<field name="filter_show_draft"/>
|
||||
<field name="filter_unreconciled"/>
|
||||
<field name="filter_aml_ir_filters"/>
|
||||
<field name="filter_hide_0_lines" help="This option hides lines with a value of 0"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_line_form" model="ir.ui.view">
|
||||
<field name="name">account.report.line.form</field>
|
||||
<field name="model">account.report.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="Report Line"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<field name="groupby" invisible="1"/>
|
||||
<field name="display_custom_groupby_warning" invisible="1"/>
|
||||
<field name="action_id"/>
|
||||
<field name="hierarchy_level"/>
|
||||
<field string="Group By" name="user_groupby" widget="user_groupby_widget" placeholder="Use report's 'Group By'"/>
|
||||
<div colspan="2" class="alert alert-warning" role="alert" invisible="not display_custom_groupby_warning">
|
||||
This line uses a custom user-defined 'Group By' value.
|
||||
<button class="oe_link" type="object" name="action_reset_custom_groupby">Reset to Standard</button>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="code"/>
|
||||
<field name="foldability" required="True"/>
|
||||
<field name="print_on_new_page"/>
|
||||
<field name="hide_if_zero"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<field name="expression_ids">
|
||||
<list>
|
||||
<field name="label"/>
|
||||
<field name="engine"/>
|
||||
<field name="formula" widget="text"/>
|
||||
<field name="subformula" widget="text"/>
|
||||
<field name="date_scope" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_expression_form" model="ir.ui.view">
|
||||
<field name="name">account.report.expression.form</field>
|
||||
<field name="model">account.report.expression</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="label" placeholder="Expression"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<notebook>
|
||||
<page string="Definition" name="page_definition">
|
||||
<group>
|
||||
<field name="engine"/>
|
||||
<field name="model_id" invisible="engine != 'reference'"/>
|
||||
<field name="formula" widget="text" invisible="engine == 'reference'"/>
|
||||
<field name="subformula" widget="text" required="engine == 'domain'"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Options" name="page_options">
|
||||
<group>
|
||||
<group>
|
||||
<field name="date_scope"/>
|
||||
<field name="figure_type"/>
|
||||
<field name="carryover_target"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="blank_if_zero"/>
|
||||
<field name="green_on_positive"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_horizontal_group_form" model="ir.ui.view">
|
||||
<field name="name">account.report.horizontal.group.form</field>
|
||||
<field name="model">account.report.horizontal.group</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="Group Name"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<field name="report_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="rule_ids">
|
||||
<form>
|
||||
<group>
|
||||
<field name="field_name"/>
|
||||
<field name="res_model_name" invisible="1"/>
|
||||
<field name="domain" widget="domain" options="{'model': 'res_model_name'}"/>
|
||||
</group>
|
||||
</form>
|
||||
<list>
|
||||
<field name="field_name"/>
|
||||
<field name="domain"/>
|
||||
</list>
|
||||
</field>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_horizontal_group_tree" model="ir.ui.view">
|
||||
<field name="name">account.report.horizontal.group.list</field>
|
||||
<field name="model">account.report.horizontal.group</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="report_ids" widget="many2many_tags"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_external_value_tree" model="ir.ui.view">
|
||||
<field name="name">account.report.external.value.list</field>
|
||||
<field name="model">account.report.external.value</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="0">
|
||||
<field name="report_country_id" column_invisible="True"/>
|
||||
<field name="name"/>
|
||||
<field name="date"/>
|
||||
<field name="value"/>
|
||||
<field name="text_value"/>
|
||||
<field name="target_report_expression_id" optional="hide"/>
|
||||
<field name="target_report_line_id" optional="hide"/>
|
||||
<field name="target_report_expression_label" optional="hide"/>
|
||||
<field name="company_id" optional="hide" groups="base.group_multi_company"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_budget_tree" model="ir.ui.view">
|
||||
<field name="name">account.report.budget.list</field>
|
||||
<field name="model">account.report.budget</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="company_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_report_budget_form" model="ir.ui.view">
|
||||
<field name="name">account.report.budget.form</field>
|
||||
<field name="model">account.report.budget</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="Budget Name"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<notebook>
|
||||
<page string="Budget Items" name="budget_items">
|
||||
<field name="item_ids" nolabel="1">
|
||||
<list editable="bottom">
|
||||
<field name="account_id" width="40%"/>
|
||||
<field name="date" string="Months" options="{'min_precision': 'months'}" width="30%"/>
|
||||
<field name="amount" width="30%"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_create_composite_report_list" model="ir.actions.server">
|
||||
<field name="name">Create Composite Report</field>
|
||||
<field name="model_id" ref="model_account_report"/>
|
||||
<field name="binding_model_id" ref="model_account_report"/>
|
||||
<field name="binding_view_types">list,kanban</field>
|
||||
<field name="group_ids" eval="[Command.link(ref('account.group_account_user'))]"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
action = records.action_create_composite_report()
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,77 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="account_return_check_template_list_view" model="ir.ui.view">
|
||||
<field name="name">account.return.check.template.list</field>
|
||||
<field name="model">account.return.check.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="return_type"/>
|
||||
<field name="cycle_id"/>
|
||||
<field name="type" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_check_template_form_view" model="ir.ui.view">
|
||||
<field name="name">account.return.check.template.form</field>
|
||||
<field name="model">account.return.check.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="cycle_id" options="{'no_open': 1, 'no_create': 1}"/>
|
||||
<field name="return_type" options="{'no_open': 1, 'no_create_edit': 1}"/>
|
||||
<field name="type" widget="badges_selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="action_id" groups="base.group_no_one"/>
|
||||
<field name="activity_type"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page name="notes_page" string="Description">
|
||||
<group colspan="2">
|
||||
<field name="description" nolabel="1"/>
|
||||
</group>
|
||||
</page>
|
||||
<page name="automated_checks_page" string="Automated Checks" invisible="type == 'file'">
|
||||
<group>
|
||||
<field name="model"/>
|
||||
<field name="domain" widget="domain" options="{'model': 'model'}" invisible="not model"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_check_template_search_view" model="ir.ui.view">
|
||||
<field name="name">account.return.check.template.search</field>
|
||||
<field name="model">account.return.check.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="return_type"/>
|
||||
<field name="cycle_id"/>
|
||||
<filter name="filter_manual" string="Manual" domain="[('type', '=', 'check'), ('model', '=', False)]"/>
|
||||
<filter name="filter_automated" string="Automated" domain="[('type', '=', 'check'), ('model', '!=', False)]"/>
|
||||
<filter name="filter_file_upload" string="Document Upload" domain="[('type', '=', 'file')]"/>
|
||||
|
||||
<filter name="groupby_cycle" string="Cycle" context="{'group_by': 'cycle_id'}"/>
|
||||
<filter name="groupby_type" string="Type" context="{'group_by': 'type'}"/>
|
||||
<filter name="groupby_return_type" string="Return/Audit" context="{'group_by': 'return_type'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_return_check_templates" model="ir.actions.act_window">
|
||||
<field name="name">Check Templates</field>
|
||||
<field name="res_model">account.return.check.template</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
115
account_reports/views/account_return_check_views.xml
Normal file
115
account_reports/views/account_return_check_views.xml
Normal file
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="account_return_check_kanban_view" model="ir.ui.view">
|
||||
<field name="name">account.return.check.kanban</field>
|
||||
<field name="model">account.return.check</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban js_class="account_return_check_kanban" create="0" edit="0" class="account_return_check_kanban">
|
||||
<field name="state"/>
|
||||
<field name="return_state"/>
|
||||
<field name="result"/>
|
||||
<field name="action"/>
|
||||
<field name="type"/>
|
||||
<field name="attachment_ids"/>
|
||||
<field name="cycle_id"/>
|
||||
<field name="records_count"/>
|
||||
<field name="is_return_active"/>
|
||||
<field name="is_main_company_active"/>
|
||||
<field name="return_id"/> <!-- mandatory -->
|
||||
|
||||
<templates>
|
||||
<t t-name="card" class="o_return_check_kanban_card p-0 rounded" >
|
||||
<t t-set="result" t-value="record.result.raw_value"/>
|
||||
<t t-set="is_return_active" t-value="record.is_return_active.raw_value" />
|
||||
<t t-set="message" t-value="record.message.raw_value"/>
|
||||
<t t-set="records_count" t-value="record.records_count.raw_value"/>
|
||||
<t t-set="records_name" t-value="record.records_name.raw_value"/>
|
||||
<t t-set="return_state" t-value="record.return_state.raw_value"/>
|
||||
|
||||
<t t-set="card_border_color" t-value="result === 'anomaly' ? 'red' : (result === 'todo' ? 'gray' : 'green')"/>
|
||||
<div t-attf-class="return-check-card-#{card_border_color} rounded-end p-2 p-lg-3 pb-0 pb-lg-0 opacity-trigger-hover">
|
||||
<div class="d-flex flex-wrap z-0 pb-2">
|
||||
<div class="col-12 col-md-8">
|
||||
<div>
|
||||
<field class="oe_inline fw-bold" name="name" readonly="1" nolabel="1"/>
|
||||
<span t-if="records_count" class="ps-3 text-danger small">
|
||||
<t t-out="records_count < 21 ? records_count : '20+'"/>
|
||||
<field name="records_name" class="ms-1"/>
|
||||
</span>
|
||||
</div>
|
||||
<div invisible="not message" class="text-muted">
|
||||
<field class="m-0" name="message"/>
|
||||
</div>
|
||||
<div class="d-flex align-items-center pt-2" t-if="record.is_return_active.raw_value and record.type.raw_value === 'file'">
|
||||
<widget invisible="attachment_ids" name="account_return_check_file_uploader"/>
|
||||
<t t-if="record.attachment_ids.raw_value.length">
|
||||
<widget name="account_return_check_attachment_viewer"/>
|
||||
<button type="object" class="btn-link oi-lg text-dark ms-1" title="delete" icon="delete" icon_class="oi-filled" name="action_unlink_attachments"/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-4 pt-2 pt-xl-0 d-flex align-items-center align-self-start justify-content-end z-1">
|
||||
<field name="approver_supervisor_ids" widget="many2many_avatar_user_approver" readonly="True" class="d-flex mt-0 me-2"/>
|
||||
<t t-if="!return_state">
|
||||
<field
|
||||
name="result"
|
||||
widget="account_review_state_selection_badge"
|
||||
readonly="not is_main_company_active"
|
||||
options="{
|
||||
'todo': {'decoration': 'info'},
|
||||
'reviewed': {'decoration': 'success'},
|
||||
'supervised': {'decoration': 'success', 'can_edit': 'account.group_account_manager'},
|
||||
'anomaly': {'decoration': 'danger'},
|
||||
}"
|
||||
/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<field
|
||||
name="result"
|
||||
widget="account_review_state_selection_badge"
|
||||
readonly="not is_main_company_active"
|
||||
options="{
|
||||
'todo': {'decoration': 'info', 'can_edit': false},
|
||||
'reviewed': {'decoration': 'success', 'can_edit': false},
|
||||
'supervised': {'decoration': 'success', 'can_edit': false},
|
||||
'anomaly': {'decoration': 'danger', 'can_edit': false},
|
||||
}"
|
||||
/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-100 mb-2">
|
||||
<div class="px-2 border-start small">
|
||||
<field name="notes" widget="account_return_editable_badge" placeholder="Add notes..." readonly="not is_main_company_active"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_check_search_view" model="ir.ui.view">
|
||||
<field name="name">account.return.check.search</field>
|
||||
<field name="model">account.return.check</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="result"/>
|
||||
<field name="cycle_id"/>
|
||||
<field name="type"/>
|
||||
<field name="return_id"/>
|
||||
<field name="template_id"/>
|
||||
|
||||
<filter name="anomaly_checks" string="Anomaly" domain="[('result', '=', 'anomaly')]"/>
|
||||
<filter name="todo_checks" string="To Review" domain="[('result', '=', 'todo')]"/>
|
||||
<filter name="reviewed_checks" string="Reviewed" domain="[('result', '=', 'reviewed')]"/>
|
||||
<filter name="supervised_checks" string="Supervised" domain="[('result', '=', 'supervised')]"/>
|
||||
<filter name="groupby_cycle" string="Cycle" context="{'group_by': 'cycle_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
113
account_reports/views/account_return_type_views.xml
Normal file
113
account_reports/views/account_return_type_views.xml
Normal file
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="account_return_type_form_view" model="ir.ui.view">
|
||||
<field name="name">account.return.type.form</field>
|
||||
<field name="model">account.return.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<field name="is_master_data" invisible="1"/>
|
||||
<field name="is_tax_return_type" invisible="1"/>
|
||||
<group>
|
||||
<field name="category" widget="radio" options="{'horizontal': true}" readonly="is_master_data"/>
|
||||
<group colspan="2">
|
||||
<h1>
|
||||
<field name="name" placeholder="Tax Return" invisible="category != 'account_return'"/>
|
||||
<field name="name" placeholder="Audit" invisible="category != 'audit'"/>
|
||||
</h1>
|
||||
</group>
|
||||
<group>
|
||||
<field name="deadline_periodicity"/>
|
||||
<field name="deadline_start_date" invisible="deadline_periodicity == 'fiscalyear'"/>
|
||||
<label for="deadline_days_delay" class="o_form_label"/>
|
||||
<div class="d-flex align-items-left">
|
||||
<field name="deadline_days_delay" style="width: 15%" class="o_form_field text-center"/>
|
||||
<span style="width: 85%">days after tax period</span>
|
||||
</div>
|
||||
<field name="states_workflow" invisible="category == 'audit' or is_master_data" required="1"/>
|
||||
<field name="tax_payable_account_id" invisible="not is_tax_return_type"/>
|
||||
<field name="tax_receivable_account_id" invisible="not is_tax_return_type"/>
|
||||
<field name="advance_tax_payment_account_id" invisible="not is_tax_return_type"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="country_id" string="Country" invisible="category == 'audit'"/>
|
||||
<field name="report_id"/>
|
||||
<field name="payment_partner_id" invisible="category == 'audit'"/>
|
||||
<field name="payment_partner_bank_id" invisible="category == 'audit'" context="{'default_partner_id': payment_partner_id}"/>
|
||||
</group>
|
||||
<group string="Tax Closing Rounding" invisible="not is_tax_return_type">
|
||||
<field name="tax_closing_rounding_profit_account_id"/>
|
||||
<field name="tax_closing_rounding_loss_account_id"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_type_list_view" model="ir.ui.view">
|
||||
<field name="name">account.return.type.list.view</field>
|
||||
<field name="model">account.return.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="is_tax_return_type" column_invisible="1"/>
|
||||
<field name="tax_closing_account_placeholder" column_invisible="1"/> <!-- Needed for placeholder_field -->
|
||||
<field name="name" string="Return Name"/>
|
||||
<field name="category" string="Type" optional="hide"/>
|
||||
<field name="deadline_periodicity"/>
|
||||
<field name="tax_payable_account_id"
|
||||
widget="account_reports.forced_placeholder"
|
||||
readonly="not is_tax_return_type"
|
||||
decoration-muted="not tax_payable_account_id"
|
||||
options="{'placeholder_field': 'tax_closing_account_placeholder'}"/>
|
||||
<field name="tax_receivable_account_id"
|
||||
widget="account_reports.forced_placeholder"
|
||||
readonly="not is_tax_return_type"
|
||||
decoration-muted="not tax_receivable_account_id"
|
||||
options="{'placeholder_field': 'tax_closing_account_placeholder'}"/>
|
||||
<field name="advance_tax_payment_account_id"
|
||||
optional="hide"
|
||||
widget="account_reports.forced_placeholder"
|
||||
readonly="not is_tax_return_type"
|
||||
decoration-muted="not advance_tax_payment_account_id"
|
||||
options="{'placeholder_field': 'tax_closing_account_placeholder'}"/>
|
||||
<field name="country_id"/>
|
||||
<field name="active" widget="boolean_toggle"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_type_search_view" model="ir.ui.view">
|
||||
<field name="name">account.return.type.search.view</field>
|
||||
<field name="model">account.return.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="category"/>
|
||||
<field name="report_id"/>
|
||||
<field name="country_id"/>
|
||||
<field name="deadline_periodicity"/>
|
||||
<field name="deadline_start_date"/>
|
||||
<field name="payment_partner_id"/>
|
||||
<field name="payment_partner_bank_id"/>
|
||||
|
||||
<filter name="tax_return" string="Tax Return" domain="[('category', '=', 'account_return')]"/>
|
||||
<filter name="audit" string="Audit" domain="[('category', '=', 'audit')]"/>
|
||||
|
||||
<filter name="groupby_category" string="Category" context="{'group_by': 'category'}"/>
|
||||
<filter name="groupby_country" string="Country" context="{'group_by': 'country_id'}"/>
|
||||
<filter name="groupby_periodicity" string="Periodicity" context="{'group_by': 'deadline_periodicity'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_return_types" model="ir.actions.act_window">
|
||||
<field name="name">Return Types</field>
|
||||
<field name="res_model">account.return.type</field>
|
||||
<field name="view_id" ref="account_reports.account_return_type_list_view"/>
|
||||
<field name="context">{'active_test': False}</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
246
account_reports/views/account_return_views.xml
Normal file
246
account_reports/views/account_return_views.xml
Normal file
@@ -0,0 +1,246 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="account_return_kanban_view" model="ir.ui.view">
|
||||
<field name="name">account.return.kanban</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban js_class="account_return_kanban" on_create="account_reports.action_create_account_return" options="{'allowed_categories': ['account_return']}">
|
||||
<field name="state"/>
|
||||
<field name="check_ids"/>
|
||||
<field name="is_completed"/>
|
||||
<field name="type_external_id"/>
|
||||
<field name="report_opened_once"/>
|
||||
<field name="is_report_set"/>
|
||||
<field name="has_move_entries"/>
|
||||
<field name="is_main_company_active"/>
|
||||
<field name="show_companies"/>
|
||||
<field name="show_amount_to_pay"/>
|
||||
<field name="date_submission"/>
|
||||
<field name="days_to_deadline"/>
|
||||
<field name="return_type_category"/>
|
||||
<field name="manually_created"/>
|
||||
<field name="visible_states"/>
|
||||
<field name="is_tax_return"/>
|
||||
<field name="is_ec_sales_list_return"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="next_state"/>
|
||||
<field name="show_submit_button"/>
|
||||
|
||||
<t t-name="card" class="mt-0 border-0 border-bottom px-0">
|
||||
<t t-set="in_checks_view" t-value="context.in_checks_view"/>
|
||||
<t t-set="in_kanban_list_view" t-value="!in_checks_view"/>
|
||||
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" invisible="not context.get('in_checks_view') or active"/>
|
||||
<div class="alert alert-warning text-center" role="alert" invisible="not context.get('in_checks_view') or not show_companies_mismatch_warning">
|
||||
Your active companies do not match this return's companies. The results shown for the checks might be incomplete.
|
||||
</div>
|
||||
<div class="o_account_return_padding position-relative grid g-2 py-1 w-100">
|
||||
<div class="o_account_return_title d-flex align-items-center flex-wrap column-gap-2">
|
||||
<div class="d-flex flex-wrap gap-1">
|
||||
<field class="fw-bold" name="name"/>
|
||||
<div t-if="in_kanban_list_view and record.unresolved_check_count.raw_value" class="text-nowrap text-danger">
|
||||
<field class="fw-bolder" name="unresolved_check_count"/> Pending
|
||||
</div>
|
||||
<div t-if="in_kanban_list_view and !record.unresolved_check_count.raw_value and record.resolved_check_count.raw_value" class="text-nowrap ps-2 text-success">
|
||||
<field class="fw-bolder" name="resolved_check_count"/> Passed
|
||||
</div>
|
||||
</div>
|
||||
<div id="date_wrapper" class="o_field_widget" invisible="return_type_category == 'audit'">
|
||||
<t t-if="!record.date_submission.raw_value">
|
||||
<span t-attf-class="badge rounded-pill {{
|
||||
record.is_completed.raw_value ? 'text-bg-success' :
|
||||
record.days_to_deadline.raw_value < 0 ? 'text-bg-danger' :
|
||||
record.days_to_deadline.raw_value <= 7 ? 'text-bg-warning' :
|
||||
'text-bg-secondary'
|
||||
}}" t-att-title="record.date_deadline.value">
|
||||
<field class="smaller" name="date_deadline"/>
|
||||
</span>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span class="oe_stat_text text-black-50">Submitted on </span><field class="text-black-50" name="date_submission"/>
|
||||
</t>
|
||||
</div>
|
||||
<field name="company_ids" widget="many2many_tags" invisible="not show_companies" class="pt-1"/>
|
||||
</div>
|
||||
|
||||
<div id="account_tax_return_amount" class="account_tax_return_amount d-flex align-items-center justify-content-lg-center" t-if="record.return_type_category.raw_value != 'audit' and record.show_amount_to_pay.raw_value">
|
||||
<field name="amount_to_pay_currency_id" invisible="1"/>
|
||||
<div id="return_amount_to_pay" invisible="not show_amount_to_pay or not is_main_company_active">
|
||||
<div class="o_account_return_amount o_field_widget small fw-bold">
|
||||
<field name="period_amount_to_pay"/>
|
||||
</div>
|
||||
<span t-if="in_kanban_list_view and record.total_amount_to_pay.raw_value !== record.period_amount_to_pay.raw_value"
|
||||
class="oe_stat_text text-muted smaller fw-bold">
|
||||
Balance <field name="total_amount_to_pay"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- States bar -->
|
||||
<div class="o_account_return_state align-items-center grid gap-0"
|
||||
t-attf-style="--state-count: #{record.visible_states.raw_value.length};">
|
||||
<t t-foreach="record.visible_states.raw_value" t-as="state" t-key="state.name">
|
||||
<div class="state-container position-relative d-flex gap-2 flex-column align-items-center" t-att-class="{'active': state.active}">
|
||||
<div class="state-bubble rounded-circle z-1" t-attf-class="bg-#{state.alert_type}" t-att-title="state.error_msg"/>
|
||||
<span class="state-label smaller text-nowrap text-truncate px-1" t-out="state.label"/>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
<!-- Buttons -->
|
||||
<div class="o_account_return_buttons d-flex flex-wrap justify-content-end align-items-center gap-1">
|
||||
<field name="activity_ids" invisible="context.get('in_checks_view')" widget="kanban_activity" class="ms-1"/>
|
||||
|
||||
<button type="object" name="action_open_attachments" invisible="context.get('in_checks_view') or message_attachment_count <= 0 or not is_main_company_active">
|
||||
<i class="oi oi-lg" data-icon="attach_file" title="Open Attachments"/>
|
||||
<sup><field name="message_attachment_count"/></sup>
|
||||
</button>
|
||||
|
||||
<t t-if="record.is_report_set.raw_value">
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_report"
|
||||
t-attf-class="btn #{in_kanban_list_view ? 'btn-sm' : ''} text-nowrap text-truncate btn-#{record.show_submit_button.raw_value and !record.report_opened_once.raw_value? 'primary': 'secondary'}"
|
||||
string="Preview"
|
||||
/>
|
||||
</t>
|
||||
|
||||
<t t-if="record.is_main_company_active.raw_value and !record.is_completed.raw_value" id="default_buttons">
|
||||
<t t-if="record.next_state.raw_value == 'reviewed' and record.unresolved_check_count.raw_value">
|
||||
<t t-if="in_kanban_list_view">
|
||||
<button class="btn btn-primary btn-sm text-nowrap text-truncate" type="object" name="action_open_account_return">Review</button>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<button class="btn btn-primary text-nowrap text-truncate" type="object" name="action_validate" invisible="not active">Validate</button>
|
||||
</t>
|
||||
</t>
|
||||
<t t-elif="record.show_submit_button.raw_value">
|
||||
<button
|
||||
type="object"
|
||||
name="action_submit"
|
||||
t-attf-class="btn #{in_kanban_list_view ? 'btn-sm' : ''} text-nowrap text-truncate btn-#{(!record.is_report_set.raw_value or record.report_opened_once.raw_value)? 'primary': 'secondary'}"
|
||||
invisible="not active"
|
||||
>
|
||||
<!-- so it can be targeted -->
|
||||
<span>Submit</span>
|
||||
</button>
|
||||
</t>
|
||||
<t t-elif="record.next_state.raw_value == 'paid'">
|
||||
<button t-attf-class="btn btn-primary text-nowrap text-truncate #{in_kanban_list_view ? 'btn-sm' : ''}" type="object" name="action_pay">Pay</button>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<div class="dropdown show" invisible="not is_main_company_active">
|
||||
<button class="btn border-0" type="button" data-bs-toggle="dropdown">
|
||||
<i class="oi" data-icon="more_vert" title="Dropdown Menu"/>
|
||||
</button>
|
||||
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" role="menu">
|
||||
<a invisible="is_completed or not active" class="dropdown-item" type="object" name="action_mark_completed" string="Mark as Completed"/>
|
||||
<a invisible="not has_move_entries or state not in ('reviewed', 'submitted', 'paid')" class="dropdown-item" type="object" name="action_view_entry" string="View Entry"/>
|
||||
<a invisible="context.get('in_checks_view') or not active or state or is_completed" class="dropdown-item" type="object" name="action_archive" string="Archive"/>
|
||||
<a invisible="active" class="dropdown-item" type="object" name="action_unarchive" string="Unarchive"/>
|
||||
<a invisible="context.get('in_checks_view') or not (manually_created and not state)" class="dropdown-item" type="delete" name="action_delete" groups="account.group_account_user">Delete</a>
|
||||
|
||||
<!-- Reset should be last-->
|
||||
<t t-if="record.state.raw_value or record.is_completed.raw_value">
|
||||
<a t-if="record.is_tax_return.raw_value" class="dropdown-item" type="object" name="action_reset_tax_return_common" string="Reset"/>
|
||||
<a t-if="record.is_ec_sales_list_return.raw_value" class="dropdown-item" type="object" name="action_reset_2_states" string="Reset"/>
|
||||
<a t-if="record.return_type_category.raw_value == 'audit'" class="dropdown-item" type="object" name="action_reset_custom_return" string="Reset"/>
|
||||
<a t-if="record.type_external_id.raw_value == 'account_reports.annual_corporate_tax_return_type'" class="dropdown-item" type="object" name="action_reset_annual_closing" string="Reset"/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_calendar_view" model="ir.ui.view">
|
||||
<field name="name">account.return.calendar</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<calendar
|
||||
js_class="account_return_calendar"
|
||||
string="Tax Return"
|
||||
create="False"
|
||||
edit="False"
|
||||
delete="False"
|
||||
date_start="date_deadline"
|
||||
mode="year"
|
||||
quick_create="0"
|
||||
color="type_id">
|
||||
<field name="name"/>
|
||||
<field name="type_id" filters="1"/>
|
||||
</calendar>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_return_search_view" model="ir.ui.view">
|
||||
<field name="name">account.return</field>
|
||||
<field name="model">account.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="date_to"/>
|
||||
<field name="date_from"/>
|
||||
<field name="date_deadline"/>
|
||||
<field name="type_id"/>
|
||||
<field name="state"/>
|
||||
<field name="date_submission"/>
|
||||
<filter name="todo_returns" string="To Do" domain="[('is_completed', '=', False), ('date_to', '<', 'today')]"/>
|
||||
<filter name="done_returns" string="Done" domain="[('is_completed', '=', True)]"/>
|
||||
<separator/>
|
||||
<filter name="date_deadline_filter" string="Deadline" date="date_deadline"/>
|
||||
<separator/>
|
||||
<filter name="filter_archived" string="Archived" domain="[('active', '=', False)]"/>
|
||||
<filter name="groupby_date_to" string="Date" context="{'group_by': 'date_to:month'}"/>
|
||||
<filter name="groupby_type_id" string="Return Type" context="{'group_by': 'type_id'}"/>
|
||||
<separator/>
|
||||
<filter invisible="1" string="Return type" name="filter_report_id" domain="[('type_id.report_id.id', '=', context.get('filter_report_id'))]"/>
|
||||
<separator/>
|
||||
<filter invisible="1" string="My Activities" name="filter_activities_my" domain="[('activity_user_id', '=', uid)]"/>
|
||||
<separator invisible="1"/>
|
||||
<filter invisible="1" string="Late Activities" name="activities_overdue" domain="[('my_activity_date_deadline', '<', 'today')]" help="Show all records whose next activity date is past"/>
|
||||
<filter invisible="1" string="Today Activities" name="activities_today" domain="[('my_activity_date_deadline', '=', 'today')]"/>
|
||||
<filter invisible="1" string="Future Activities" name="activities_upcoming_all" domain="[('my_activity_date_deadline', '>', 'today')]"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_server_open_view_account_return" model="ir.actions.server">
|
||||
<field name="name">Open Tax Return</field>
|
||||
<field name="model_id" ref="model_account_return"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">action = model.action_open_tax_return_view()</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_account_return" model="ir.actions.act_window">
|
||||
<field name="name">Tax Returns</field>
|
||||
<field name="res_model">account.return</field>
|
||||
<field name="view_mode">kanban,calendar,search</field>
|
||||
<field name="domain">[('return_type_category', '=', 'account_return')]</field>
|
||||
<field name="path">tax-return</field>
|
||||
<field name="view_id" ref="account_reports.account_return_kanban_view"/>
|
||||
<field name="search_view_id" ref="account_reports.account_return_search_view"/>
|
||||
<field name="context">{'search_default_groupby_date_to': 1, 'search_default_todo_returns': 1, 'max_number_opened_groups': 100000}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">No tax return to do!</p>
|
||||
<p>Time to relax 🌴</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_create_account_return" model="ir.actions.act_window">
|
||||
<field name="name">Generate Return</field>
|
||||
<field name="res_model">account.return.creation.wizard</field>
|
||||
<field name="view_id" ref="account_reports.return_creation_wizard_form"/>
|
||||
<field name="target">new</field>
|
||||
<field name="context">{'open_account_return_on_save': True}</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_action_account_return" parent="account.account_closing_menu" action="action_server_open_view_account_return" name="Tax Returns" sequence="67"/>
|
||||
</data>
|
||||
</odoo>
|
||||
64
account_reports/views/account_tax_views.xml
Normal file
64
account_reports/views/account_tax_views.xml
Normal file
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_tax_unit_form" model="ir.ui.view">
|
||||
<field name="name">account.tax.unit.form</field>
|
||||
<field name="model">account.tax.unit</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Tax Unit">
|
||||
<div class="alert alert-info" role="alert"
|
||||
invisible="fpos_synced">
|
||||
Fiscal Positions should apply to all companies of the tax unit. You may want to <button class="oe_link p-0 align-baseline" type="object" name="action_sync_unit_fiscal_positions">synchronize fiscal positions</button>.
|
||||
</div>
|
||||
<sheet>
|
||||
<field name="fpos_synced" invisible="1"/>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="Name"/>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<field name="country_id" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="company_ids" widget="many2many_tags" domain="[('chart_template', '!=', False), ('account_tax_unit_ids', '=', False)]" options="{'no_create': True}"/>
|
||||
<field name="main_company_id" domain="[('id', 'in', company_ids)]" options="{'no_create': True, 'no_open': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="vat"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tax_unit_tree" model="ir.ui.view">
|
||||
<field name="name">account.tax.unit.list</field>
|
||||
<field name="model">account.tax.unit</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="country_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_tax_units" model="ir.actions.act_window">
|
||||
<field name="name">Tax Units</field>
|
||||
<field name="res_model">account.tax.unit</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="view_id" ref="view_tax_unit_tree"/>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_view_tax_units"
|
||||
action="action_view_tax_units"
|
||||
parent="account.account_account_menu"
|
||||
sequence="8"
|
||||
groups="base.group_no_one"/>
|
||||
|
||||
</odoo>
|
||||
21
account_reports/views/report_template.xml
Normal file
21
account_reports/views/report_template.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="internal_layout" inherit_id="web.internal_layout" primary="True">
|
||||
<xpath expr="//div[hasclass('header')]//div[hasclass('row')]" position="attributes">
|
||||
<attribute name="class" add="o_footer_font_size" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<!-- Suport for long company name -->
|
||||
<xpath expr="//div[hasclass('col-3')]" position="attributes">
|
||||
<attribute name="class">col-4</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('col-2') and hasclass('offset-2') and hasclass('text-center')]" position="attributes">
|
||||
<attribute name="class">col-4 text-center</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('col-2') and hasclass('offset-3') and hasclass('text-end')]" position="attributes">
|
||||
<attribute name="class">col-2 offset-2 text-end</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
16
account_reports/views/res_company_views.xml
Normal file
16
account_reports/views/res_company_views.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_company_form" model="ir.ui.view">
|
||||
<field name="name">account_reports.res.company.form</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='parent_id']" position="after">
|
||||
<field name="account_display_representative_field" invisible="1"/>
|
||||
<field name="account_representative_id" invisible="not account_display_representative_field"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
51
account_reports/views/res_config_settings_views.xml
Normal file
51
account_reports/views/res_config_settings_views.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.account.reports</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<setting id="default_taxes" position="after">
|
||||
<setting id="account_return_periodicity" string="Tax Return Periodicity" company_dependent="1" groups="account.group_account_user" help="How often tax returns have to be made"
|
||||
documentation="/applications/finance/accounting/reporting/declarations/tax_returns.html"
|
||||
invisible="vat_disabled">
|
||||
<div class="content-group">
|
||||
<div class="row mt16" id="account_return_periodicity_field">
|
||||
<label string="Periodicity" for="account_return_periodicity" class="col-lg-3 o_light_label"/>
|
||||
<field name="account_return_periodicity"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label string="Deadline" for="account_return_reminder_day" class="col-lg-3 o_light_label"/>
|
||||
<div class="col-lg-auto content-group">
|
||||
<field name="account_return_reminder_day" class="text-center oe_inline" /> days after period
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label string="Journal" for="account_tax_return_journal_id" class="col-lg-3 o_light_label"/>
|
||||
<field name="account_tax_return_journal_id" required="has_chart_of_accounts"/>
|
||||
</div>
|
||||
<div class="mt8">
|
||||
<button name="open_tax_return_type_list" icon="east" type="object" string="Configure your tax returns" class="btn-link"/>
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
</setting>
|
||||
|
||||
<block id="account_reports_settings" position="inside">
|
||||
<setting title="This allows you to choose the position of totals in your financial reports." company_dependent="1" help="When ticked, totals and subtotals appear below the sections of the report">
|
||||
<field name="totals_below_sections"/>
|
||||
</setting>
|
||||
<setting title="Negative Number Format" company_dependent="1" help="How negative amounts are displayed on financial reports.">
|
||||
<field name="account_reports_negative_format"/>
|
||||
</setting>
|
||||
<setting>
|
||||
<button name="%(account.action_check_hash_integrity)d" type="action" string="Download the Data Inalterability Check Report" class="oe_link" id="action_hash_integrity"/>
|
||||
</setting>
|
||||
</block>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
44
account_reports/views/res_partner_views.xml
Normal file
44
account_reports/views/res_partner_views.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="action_account_reports_customer_statements" model="ir.actions.server">
|
||||
<field name="name">Open Customer Statements</field>
|
||||
<field name="group_ids" eval="[Command.link(ref('account.group_account_basic'))]"/>
|
||||
<field name="model_id" ref="model_res_partner"/>
|
||||
<field name="binding_model_id" ref="model_res_partner"/>
|
||||
<field name="binding_view_types">list</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
action = records.open_customer_statement()
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="duplicate_vat_partner_tree_view" model="ir.ui.view">
|
||||
<field name="name">duplicate.vat.res.partner.list</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field eval="18" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Contacts" sample="1" multi_edit="1" expand="1" >
|
||||
<field name="complete_name" string="Name"/>
|
||||
<field name="parent_id"/>
|
||||
<button name="set_commercial_partner_main"
|
||||
type="object"
|
||||
string="Set as main"
|
||||
class="btn-primary"
|
||||
invisible="not context.get('duplicate_partners_vat') or parent_id"
|
||||
/>
|
||||
<field name="email"/>
|
||||
<field name="phone" class="o_force_ltr" optional="show"/>
|
||||
<field name="user_id" optional="show" widget="many2one_avatar_user" domain="[('share', '=', False)]"/>
|
||||
<field name="user_ids"/>
|
||||
<field name="total_invoiced"/>
|
||||
<field name="street" optional="hide"/>
|
||||
<field name="city" optional="show"/>
|
||||
<field name="state_id" optional="hide" readonly="1"/>
|
||||
<field name="country_id" optional="show" readonly="1"/>
|
||||
<field name="category_id" optional="hide" widget="many2many_tags" options="{'color_field': 'color', 'on_tag_click': 'edit_color'}"/>
|
||||
<field name="company_id" groups="base.group_multi_company" readonly="1"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user