mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-25 09:01:59 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- Rename groups to fit with EE naming 'Billing' -> 'Accounting' -->
|
||||
<record id="account.menu_finance" model="ir.ui.menu">
|
||||
<field name="name">Accounting</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_accounting_bank_and_cash"
|
||||
name="Bank and Cash"
|
||||
parent="account.menu_finance_entries"
|
||||
sequence="15"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_account_coa_settings"
|
||||
sequence="200"
|
||||
name="Templates"
|
||||
parent="account.menu_finance_configuration"
|
||||
groups="base.group_no_one"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<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="inside">
|
||||
<h2>Anglo-Saxon Accounting</h2>
|
||||
<div
|
||||
class="row mt16 o_settings_container"
|
||||
name="anglo_saxon_setting_container"
|
||||
>
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="anglo_saxon">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="anglo_saxon_accounting" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label
|
||||
string="Anglo-Saxon Accounting"
|
||||
for="anglo_saxon_accounting"
|
||||
/>
|
||||
<div class="text-muted">
|
||||
Record the cost of a good as an expense when this good is
|
||||
invoiced to a final customer (instead of recording the cost as soon
|
||||
as the product is received in stock).
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="accounting_reports" position="after">
|
||||
<div
|
||||
class="row mt16 o_settings_container"
|
||||
id="fiscalyear_last_day_month"
|
||||
>
|
||||
<div class="o_setting_left_pane" />
|
||||
<div class="o_setting_right_pane">
|
||||
<label
|
||||
string="Fiscal Year Last Day"
|
||||
for="fiscalyear_last_day"
|
||||
/>
|
||||
<div>
|
||||
<field
|
||||
name="fiscalyear_last_day"
|
||||
class="oe_inline"
|
||||
/>
|
||||
<field
|
||||
name="fiscalyear_last_month"
|
||||
class="oe_inline"
|
||||
/>
|
||||
</div>
|
||||
<div class="text-muted">
|
||||
Type the day and select the month of the last day of the company's fiscal year.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2021 - Today: Odoo SA
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_account_template_form" model="ir.ui.view">
|
||||
<field name="model">account.account.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group col="4">
|
||||
<field name="name" />
|
||||
<field name="code" />
|
||||
<newline />
|
||||
<field
|
||||
name="account_type"
|
||||
widget="account_hierarchy_selection"
|
||||
/>
|
||||
<field
|
||||
name="currency_id"
|
||||
options="{'no_create': True}"
|
||||
groups="base.group_multi_currency"
|
||||
/>
|
||||
<field
|
||||
name="tag_ids"
|
||||
domain="[('applicability', '=', 'accounts')]"
|
||||
widget="many2many_tags"
|
||||
context="{'default_applicability': 'accounts'}"
|
||||
/>
|
||||
<field name="reconcile" />
|
||||
<field name="nocreate" />
|
||||
<field name="chart_template_id" />
|
||||
</group>
|
||||
<separator string="Default Taxes" />
|
||||
<field name="tax_ids" />
|
||||
<separator string="Notes" />
|
||||
<field name="note" placeholder="Internal notes..." />
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_account_template_tree" model="ir.ui.view">
|
||||
<field name="model">account.account.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-muted="(nocreate)">
|
||||
<field name="code" />
|
||||
<field name="name" />
|
||||
<field name="account_type" />
|
||||
<field name="nocreate" invisible="1" />
|
||||
<field name="chart_template_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_account_template_search" model="ir.ui.view">
|
||||
<field name="name">account.account.template.search</field>
|
||||
<field name="model">account.account.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field
|
||||
name="name"
|
||||
filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]"
|
||||
string="Account Template"
|
||||
/>
|
||||
<field name="account_type" />
|
||||
<group expand="0" string="Group By">
|
||||
<filter
|
||||
string="Account Type"
|
||||
name="accounttype"
|
||||
domain="[]"
|
||||
context="{'group_by':'account_type'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_account_template_action" model="ir.actions.act_window">
|
||||
<field name="name">Account Templates</field>
|
||||
<field name="res_model">account.account.template</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_account_account_template"
|
||||
action="account_account_template_action"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="20"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
<menuitem
|
||||
id="menu_accounting_statement_bank"
|
||||
action="account.action_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="10"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_accounting_statement_cash"
|
||||
action="account.action_view_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="20"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2021 - Today: Odoo SA
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_chart_template_form" model="ir.ui.view">
|
||||
<field name="model">account.chart.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group col="4">
|
||||
<field name="name" />
|
||||
<field name="parent_id" />
|
||||
<field name="bank_account_code_prefix" />
|
||||
<field name="cash_account_code_prefix" />
|
||||
<field name="transfer_account_code_prefix" />
|
||||
<field name="code_digits" />
|
||||
<field name="visible" />
|
||||
<field name="use_storno_accounting" />
|
||||
</group>
|
||||
<separator string="Default Taxes" colspan="4" />
|
||||
<field name="tax_template_ids" colspan="4" nolabel="1" />
|
||||
<separator string="Properties" colspan="4" />
|
||||
<group col="4">
|
||||
<field name="property_account_receivable_id" />
|
||||
<field name="property_account_payable_id" />
|
||||
<field name="property_account_expense_categ_id" />
|
||||
<field name="property_account_income_categ_id" />
|
||||
<field name="property_account_expense_id" />
|
||||
<field name="property_account_income_id" />
|
||||
<field name="account_journal_early_pay_discount_loss_account_id" />
|
||||
<field name="account_journal_early_pay_discount_gain_account_id" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_chart_template_tree" model="ir.ui.view">
|
||||
<field name="model">account.chart.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="property_account_receivable_id" invisible="1" />
|
||||
<field name="property_account_payable_id" invisible="1" />
|
||||
<field name="property_account_expense_categ_id" invisible="1" />
|
||||
<field name="property_account_income_categ_id" invisible="1" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_chart_template_seacrh" model="ir.ui.view">
|
||||
<field name="model">account.chart.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name" string="Account Template" />
|
||||
<field name="bank_account_code_prefix" />
|
||||
<field name="cash_account_code_prefix" />
|
||||
<field name="transfer_account_code_prefix" />
|
||||
<group expand="0" string="Group By">
|
||||
<filter
|
||||
string="Receivable Account"
|
||||
name="receivalbeacc"
|
||||
domain="[]"
|
||||
context="{'group_by':'property_account_receivable_id'}"
|
||||
/>
|
||||
<filter
|
||||
string="Payable Account"
|
||||
name="payableacc"
|
||||
domain="[]"
|
||||
context="{'group_by':'property_account_payable_id'}"
|
||||
/>
|
||||
<filter
|
||||
string="Income Account"
|
||||
name="incomeacc"
|
||||
domain="[]"
|
||||
context="{'group_by':'property_account_income_categ_id'}"
|
||||
/>
|
||||
<filter
|
||||
string="Expense Account"
|
||||
name="expenseacc"
|
||||
domain="[]"
|
||||
context="{'group_by':'property_account_expense_categ_id'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="action_account_chart_template_form" model="ir.actions.act_window">
|
||||
<field name="name">Chart of Accounts Templates</field>
|
||||
<field name="res_model">account.chart.template</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_account_chart_template"
|
||||
action="action_account_chart_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="10"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_fiscal_position_template_tree" model="ir.ui.view">
|
||||
<field name="model">account.fiscal.position.template</field>
|
||||
<field name="inherit_id" ref="account.view_account_position_template_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="sequence" widget="handle" />
|
||||
</field>
|
||||
<field name="name" position="after">
|
||||
<field name="chart_template_id" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="view_account_fiscal_position_template_form" model="ir.ui.view">
|
||||
<field name="model">account.fiscal.position.template</field>
|
||||
<field name="inherit_id" ref="account.view_account_position_template_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="account_ids" position="after">
|
||||
<group string="Extra configuration" col="4">
|
||||
<field name="auto_apply" />
|
||||
<field name="vat_required" />
|
||||
<field name="country_id" />
|
||||
<field name="country_group_id" />
|
||||
<field name="state_ids" widget="many2many_tags" />
|
||||
<field name="zip_from" />
|
||||
<field name="zip_to" />
|
||||
</group>
|
||||
<group string="Note">
|
||||
<field name="note" nolabel="1" colspan="4" />
|
||||
</group>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_fiscal_position_template_action" model="ir.actions.act_window">
|
||||
<field name="name">Fiscal Position Templates</field>
|
||||
<field name="res_model">account.fiscal.position.template</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_account_fiscal_position_template"
|
||||
action="account_fiscal_position_template_action"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="40"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="view_account_group_form" model="ir.ui.view">
|
||||
<field name="model">account.group</field>
|
||||
<field name="inherit_id" ref="account.view_account_group_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group" position="after">
|
||||
<group id="links" string="Accounts">
|
||||
<field
|
||||
name="account_ids"
|
||||
widget="many2many_tags"
|
||||
nolabel="1"
|
||||
options="{'no_create_edit': True}"
|
||||
colspan="2"
|
||||
/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_group_action" 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="account_group_menu"
|
||||
action="account_group_action"
|
||||
sequence="50"
|
||||
parent="account.account_account_menu"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2023 - Creu Blanca
|
||||
@author: Enric Tobella
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="account.action_account_moves_all_tree" model="ir.actions.act_window">
|
||||
<field name="binding_model_id" ref="base.model_res_partner" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="account_tag_view_form" model="ir.ui.view">
|
||||
<field name="model">account.account.tag</field>
|
||||
<field name="inherit_id" ref="account.account_tag_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group" position="after">
|
||||
<group>
|
||||
<group id="links">
|
||||
<label
|
||||
for="account_ids"
|
||||
attrs="{'invisible':[('applicability','!=', 'accounts')]}"
|
||||
/>
|
||||
<field
|
||||
name="account_ids"
|
||||
widget="many2many_tags"
|
||||
nolabel="1"
|
||||
attrs="{'invisible':[('applicability','!=', 'accounts')]}"
|
||||
options="{'no_create_edit': True}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_account_tag_action" model="ir.actions.act_window">
|
||||
<field name="name">Account Tags</field>
|
||||
<field name="res_model">account.account.tag</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="account_tag_menu"
|
||||
action="account_account_tag_action"
|
||||
sequence="40"
|
||||
parent="account.account_account_menu"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
<menuitem
|
||||
id="menu_account_tax_template"
|
||||
action="account.action_account_tax_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="30"
|
||||
/>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue