diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /base_accounting_kit/views | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'base_accounting_kit/views')
20 files changed, 1240 insertions, 0 deletions
diff --git a/base_accounting_kit/views/account_asset_templates.xml b/base_accounting_kit/views/account_asset_templates.xml new file mode 100644 index 0000000..fc4660c --- /dev/null +++ b/base_accounting_kit/views/account_asset_templates.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <template id="assets_backend" name="account assets" inherit_id="web.assets_backend"> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="/base_accounting_kit/static/src/scss/account_asset.scss"/> + <script type="text/javascript" src="/base_accounting_kit/static/src/js/account_asset.js"/> + </xpath> + </template> +</odoo> diff --git a/base_accounting_kit/views/account_asset_views.xml b/base_accounting_kit/views/account_asset_views.xml new file mode 100644 index 0000000..159b98a --- /dev/null +++ b/base_accounting_kit/views/account_asset_views.xml @@ -0,0 +1,324 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <!-- + Asset Category + --> + + <record model="ir.ui.view" id="view_account_asset_category_form"> + <field name="name">account.asset.category.form</field> + <field name="model">account.asset.category</field> + <field name="arch" type="xml"> + <form string="Asset category"> + <sheet> + <group> + <div class="oe_title"> + <label for="name" string="Asset Type" class="oe_edit_only" attrs="{'invisible': [('type','!=','purchase')]}"/> + <label for="name" string="Deferred Revenue Type" class="oe_edit_only" attrs="{'invisible': [('type','==','purchase')]}"/> + <h1> + <field name="name" placeholder="e.g. Computers"/> + </h1> + </div> + <group> + <field name="type" invisible="1"/> + <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> + </group> + <group string="Journal Entries"> + <field name="journal_id"/> + <div> + <label for="account_asset_id" attrs="{'invisible': [('type','!=','purchase')]}"/> + <label for="account_asset_id" string="Deferred Revenue Account" attrs="{'invisible': [('type','!=','sale')]}"/> + </div> + <field name="account_asset_id" nolabel="1" attrs="{'invisible': [('type','=', False)]}" domain="[('company_id', '=', company_id)]"/> + <div> + <label for="account_depreciation_id" attrs="{'invisible': [('type','!=','purchase')]}"/> + <label for="account_depreciation_id" string="Recognition Income Account" attrs="{'invisible': [('type','!=','sale')]}"/> + </div> + <field name="account_depreciation_id" nolabel="1" domain="[('company_id', '=', company_id)]"/> + <div> + <label for="account_depreciation_expense_id" attrs="{'invisible': [('type','!=','purchase')]}"/> + <label for="account_depreciation_expense_id" string="Recognition Account" attrs="{'invisible': [('type','!=','sale')]}"/> + </div> + <field name="account_depreciation_expense_id" nolabel="1" domain="[('company_id', '=', company_id)]"/> + <field name="account_analytic_id" domain="[('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/> + </group> + <group string="Periodicity"> + <field name="method_time" string="Time Method Based On" widget="radio" attrs="{'invisible': [('type','!=','purchase')]}"/> + <field name="method_number" string="Number of Entries" attrs="{'invisible':[('method_time','!=','number'),'&',('type','=', False)], 'required':[('method_time','=','number')]}"/> + <label for="method_period" string="One Entry Every"/> + <div> + <field name="method_period" nolabel="1" attrs="{'invisible': [('type','=', False)]}" class="oe_inline"/> + months + </div> + <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','!=','end')]}"/> + </group> + <group string="Additional Options"> + <field name="open_asset"/> + <field name="group_entries"/> + </group> + <group attrs="{'invisible': [('type','=','sale')]}" string="Depreciation Method"> + <field name="method" widget="radio"/> + <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> + <field name="prorata" attrs="{'invisible': [('method_time','=','end')]}"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="view_account_asset_asset_category_kanban" model="ir.ui.view"> + <field name="name">account.asset.category.kanban</field> + <field name="model">account.asset.category</field> + <field name="arch" type="xml"> + <kanban class="o_kanban_mobile"> + <field name="name"/> + <field name="journal_id"/> + <field name="method"/> + <templates> + <t t-name="kanban-box"> + <div t-attf-class="oe_kanban_card oe_kanban_global_click"> + <div class="row mb4"> + <div class="col-xs-6"> + <strong><span><t t-esc="record.name.value"/></span></strong> + </div> + <div class="col-xs-6 text-right"> + <span class="badge"><strong><t t-esc="record.method.value"/></strong></span> + </div> + </div> + <div> <t t-esc="record.journal_id.value"/></div> + </div> + </t> + </templates> + </kanban> + </field> + </record> + + <record model="ir.ui.view" id="view_account_asset_category_tree"> + <field name="name">account.asset.category.tree</field> + <field name="model">account.asset.category</field> + <field name="arch" type="xml"> + <tree string="Asset category"> + <field name="name"/> + <field name="journal_id"/> + <field name="method"/> + <field name="company_id" groups="base.group_multi_company"/> + </tree> + </field> + </record> + + <record model="ir.ui.view" id="view_account_asset_category_search"> + <field name="name">account.asset.category.search</field> + <field name="model">account.asset.category</field> + <field name="arch" type="xml"> + <search string="Search Asset Category"> + <filter name="type" string="Sales" domain="[('type','=', 'sale')]" help="Deferred Revenues"/> + <filter name="type" string="Purchase" domain="[('type','=', 'purchase')]" help="Assets"/> + <field name="name" string="Category"/> + <field name="journal_id"/> + <group expand="0" string="Group By..."> + <filter name="type" string="Type" domain="[]" context="{'group_by':'type'}"/> + </group> + </search> + </field> + </record> + + <record model="ir.ui.view" id="view_account_asset_asset_form"> + <field name="name">account.asset.asset.form</field> + <field name="model">account.asset.asset</field> + <field name="arch" type="xml"> + <form string="Asset"> + <header> + <button name="validate" states="draft" string="Confirm" type="object" class="oe_highlight"/> + <button type="object" name="compute_depreciation_board" string="Compute Depreciation" states="draft"/> + <button name="set_to_close" states="open" string="Sell or Dispose" type="object" class="oe_highlight"/> + <button name="set_to_draft" string="Set to Draft" type="object" attrs="{'invisible': ['|', ('entry_count', '!=', 0), ('state', '!=', 'open')]}"/> + <button name="%(action_asset_modify)d" states="open" string="Modify Depreciation" type="action"/> + <field name="state" widget="statusbar" statusbar_visible="draft,open"/> + </header> + <sheet> + <div class="oe_button_box" name="button_box"> + <button class="oe_stat_button" name="open_entries" type="object" icon="fa-pencil"> + <field string="Items" name="entry_count" widget="statinfo" /> + </button> + </div> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name" placeholder="e.g. Laptop iBook"/> + </h1> + </div> + <group> + <group> + <field name="category_id" domain="[('type', '=', 'purchase')]" context="{'default_type': 'purchase'}" help="Category of asset"/> + <field name="code"/> + <field name="date" help="Date of asset"/> + <field name="type" invisible="1"/> + </group> + <group> + <field name="currency_id" groups="base.group_multi_currency"/> + <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> + <field name="value" widget="monetary" options="{'currency_field': 'currency_id'}" help="Gross value of asset"/> + <field name="salvage_value" widget="monetary" options="{'currency_field': 'currency_id'}" attrs="{'invisible': [('type','=','sale')]}"/> + <field name="value_residual" widget="monetary" options="{'currency_field': 'currency_id'}"/> + <field name="partner_id" string="Vendor" domain="[('supplier_rank', '>', 0)]"/> + <field name="invoice_id" string="Invoice" attrs="{'readonly': [('state', '!=', 'draft')]}" options="{'no_create': True}"/> + </group> + </group> + <notebook colspan="4"> + <page string="Depreciation Board"> + <field name="depreciation_line_ids" mode="tree" options="{'reload_whole_on_button': true}"> + <tree string="Depreciation Lines" decoration-info="(move_check == False)" create="false"> + <field name="depreciation_date"/> + <field name="depreciated_value" readonly="1"/> + <field name="amount" widget="monetary" string="Depreciation"/> + <field name="remaining_value" readonly="1" widget="monetary" string="Residual"/> + <field name="move_check" widget="deprec_lines_toggler" attrs="{'invisible': [('parent_state', '!=', 'open')]}"/> + <field name="move_posted_check" invisible="1"/> + <field name="parent_state" invisible="1"/> + </tree> + <form string="Depreciation Lines"> + <group> + <group> + <field name="parent_state" invisible="1"/> + <field name="name"/> + <field name="sequence"/> + <field name="move_id"/> + <field name="move_check"/> + <field name="parent_state" invisible="1"/> + </group> + <group> + <field name="amount" widget="monetary"/> + <field name="depreciation_date"/> + <field name="depreciated_value"/> + <field name="remaining_value"/> + </group> + </group> + </form> + </field> + </page> + <page string="Depreciation Information"> + <group> + <field name="method" widget="radio" attrs="{'invisible': [('type','=','sale')]}"/> + <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> + <field name="method_time" string="Time Method Based On" widget="radio" attrs="{'invisible': [('type','!=','purchase')]}"/> + <field name="prorata" attrs="{'invisible': [('method_time','=','end')]}"/> + </group> + <group> + <field name="method_number" attrs="{'invisible':[('method_time','=','end')], 'required':[('method_time','=','number')]}"/> + <field name="method_period"/> + <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','number')]}"/> + </group> + </page> + </notebook> + </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="message_ids" widget="mail_thread"/> + </div> + </form> + </field> + </record> + + <record id="view_account_asset_asset_kanban" model="ir.ui.view"> + <field name="name">account.asset.asset.kanban</field> + <field name="model">account.asset.asset</field> + <field name="arch" type="xml"> + <kanban class="o_kanban_mobile"> + <field name="name"/> + <field name="category_id"/> + <field name="date"/> + <field name="state"/> + <templates> + <t t-name="kanban-box"> + <div t-attf-class="oe_kanban_global_click"> + <div class="row mb4"> + <div class="col-xs-6"> + <strong><span><t t-esc="record.name.value"/></span></strong> + </div> + <div class="col-xs-6 pull-right text-right"> + <strong><t t-esc="record.date.value"/></strong> + </div> + </div> + <div class="row"> + <div class="col-xs-6 text-muted"> + <span><t t-esc="record.category_id.value"/></span> + </div> + <div class="col-xs-6"> + <span class="pull-right text-right"> + <field name="state" widget="label_selection" options="{'classes': {'draft': 'primary', 'open': 'success', 'close': 'default'}}"/> + </span> + </div> + </div> + </div> + </t> + </templates> + </kanban> + </field> + </record> + + <record model="ir.ui.view" id="view_account_asset_asset_purchase_tree"> + <field name="name">account.asset.asset.purchase.tree</field> + <field name="model">account.asset.asset</field> + <field name="arch" type="xml"> + <tree string="Assets" decoration-info="(state == 'draft')" decoration-muted="(state == 'close')"> + <field name="name"/> + <field name="category_id"/> + <field name="date"/> + <field name="partner_id" string="Vendor"/> + <field name="value"/> + <field name="value_residual" widget="monetary"/> + <field name="currency_id" groups="base.group_multi_currency"/> + <field name="company_id" groups="base.group_multi_company"/> + <field name="state"/> + </tree> + </field> + </record> + + <record id="view_account_asset_search" model="ir.ui.view"> + <field name="name">account.asset.asset.search</field> + <field name="model">account.asset.asset</field> + <field name="arch" type="xml"> + <search string="Asset Account"> + <field name="name" string="Asset"/> + <field name="date"/> + <filter name="state" string="Current" domain="[('state','in', ('draft','open'))]" help="Assets in draft and open states"/> + <filter name="state" string="Closed" domain="[('state','=', 'close')]" help="Assets in closed state"/> + <field name="category_id"/> + <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/> + <group expand="0" string="Group By..."> + <filter name="date" string="Month" domain="[]" context="{'group_by':'date'}"/> + <filter name="category_id" string="Category" domain="[]" context="{'group_by':'category_id'}"/> + </group> + </search> + </field> + </record> + + + + <record model="ir.actions.act_window" id="action_account_asset_asset_form"> + <field name="name">Assets</field> + <field name="res_model">account.asset.asset</field> + <field name="view_mode">tree,kanban,form</field> + <field name="view_id" ref="view_account_asset_asset_purchase_tree"/> + <field name="domain">[('category_id.type', '=', 'purchase')]</field> + </record> + + <menuitem parent="account.menu_finance_entries_management" id="menu_action_account_asset_asset_form" action="action_account_asset_asset_form" sequence="101" groups="account.group_account_user"/> + + + <!-- Configuration --> + + <menuitem id="menu_finance_config_assets" name="Assets and Revenues" parent="account.menu_finance_configuration" sequence="25"/> + + <record model="ir.actions.act_window" id="action_account_asset_asset_list_normal_purchase"> + <field name="name">Asset Types</field> + <field name="res_model">account.asset.category</field> + <field name="domain">[('type', '=', 'purchase')]</field> + <field name="view_mode">tree,kanban,form</field> + <field name="context">{'default_type': 'purchase'}</field> + </record> + + <menuitem parent="account.account_management_menu" id="menu_action_account_asset_asset_list_normal_purchase" action="action_account_asset_asset_list_normal_purchase" sequence="6"/> + +</odoo> diff --git a/base_accounting_kit/views/account_configuration.xml b/base_accounting_kit/views/account_configuration.xml new file mode 100644 index 0000000..5d22a4e --- /dev/null +++ b/base_accounting_kit/views/account_configuration.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="account_cash_flow_view" model="ir.ui.view"> + <field name="name">Cash Flow</field> + <field name="model">account.account</field> + <field name="inherit_id" ref="account.view_account_form"/> + <field name="arch" type="xml"> + <data> + <xpath expr="//field[@name='deprecated']" position="after"> + <field name="cash_flow_type" widget="selection"/> + </xpath> + </data> + </field> + </record> +</odoo> + diff --git a/base_accounting_kit/views/account_followup.xml b/base_accounting_kit/views/account_followup.xml new file mode 100644 index 0000000..08558c8 --- /dev/null +++ b/base_accounting_kit/views/account_followup.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="view_account_followup_followup_line_tree" model="ir.ui.view"> + <field name="name">followup.line.tree</field> + <field name="model">followup.line</field> + <field name="arch" type="xml"> + <tree string="Follow-up Steps" > + <field name="name"/> + <field name="delay"/> + </tree> + </field> + </record> + + <record id="view_account_followup_followup_line_form" model="ir.ui.view"> + <field name="name">followup.line.form</field> + <field name="model">followup.line</field> + <field name="arch" type="xml"> + <form string="Follow-up Steps"> + <label for="name" class="oe_edit_only"/> + <h1><field name="name"/></h1> + <div class="oe_inline"> + After <field name="delay" class="oe_inline"/> days overdue, do the following actions: + </div> + </form> + </field> + </record> + + <record id="view_account_followup_followup_form" model="ir.ui.view"> + <field name="name">account.followup.form</field> + <field name="model">account.followup</field> + <field name="arch" type="xml"> + <form string="Follow-up"> + <h1><field name="name"/></h1> + <label for="company_id" groups="base.group_multi_company"/> + <field name="company_id" options="{'no_create': True}" class="oe_inline" groups="base.group_multi_company"/> + <p class="oe_grey"> + To remind customers of paying their invoices, you can + define different actions depending on how severely + overdue the customer is. These actions are bundled + into follow-up levels that are triggered when the due + date of an invoice has passed a certain + number of days. If there are other overdue invoices for the + same customer, the actions of the most + overdue invoice will be executed. + </p> + <field name="followup_line_ids"/> + </form> + </field> + </record> + + <record id="view_account_followup_followup_tree" model="ir.ui.view"> + <field name="name">account.followup.tree</field> + <field name="model">account.followup</field> + <field name="arch" type="xml"> + <tree string="Follow-up"> + <field name="company_id" /> + </tree> + </field> + </record> + + <record id="view_account_followup_filter" model="ir.ui.view"> + <field name="name">account.followup.select</field> + <field name="model">account.followup</field> + <field name="arch" type="xml"> + <search string="Search Follow-up"> + <field name="company_id" groups="base.group_multi_company"/> + </search> + </field> + </record> + + <record id="view_account_followup_followup_kanban" model="ir.ui.view"> + <field name="name">account.followup.kanban</field> + <field name="model">account.followup</field> + <field name="arch" type="xml"> + <kanban> + <field name="name"/> + <templates> + <t t-name="kanban-box"> + <div t-attf-class="oe_kanban_global_click"> + <div> + <strong><i class="fa fa-building" role="img" aria-label="Enterprise"/> <t t-esc="record.name.value"/></strong> + </div> + </div> + </t> + </templates> + </kanban> + </field> + </record> + + <record id="action_account_followup_definition_form" model="ir.actions.act_window"> + <field name="name">Payment Follow-ups</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">account.followup</field> + <field name="search_view_id" ref="view_account_followup_filter"/> + <field name="view_mode">tree,kanban,form</field> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + Define follow-up levels and their related actions + </p><p> + For each step, specify the actions to be taken and delay in days. It is + possible to use print and e-mail templates to send specific messages to + the customer. + </p> + </field> + </record> + + <menuitem action="action_account_followup_definition_form" id="account_followup_menu" + parent="account.account_management_menu" name="Follow-up Levels" + groups="account.group_account_manager" sequence="2"/> + + </data> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/account_group.xml b/base_accounting_kit/views/account_group.xml new file mode 100644 index 0000000..9b4de4c --- /dev/null +++ b/base_accounting_kit/views/account_group.xml @@ -0,0 +1,16 @@ +<odoo> + <data> + + <record id="action_account_group" model="ir.actions.act_window"> + <field name="name">Account Groups</field> + <field name="res_model">account.group</field> + <field name="view_mode">tree,form</field> + </record> + + + <menuitem id="menu_account_group" name="Account Groups" + action="action_account_group" sequence="10" + parent="account.account_account_menu"/> + + </data> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/account_move_views.xml b/base_accounting_kit/views/account_move_views.xml new file mode 100644 index 0000000..04428b7 --- /dev/null +++ b/base_accounting_kit/views/account_move_views.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <!-- Add "Asset Category" to supplier invoices --> + <record model="ir.ui.view" id="view_invoice_asset_category"> + <field name="name">account.invoice.supplier.form</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='invoice_line_ids']/tree/field[@name='account_id']" position="before"> + <field string="Asset Category" attrs="{'column_invisible': [('parent.move_type', '!=', 'in_invoice')]}" + name="asset_category_id" domain="[('type','=','purchase')]" context="{'default_type':'purchase'}"/> + </xpath> + <xpath expr="//field[@name='line_ids']/tree/field[@name='account_id']" position="after"> + <field string="Asset Category" name="asset_category_id" invisible="1"/> + </xpath> + </field> + </record> + +</odoo> diff --git a/base_accounting_kit/views/account_payment_view.xml b/base_accounting_kit/views/account_payment_view.xml new file mode 100644 index 0000000..5c92e6e --- /dev/null +++ b/base_accounting_kit/views/account_payment_view.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="account_check_printing.view_account_payment_form_inherited" model="ir.ui.view">
+ <field name="name">account.payment.form.inherited</field>
+ <field name="model">account.payment</field>
+ <field name="inherit_id" ref="account.view_account_payment_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//button[@name='action_post']" position="before">
+ <button name="print_checks" class="oe_highlight"
+ attrs="{'invisible': ['|', ('payment_method_code', 'not in', ['check_printing','pdc']), ('state', '!=', 'posted')]}"
+ string="Print Check" type="object"/>
+ <button name="unmark_as_sent"
+ attrs="{'invisible': ['|', ('payment_method_code', 'not in', ['check_printing','pdc']), ('state', '!=', 'sent')]}"
+ string="Unmark Sent" type="object"/>
+ </xpath>
+ <xpath expr="//div[@name='amount_div']" position="after">
+ <field name="check_amount_in_words"
+ attrs="{'invisible': [('payment_method_code', 'not in', ['check_printing','pdc'])], 'readonly': [('state', '!=', 'draft')]}"
+ groups="base.group_no_one"/>
+ </xpath>
+ <xpath expr="//field[@name='ref']" position="after">
+ <field name="check_manual_sequencing" invisible="1"/>
+ <field name="check_number"
+ attrs="{'invisible': ['|', ('payment_method_code', 'not in', ['check_printing','pdc']), ('check_number', '=', 0)]}"/>
+ </xpath>
+ <xpath expr="//field[@name='date']" position="after">
+ <field name="effective_date"
+ attrs="{'invisible': [('payment_method_code', '!=', 'pdc')],
+ 'required': [('payment_method_code', '=', 'pdc')],
+ 'readonly': [('state', 'not in', ('draft'))]}"/>
+ <field name="bank_reference" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
+ <field name="cheque_reference" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
+ </xpath>
+ </field>
+ </record>
+
+ <!-- For multiple payments -->
+<!-- <record model="ir.ui.view" id="view_account_reg_payment_form_check_pdc">-->
+<!-- <field name="name">view.account.reg.payment.form.check.pdc</field>-->
+<!-- <field name="model">account.payment.register</field>-->
+<!-- <field name="inherit_id" ref="account.view_account_payment_form_multi"/>-->
+<!-- <field name="arch" type="xml">-->
+<!-- <xpath expr="//field[@name='payment_date']" position="after">-->
+<!-- <field name="effective_date"/>-->
+<!-- <field name="bank_reference"/>-->
+<!-- <field name="cheque_reference"/>-->
+<!-- </xpath>-->
+<!-- </field>-->
+<!-- </record>-->
+</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/accounting_menu.xml b/base_accounting_kit/views/accounting_menu.xml new file mode 100644 index 0000000..e9f242f --- /dev/null +++ b/base_accounting_kit/views/accounting_menu.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <!-- Change invoicing menu to Accounting --> + <record model="ir.ui.menu" id="account.menu_finance"> + <field name="name">Accounting</field> + </record> + <!-- Change settings invoicing menu to Accounting --> + <record id="res_config_settings_view_accounting_kit" model="ir.ui.view"> + <field name="name">res.config.settings.view.form.inherit.kit</field> + <field name="model">res.config.settings</field> + <field name="inherit_id" ref="account.res_config_settings_view_form"/> + <field name="arch" type="xml"> + <div data-key="account" position="attributes"> + <attribute name="data-string">Accounting</attribute> + <attribute name="string">Accounting</attribute> + </div> + </field> + </record> + <menuitem id="account_reports_generic_statements" sequence="1" + name="Generic Statements" parent="account.menu_finance_reports"/> + <menuitem id="account_reports_daily_reports" sequence="2" + name="Daily Reports" parent="account.menu_finance_reports"/> + <menuitem id="account_reports_partner" sequence="3" + name="Partner Reports" parent="account.menu_finance_reports"/> + <menuitem id="account_reports_audit" sequence="4" + name="Audit Reports" parent="account.menu_finance_reports"/> + + <!-- Export Products --> + <record id="export_product_tree" model="ir.ui.view"> + <field name="name">Export Products</field> + <field name="model">export.product</field> + <field name="arch" type="xml"> + <tree> + <field name="product_template_id"/> + <field name="product_id"/> + <field name="product_template_name"/> + <field name="attribute_id"/> + <field name="value_text"/> + </tree> + </field> + </record> + + <record id="export_product_form" model="ir.ui.view"> + <field name="name">Export Products</field> + <field name="model">export.product</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="product_template_id"/> + <field name="product_id"/> + <field name="product_template_name"/> + <field name="attribute_id"/> + <field name="value_text"/> + </group> + </group> + <group> + <notebook> + <page string="Values"> + <group> + <field name="line_ids" nolabel="1"> + <tree editable="bottom"> + <field name="value"/> + </tree> + </field> + </group> + </page> + </notebook> + </group> + </sheet> + </form> + </field> + </record> + + <record id="export_product_action" model="ir.actions.act_window"> + <field name="name">Export Products</field> + <field name="res_model">export.product</field> + <field name="view_mode">tree,form</field> + <field name="help" type="html"> + <p class="oe_view_nocontent_create"> + Click to Add New Data + </p> + </field> + </record> + + <menuitem id="menu_export_product" + name="Export Products" + action="export_product_action" + parent="account.menu_finance_configuration" + sequence="1"/> + + </data> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/assets.xml b/base_accounting_kit/views/assets.xml new file mode 100644 index 0000000..5e2cdc7 --- /dev/null +++ b/base_accounting_kit/views/assets.xml @@ -0,0 +1,18 @@ +<odoo> + <template id="assets_invoice_dashboard" name="Invoice Dashboard" inherit_id="web.assets_backend"> + <xpath expr="." position="inside"> + <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"/> + <link rel="stylesheet" type="text/scss" href="/base_accounting_kit/static/src/scss/style.scss"/> + <link rel="stylesheet" type="text/scss" href="/base_accounting_kit/static/lib/bootstrap-toggle-master/css/bootstrap-toggle.min.css"/> + <script type="text/javascript" src="/base_accounting_kit/static/src/js/account_dashboard.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/src/js/payment_model.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/src/js/payment_render.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/src/js/payment_matching.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.bundle.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.bundle.min.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.min.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.js"/> + <script type="text/javascript" src="/base_accounting_kit/static/lib/bootstrap-toggle-master/js/bootstrap-toggle.min.js"/> + </xpath> + </template> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/credit_limit_view.xml b/base_accounting_kit/views/credit_limit_view.xml new file mode 100644 index 0000000..17d0b34 --- /dev/null +++ b/base_accounting_kit/views/credit_limit_view.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <data> + <record id="view_customer_form" model="ir.ui.view"> + <field name="name">Credit Limit</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="base.view_partner_form"/> + <field name="arch" type="xml"> + <xpath expr="//page[@name='accounting']" position="inside"> + <group string="Credit Limit" attrs="{'invisible':[('enable_credit_limit','=',False)]}"> + <group> + <field name="active_limit"/> + <field name="enable_credit_limit" invisible="1"/> + <field name="warning_stage" attrs="{'invisible':[('active_limit','=',False)]}"/> + <field name="blocking_stage" attrs="{'invisible':[('active_limit','=',False)]}"/> + </group> + </group> + </xpath> + </field> + </record> + + <record id="header_view" model="ir.ui.view"> + <field name="name">Credit Limit</field> + <field name="model">sale.order</field> + <field name="inherit_id" ref="sale.view_order_form"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='payment_term_id']" position="after"> + <field name="has_due" invisible="1"/> + <field name="is_warning" invisible="1"/> + <field name="outstanding_amount" invisible="1"/> + </xpath> + <xpath expr="//header" position="after"> + <div class="alert alert-info" role="alert" style="height: 40px; margin-bottom:0px;" + attrs="{'invisible':[('outstanding_amount','=',0)]}"> + This Customer's due amount is <strong><field name="outstanding_amount"/></strong>. + </div> + </xpath> + <xpath expr="//sheet/div[@name='button_box']" position="after"> + <div role="alert" class="alert alert-danger" style="height: 40px; width: 350px; margin-bottom:0px;" + attrs="{'invisible':[('is_warning','=',False)]}"> + This customer's <strong>warning limit</strong> has been crossed. + </div> + </xpath> + </field> + </record> + + <record id="account_move_form_inherited" model="ir.ui.view"> + <field name="name">Account Move</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='ref']" position="after"> + <field name="has_due" invisible="1"/> + <field name="is_warning" invisible="1"/> + </xpath> + <xpath expr="//header" position="after"> + <div class="alert alert-info" role="alert" style="height: 40px; margin-bottom:0px;" + attrs="{'invisible':['|',('outstanding_amount','=',0),('move_type','not in',('out_invoice','out_refund','out_receipt'))]}"> + This Customer's due amount is <strong><field name="outstanding_amount"/></strong>. + </div> + </xpath> + <xpath expr="//sheet/div[@name='button_box']" position="after"> + <div role="alert" class="alert alert-danger" style="height: 40px; width: 350px; margin-bottom:0px;" + attrs="{'invisible':['|',('is_warning','=',False),('move_type','not in',('out_invoice','out_refund','out_receipt'))]}"> + This customer's <strong>warning limit</strong> has been crossed. + </div> + </xpath> + </field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/dashboard_views.xml b/base_accounting_kit/views/dashboard_views.xml new file mode 100644 index 0000000..d7763a2 --- /dev/null +++ b/base_accounting_kit/views/dashboard_views.xml @@ -0,0 +1,16 @@ +<odoo> + <data> + <record id="action_account_invoice_report_all" model="ir.actions.client"> + <field name="name">Account Report</field> + <field name="tag">invoice_dashboard</field> + </record> + + <menuitem name="Dashboard" id="menu_accounting_dashboard" parent="account.menu_finance" + sequence="0" + groups="account.group_account_manager" + action="action_account_invoice_report_all"/> + <record model="ir.ui.menu" id="account.menu_board_journal_1"> + <field name="name">Overview</field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/followup_report.xml b/base_accounting_kit/views/followup_report.xml new file mode 100644 index 0000000..51d9c6e --- /dev/null +++ b/base_accounting_kit/views/followup_report.xml @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + <record id="customer_statements_form_view" model="ir.ui.view"> + <field name="name">customer.statements.followup</field> + <field name="model">res.partner</field> + <field name="arch" type="xml"> + <form string="report" create="false" edit="false"> + <header> + <field name="followup_status" widget="statusbar"/> + </header> + <div class="alert alert-info" role="alert" + style="font-size: 15px;display: inline-block; margin-top:10px;margin-left: 201px;"> + <span>Wonder how to Send Followup mails and Print Followup Reports ? Download our + <a target="_blank" + href="https://apps.odoo.com/apps/modules/14.0/customer_followup_community"> + <b>Customer Followup</b> + </a> + Module ! + </span> + </div> + <sheet> + <div class="oe_title"> + <h1> + <field name="name" readonly="1"/> + </h1> + </div> + <br/> + + <div class="alert alert-warning o_account_reports_followup-no-action" + attrs="{'invisible': [('invoice_list', '!=', [])]}" + id='no-action' role="alert"> + <p> + <strong> + <field name="name"/> + </strong> + has no due amount. + </p> + </div> + + <div attrs="{'invisible': [('invoice_list', '=', [])]}"> + <group> + <field name="next_reminder_date"/> + </group> + <notebook colspan="4"> + <page string="Invoice Details"> + <field name="invoice_list"/> + </page> + + </notebook> + </div> + <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total"> + <field name="total_due" class="oe_subtotal_footer_separator" widget="monetary" + options="{'currency_field': 'currency_id'}"/> + <div class="oe_subtotal_footer_separator oe_inline o_td_label"> + <label for="total_overdue"/> + </div> + <field name="total_overdue" nolabel="1" class="oe_subtotal_footer_separator" + widget="monetary" options="{'currency_field': 'currency_id'}"/> + </group> + </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="activity_ids" widget="mail_activity"/> + <field name="message_ids" widget="mail_thread"/> + </div> + </form> + </field> + </record> + + <record id="customer_statements_tree_view" model="ir.ui.view"> + <field name="name">customer.statements.tree</field> + <field name="model">res.partner</field> + <field name="arch" type="xml"> + <tree string="Follow-up Reports Tree View" create="false" import="false" delete="false"> + <field name="currency_id" invisible="1"/> + <field name="name"/> + <field name="total_due" widget="monetary" options="{'currency_field': 'currency_id'}" sum="Total"/> + <field name="total_overdue" widget="monetary" options="{'currency_field': 'currency_id'}" + sum="Total"/> + <field name="followup_status"/> + </tree> + </field> + </record> + + + <record id="customer_statements_search_view" model="ir.ui.view"> + <field name="name">customer.statements.search</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="base.view_res_partner_filter"/> + <field name="arch" type="xml"> + <filter name="supplier" position="after"> + <separator/> + <filter string="Overdue Invoices" + name="filter_with_overdue_invoices" + domain="[('followup_status', '=', 'with_overdue_invoices')]"/> + <filter string="In need of action" + name="filter_in_need_of_action" + domain="[('followup_status', '=', 'in_need_of_action')]"/> + <filter string="No action needed" + name="filter_no_action_needed" + domain="[('followup_status', '=', 'no_action_needed')]"/> + <separator/> + </filter> + </field> + </record> + + <record id="action_view_list_customer_statements" model="ir.actions.act_window"> + <field name="name">Follow-up Reports</field> + <field name="res_model">res.partner</field> + <field name="view_mode">tree,form</field> + <field name="view_ids" eval="[(5, 0, 0), + (0, 0, {'view_mode': 'tree', 'view_id': ref('customer_statements_tree_view')}), + (0, 0, {'view_mode': 'form', 'view_id': ref('customer_statements_form_view')})]"/> + <field name="context">{'search_default_filter_in_need_of_action':1}</field> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + No follow-up to send! + </p> + </field> + </record> + + <menuitem id="customer_statements_menu" name="Follow-up Reports" + parent="account.menu_finance_receivables" + action="action_view_list_customer_statements" sequence="20" + groups="account.group_account_user"/> + + </data> +</odoo> diff --git a/base_accounting_kit/views/multiple_invoice_form.xml b/base_accounting_kit/views/multiple_invoice_form.xml new file mode 100644 index 0000000..0a9cc32 --- /dev/null +++ b/base_accounting_kit/views/multiple_invoice_form.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="multiple_invoice_view_form" model="ir.ui.view"> + <field name="name">multiple.invoice.form.inherit.account.journal</field> + <field name="model">account.journal</field> + <field name="inherit_id" ref="account.view_account_journal_form" /> + <field name="arch" type="xml"> + <page name="advanced_settings" position="inside"> + + <group string="Multiple Invoice Copies" attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}"> + <field name="multiple_invoice_type" style="width: 40%"/> + + </group> + <group attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}"> + <div class="mt8"> + <button name="%(base_accounting_kit.action_multiple_invoice_layout_configurator)d" string="Configure Copy Layout" type="action" class="oe_link" icon="fa-arrow-right"/> + </div> + </group> + + <group attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}"> + <div> + <field name="multiple_invoice_ids" widget="one2many" nolabel="1"> + <tree editable="bottom"> + <field name="sequence" widget="handle"/> + <field name="copy_name" style="width: 75"/> + </tree> + </field> + </div> + </group> + </page> + </field> + </record> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/multiple_invoice_layout_view.xml b/base_accounting_kit/views/multiple_invoice_layout_view.xml new file mode 100644 index 0000000..71e2de0 --- /dev/null +++ b/base_accounting_kit/views/multiple_invoice_layout_view.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="view_multiple_invoice_layout" model="ir.ui.view"> + <field name="name">Document Layout</field> + <field name="model">multiple.invoice.layout</field> + <field name="arch" type="xml"> + <form class="o_document_layout"> + <group> + <group class="o_document_layout_company"> + <field name="company_id" invisible="1"/> + <field name="journal_id" invisible="1"/> + <field name="multiple_invoice_type"/> + <field name="text_position" widget="selection" + attrs="{'invisible': [('multiple_invoice_type', '!=', 'text')]}"/> + <field name="body_text_position" widget="radio" + attrs="{'invisible': ['|', ('multiple_invoice_type', '!=', 'text'), + ('text_position', '!=', 'body')]}"/> + <field name="text_align" widget="radio" string="Text Align" + attrs="{'invisible': ['|', ('multiple_invoice_type', '!=', 'text'), + ('text_position', 'not in', ['header', 'footer'])]}"/> + </group> + <div> + <field name="preview" widget="iframe_wrapper" /> + </div> + </group> + <footer> + <button string="Save" class="btn-primary" type="object" name="document_layout_save"/> + <button special="cancel" string="Cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_multiple_invoice_layout_configurator" model="ir.actions.act_window"> + <field name="type">ir.actions.act_window</field> + <field name="name">Configure Copy layout</field> + <field name="view_mode">form</field> + <field name="target">new</field> + <field name="res_model">multiple.invoice.layout</field> + <field name="view_id" ref="base_accounting_kit.view_multiple_invoice_layout"/> + </record> + +</odoo> + diff --git a/base_accounting_kit/views/payment_matching.xml b/base_accounting_kit/views/payment_matching.xml new file mode 100644 index 0000000..fb3d4ce --- /dev/null +++ b/base_accounting_kit/views/payment_matching.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="payment_matching_view" model="ir.ui.view"> + <field name="name">account.journal.dashboard.payment</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[@id='sale_purchase_refund']" position="after"> + <div> + <a type="object" name="action_open_reconcile" groups="account.group_account_user">Payments Matching</a> + </div> + </xpath> + <xpath expr="//div[@id='dashboard_bank_cash_left']/*[1]" position="before"> + <t t-if="dashboard.number_to_reconcile > 0"> + <button type="object" name="action_open_reconcile" class="btn btn-primary" groups="account.group_account_user"> Reconcile <t t-esc="dashboard.number_to_reconcile"/> Items</button> + </t> + </xpath> + </field> + </record> + <record id="matching_account_payment" model="ir.ui.view"> + <field name="name">account.payment.matching</field> + <field name="model">account.payment</field> + <field name="inherit_id" ref="account.view_account_payment_form" /> + <field name="arch" type="xml"> + <xpath expr="//button[@name='button_open_statements']" position="after"> + <button class="oe_stat_button" name="open_payment_matching_screen" + string="Payment Matching" type="object" + groups="account.group_account_user" + attrs="{'invisible': ['|', ('is_reconciled', '=', True), ('state', '!=', 'posted')]}" + icon="fa-dollar"/> + <field name="is_reconciled" invisible="1"/> + </xpath> + </field> + </record> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/product_template_views.xml b/base_accounting_kit/views/product_template_views.xml new file mode 100644 index 0000000..2f0ba6c --- /dev/null +++ b/base_accounting_kit/views/product_template_views.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <!-- Product Template --> + <record id="view_product_template_form_inherit" model="ir.ui.view"> + <field name="name">Product Template (form)</field> + <field name="model">product.template</field> + <field name="inherit_id" ref="product.product_template_form_view"/> + <field name="arch" type="xml"> + <field name="property_account_expense_id" position="after"> + <field name="asset_category_id" + domain="[('type', '=', 'purchase')]" + context="{'default_type': 'purchase'}" + groups="account.group_account_user"/> + </field> + </field> + </record> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/product_views.xml b/base_accounting_kit/views/product_views.xml new file mode 100644 index 0000000..d58c8ae --- /dev/null +++ b/base_accounting_kit/views/product_views.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <!-- Product Template --> + <record id="view_product_template_form_inherit" model="ir.ui.view"> + <field name="name">Product Template (form)</field> + <field name="model">product.template</field> + <field name="inherit_id" ref="account.product_template_form_view"/> + <field name="arch" type="xml"> + <field name="property_account_expense_id" position="after"> + <field name="asset_category_id" + domain="[('type', '=', 'purchase')]" + context="{'default_type': 'purchase'}" + groups="account.group_account_user"/> + </field> + </field> + </record> +</odoo>
\ No newline at end of file diff --git a/base_accounting_kit/views/recurring_payments_view.xml b/base_accounting_kit/views/recurring_payments_view.xml new file mode 100644 index 0000000..2851a0b --- /dev/null +++ b/base_accounting_kit/views/recurring_payments_view.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <data> + + <!--Recurring Templates Form view--> + <record id="account_recurring_payments_form_view" model="ir.ui.view"> + <field name="name">Recurring Template</field> + <field name="model">account.recurring.payments</field> + <field name="arch" type="xml"> + <form string="Recurring Template"> + <header> + <field name="state" widget="statusbar" clickable="1"/> + </header> + <sheet> + <group> + <group> + <field name="name"/> + <field name="pay_time"/> + </group> + <group> + <field name="recurring_period"/> + <field name="recurring_interval" class="o_address_zip"/> + </group> + <group> + <field name="partner_id" attrs="{'invisible':[('pay_time','!=','pay_later')]}"/> + <field name="company_id" invisible="1"/> + </group> + <group> + <field name="date"/> + <field name="next_date"/> + <field name="amount"/> + </group> + </group> + + <notebook> + <page name="accounting_info" string="Accounting Info"> + <group> + <group> + <field name="credit_account"/> + <field name="debit_account"/> + </group> + <group> + <field name="journal_id"/> + <field name="journal_state"/> + </group> + </group> + <group> + <group> + <field name="analytic_account_id"/> + </group> + </group> + </page> + <page name="other_info" string="Other Info"> + <group> + <field name="description" placeholder="Description..." nolabel="1" colspan="4"/> + </group> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <!--Recurring Templates Tree View--> + <record id="account_recurring_payments_tree_view" model="ir.ui.view"> + <field name="name">Recurring Templates</field> + <field name="model">account.recurring.payments</field> + <field name="arch" type="xml"> + <tree string="Recurring Templates"> + <field name="name"/> + <field name="partner_id"/> + <field name="debit_account"/> + <field name="credit_account"/> + <field name="journal_id"/> + <field name="date"/> + <field name="amount"/> + <field name="state"/> + </tree> + </field> + </record> + + + <!--Action for Recurring Templates--> + <record id="action_account_recurring_payments_view" model="ir.actions.act_window"> + <field name="name">Recurring Templates</field> + <field name="res_model">account.recurring.payments</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">tree,form</field> + <field name="view_id" ref="account_recurring_payments_tree_view"/> + <field name="target">current</field> + <field name="help" type="html"> + <p class="oe_view_nocontent_create">Click to create new recurring payment template</p> + </field> + </record> + + <menuitem id="account_recurring_payments_child1" name="Recurring Templates" groups="account.group_account_user" + action="action_account_recurring_payments_view" parent="account.root_payment_menu"/> + </data> +</odoo> diff --git a/base_accounting_kit/views/reports_config_view.xml b/base_accounting_kit/views/reports_config_view.xml new file mode 100644 index 0000000..878e7af --- /dev/null +++ b/base_accounting_kit/views/reports_config_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + <!-- Account Financial Report --> + + <record id="view_account_financial_report_form" model="ir.ui.view"> + <field name="name">account.financial.report.form</field> + <field name="model">account.financial.report</field> + <field name="arch" type="xml"> + <form string="Account Report"> + <group col="4"> + <field name="name"/> + <field name="parent_id"/> + <field name="sequence"/> + <field name="type"/> + <field name="sign"/> + <field name="style_overwrite"/> + </group> + <notebook + attrs="{'invisible': [('type','not in',['accounts','account_type', 'account_report'])]}"> + <page string="Report"> + <group> + <field name="display_detail" + attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/> + <field name="account_report_id" + attrs="{'invisible': [('type', '!=', 'account_report')]}"/> + </group> + <field name="account_ids" + attrs="{'invisible': [('type', '!=', 'accounts')]}"/> + <field name="account_type_ids" + attrs="{'invisible': [('type', '!=', 'account_type')]}"/> + </page> + </notebook> + </form> + </field> + </record> + + <record id="view_account_financial_report_tree" model="ir.ui.view"> + <field name="name">account.financial.report.tree</field> + <field name="model">account.financial.report</field> + <field name="arch" type="xml"> + <tree string="Account Report"> + <field name="name"/> + <field name="parent_id" invisible="1"/> + <field name="type"/> + <field name="account_report_id"/> + </tree> + </field> + </record> + + <record id="view_account_financial_report_search" model="ir.ui.view"> + <field name="name">account.financial.report.search</field> + <field name="model">account.financial.report</field> + <field name="arch" type="xml"> + <search string="Account Report"> + <field name="name" string="Account Report"/> + <field name="type"/> + <field name="account_report_id"/> + <group expand="0" string="Group By"> + <filter string="Parent Report" + name="filter_parent_rep" + domain="" + context="{'group_by':'parent_id'}"/> + <filter string="Report Type" + name="filter_rep_type" + domain="[]" + context="{'group_by':'type'}"/> + </group> + </search> + </field> + </record> + + <record id="action_account_financial_report_tree" + model="ir.actions.act_window"> + <field name="name">Financial Reports</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">account.financial.report</field> + <field name="view_mode">tree,form</field> + <field name="search_view_id" + ref="view_account_financial_report_search"/> + <field name="view_id" ref="view_account_financial_report_tree"/> + </record> + + <menuitem id="menu_account_financial_reports_tree" + name="Account Reports" parent="account.account_account_menu" + action="action_account_financial_report_tree" + /> + </data> +</odoo> diff --git a/base_accounting_kit/views/res_config_view.xml b/base_accounting_kit/views/res_config_view.xml new file mode 100644 index 0000000..62954d9 --- /dev/null +++ b/base_accounting_kit/views/res_config_view.xml @@ -0,0 +1,29 @@ +<odoo> + <data> + <record id="es_config_settings_view_form_base_accounting_kit" model="ir.ui.view"> + <field name="name">res.config.view.inherited.base.accounting.kit</field> + <field name="model">res.config.settings</field> + <field name="priority" eval="30"/> + <field name="inherit_id" ref="account.res_config_settings_view_form"/> + <field name="arch" type="xml"> + <xpath expr="//div[@id='invoicing_settings']" position="inside"> + <div class="col-12 col-lg-6 o_setting_box"> + <div class="o_setting_left_pane"> + <field name="customer_credit_limit" on_change="1"/> + </div> + <div class="o_setting_right_pane" id="snailmail_settings"> + <label for="customer_credit_limit"/> + <div class="text-muted"> + Enable credit limit for customers + </div> + </div> + </div> + </xpath> + + <!-- Remove the enterprise budget option --> + + <xpath expr="//div[@id='account_budget']" position="replace"/> + </field> + </record> + </data> +</odoo>
\ No newline at end of file |
