19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:07 +01:00
parent ba20ce7443
commit 768b70e05e
2357 changed files with 1057103 additions and 712486 deletions

View file

@ -10,7 +10,7 @@
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" name="action_open_related_taxes"
type="object" icon="fa-bars"
attrs="{'invisible': [('related_taxes_amount', '=', 0)]}">
invisible="related_taxes_amount == 0">
<div class="o_stat_info">
<span class="o_stat_value">
<field name="related_taxes_amount"/>
@ -32,17 +32,8 @@
</div>
</button>
</div>
<field name="company_id" invisible="1"/>
<div>
<h1 style="font-size: 1.9rem;">
<div class="row">
<div class="col col-md-auto">
<label for="code" string="Code"/>
<div>
<field name="code" placeholder="e.g. 101000" class="oe_inline"/>
</div>
</div>
</div>
<div class="row">
<div class="col col-md-8">
<label for="name" string="Account Name"/>
@ -53,7 +44,16 @@
</div>
</div>
</div>
<field name="company_id" invisible="1"/>
<div class="row">
<div class="col col-md-auto">
<label for="code" string="Code"/>
<div>
<field name="placeholder_code" invisible="1"/>
<field name="code" placeholder="e.g. 101000" class="oe_inline"
options="{'placeholder_field': 'placeholder_code'}"/>
</div>
</div>
</div>
</h1>
</div>
<notebook>
@ -61,26 +61,33 @@
<group>
<group>
<field name="account_type" widget="account_type_selection"/>
<field name="tax_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" attrs="{'invisible': [('internal_group', '=', 'off_balance')]}" options="{'no_quick_create': True}"/>
<field name="tax_ids" widget="many2many_tax_tags" invisible="account_type == 'off_balance'" options="{'no_quick_create': True}"/>
<field name="tag_ids" widget="many2many_tags" domain="[('applicability', '=', 'accounts')]" context="{'default_applicability': 'accounts'}" options="{'no_create_edit': True}"/>
<field name="allowed_journal_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" options="{'no_create_edit': True}"/>
</group>
<group>
<field name="internal_group" invisible="1" readonly="1"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="deprecated"/>
<field name="group_id"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency" string="Currency" placeholder="Any currency"/>
<field name="active" widget="boolean_toggle"/>
<field name="group_id" groups="base.group_no_one"/>
<field name="company_ids" widget="many2many_tags" options="{'no_create': True}" groups="base.group_multi_company"/>
</group>
</group>
</page>
<page name="Description">
<field name="description"/>
</page>
<page name="mapping" string="Mapping" groups="base.group_multi_company" invisible="not display_mapping_tab">
<field name="code_mapping_ids" nolabel="1">
<list editable="bottom">
<field name="company_id" force_save="1"/>
<field name="code"/>
</list>
</field>
</page>
</notebook>
</sheet>
<!-- Chatter -->
<div class="oe_chatter">
<field name="message_follower_ids" groups="base.group_user"/>
<field name="message_ids"/>
</div>
<chatter/>
</form>
</field>
</record>
@ -89,22 +96,21 @@
<field name="name">account.account.list</field>
<field name="model">account.account</field>
<field name="arch" type="xml">
<tree editable="top" create="1" delete="1" multi_edit="1" string="Chart of accounts">
<field name="company_id" invisible="1"/>
<field name="code"/>
<list create="1" delete="1" multi_edit="1" string="Chart of accounts">
<field name="placeholder_code" column_invisible="1"/>
<field name="code" string="Code" widget="char_with_placeholder_field" options="{'placeholder_field': 'placeholder_code'}"/>
<field name="name"/>
<field name="account_type" widget="account_type_selection"/>
<field name="group_id" optional="hide"/>
<field name="internal_group" invisible="1"/>
<field name="reconcile" widget="boolean_toggle" attrs="{'invisible': ['|', ('account_type', 'in', ('asset_cash', 'liability_credit_card')), ('internal_group', '=', 'off_balance')]}"/>
<field name="non_trade" widget="boolean_toggle" attrs="{'invisible': [('account_type', 'not in', ('liability_payable', 'asset_receivable'))]}" optional="hide"/>
<field name="tax_ids" optional="hide" widget="many2many_tags"/>
<field name="internal_group" column_invisible="True"/>
<field name="reconcile" widget="boolean_toggle" invisible="account_type in ('asset_cash', 'liability_credit_card', 'off_balance')"/>
<field name="active" optional="hide" widget="boolean_toggle"/>
<field name="non_trade" widget="boolean_toggle" invisible="account_type not in ('liability_payable', 'asset_receivable')" optional="hide"/>
<field name="tax_ids" optional="hide" widget="many2many_tax_tags"/>
<field name="tag_ids" domain="[('applicability', '=', 'accounts')]" optional="hide" widget="many2many_tags"/>
<field name="allowed_journal_ids" optional="hide" widget="many2many_tags"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<button name="action_read_account" type="object" string="Setup" class="float-end btn-secondary"/>
</tree>
<field name="company_ids" widget="many2many_tags" readonly="True" groups="base.group_multi_company"/>
</list>
</field>
</record>
@ -113,24 +119,20 @@
<field name="model">account.account</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<field name="name"/>
<field name="code"/>
<field name="account_type"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="row">
<div class="col-6">
<strong><field name="name"/></strong>
</div>
<div class="col-6 text-end">
<span class="badge rounded-pill"><t t-esc="record.code.value"/></span>
</div>
<t t-name="card">
<div class="row">
<div class="col-8">
<field class="fw-bolder" name="name"/>
</div>
<div>
<strong>Type: </strong><t t-esc="record.account_type.value"/>
<div class="col-4 text-end">
<field class="badge rounded-pill" name="code"/>
</div>
</div>
<div>
<strong>Type: </strong>
<field name="account_type"/>
</div>
</t>
</templates>
</kanban>
@ -142,7 +144,7 @@
<field name="model">account.account</field>
<field name="arch" type="xml">
<search string="Accounts">
<field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account"/>
<field name="name" filter_domain="['|', '|', ('name', 'ilike', self), ('code', '=ilike', self + '%'), ('description', 'ilike', self)]" string="Account"/>
<filter string="Receivable" name="receivableacc" domain="[('account_type','=','asset_receivable')]"/>
<filter string="Payable" name="payableacc" domain="[('account_type','=','liability_payable')]"/>
<filter string="Equity" name="equityacc" domain="[('internal_group','=', 'equity')]"/>
@ -150,16 +152,18 @@
<filter string="Liability" name="liabilityacc" domain="[('internal_group','=', 'liability')]"/>
<filter string="Income" name="incomeacc" domain="[('internal_group','=', 'income')]"/>
<filter string="Expenses" name="expensesacc" domain="[('internal_group','=', 'expense')]"/>
<filter string="Fixed Assets" name="type_asset_fixed" domain="[('account_type', '=', 'asset_fixed')]" invisible="True"/>
<filter string="Frequent Expenses" name="type_expense" domain="[('account_type', '=', 'expense')]" invisible="True"/>
<separator/>
<filter string="Account with Entries" name="used" domain="[('used', '=', True)]"/>
<filter string="Active Account" name="activeacc" domain="[('deprecated', '=', False)]"/>
<filter string="Inactive Accounts" name="inactiveacc" domain="[('active', '=', False)]"/>
<separator/>
<field name="account_type"/>
<group expand="0" string="Group By">
<group>
<filter string="Account Type" name="accounttype" domain="" context="{'group_by':'account_type'}"/>
</group>
<searchpanel class="account_root">
<field name="root_id" icon="fa-filter" limit="0"/>
<searchpanel class="account_root w-auto">
<field name="root_id" icon="fa-filter" limit="false"/>
</searchpanel>
</search>
</field>
@ -168,7 +172,7 @@
<record id="action_account_form" model="ir.actions.act_window">
<field name="name">Chart of Accounts</field>
<field name="res_model">account.account</field>
<field name="view_mode">tree,kanban,form</field>
<field name="view_mode">list,kanban,form</field>
<field name="search_view_id" ref="view_account_search"/>
<field name="view_id" ref="view_account_list"/>
<field name="help" type="html">
@ -183,19 +187,19 @@
to disclose a certain amount of information.
</p>
</field>
<field name="context">{'search_default_activeacc': True}</field>
</record>
<record id="action_duplicate_account" model="ir.actions.server">
<field name="name">Duplicate</field>
<record model="ir.actions.server" id="action_unmerge_accounts">
<field name="name">Unmerge account</field>
<field name="model_id" ref="model_account_account"/>
<field name="binding_model_id" ref="account.model_account_account"/>
<field name="binding_view_types">list</field>
<field name="group_ids" eval="[(4, ref('account.group_account_manager'))]"/>
<field name="binding_model_id" ref="account.model_account_account" />
<field name="binding_view_types">form,list,kanban</field>
<field name="state">code</field>
<field name="code">
action = model.action_duplicate_accounts()
if records:
action = records.action_unmerge()
</field>
</record>
</data>
</odoo>