mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 14:32:04 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -17,7 +17,7 @@
|
|||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1>
|
||||
|
|
@ -33,15 +33,13 @@
|
|||
</group>
|
||||
<group>
|
||||
<field name="plan_id" options="{'no_quick_create': True}"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company" placeholder="Visible to all"/>
|
||||
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook></notebook>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids"/>
|
||||
<field name="message_ids"/>
|
||||
</div>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -51,19 +49,19 @@
|
|||
<field name="model">account.analytic.account</field>
|
||||
<field eval="8" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Analytic Accounts" multi_edit="1">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<list string="Analytic Accounts" multi_edit="1">
|
||||
<field name="company_id" column_invisible="True"/>
|
||||
<field name="currency_id" column_invisible="True"/>
|
||||
<field name="name" string="Name"/>
|
||||
<field name="code"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="plan_id"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="active" column_invisible="True"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="debit" sum="Debit" invisible="1"/>
|
||||
<field name="credit" sum="Credit" invisible="1"/>
|
||||
<field name="debit" sum="Debit" column_invisible="True"/>
|
||||
<field name="credit" sum="Credit" column_invisible="True"/>
|
||||
<field name="balance" sum="Balance"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -74,9 +72,9 @@
|
|||
<field eval="18" name="priority"/>
|
||||
<field name="inherit_id" ref="analytic.view_account_analytic_account_list"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree position="attributes">
|
||||
<list position="attributes">
|
||||
<attribute name="multi_edit">0</attribute>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -85,23 +83,15 @@
|
|||
<field name="model">account.analytic.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile">
|
||||
<field name="display_name"/>
|
||||
<field name="balance"/>
|
||||
<field name="currency_id"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
|
||||
<div t-attf-class="#{!selection_mode ? 'text-center' : ''}">
|
||||
<strong><span><field name="display_name"/></span></strong>
|
||||
</div>
|
||||
<hr class="mt8 mb8"/>
|
||||
<div class="row">
|
||||
<div t-attf-class="col-12 #{!selection_mode ? 'text-center' : ''}">
|
||||
<span>
|
||||
Balance: <field name="balance" widget="monetary"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<t t-name="card">
|
||||
<div t-attf-class="#{!selection_mode ? 'text-center' : ''}">
|
||||
<field class="fw-bold fs-5" name="display_name"/>
|
||||
</div>
|
||||
<hr class="mt-2 mb-2"/>
|
||||
<div t-attf-class="#{!selection_mode ? 'text-center' : ''}">
|
||||
Balance: <field name="balance" widget="monetary"/>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
|
|
@ -118,7 +108,7 @@
|
|||
<field name="partner_id"/>
|
||||
<separator/>
|
||||
<filter string="Archived" domain="[('active', '=', False)]" name="inactive"/>
|
||||
<group expand="0" string="Group By...">
|
||||
<group>
|
||||
<filter string="Associated Partner" name="associatedpartner" domain="[]" context="{'group_by': 'partner_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
|
|
@ -128,7 +118,7 @@
|
|||
<record id="action_analytic_account_form" model="ir.actions.act_window">
|
||||
<field name="name">Chart of Analytic Accounts</field>
|
||||
<field name="res_model">account.analytic.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_analytic_account_search"/>
|
||||
<field name="context">{'search_default_active':1}</field>
|
||||
<field name="view_id" ref="view_account_analytic_account_list"/>
|
||||
|
|
@ -141,11 +131,11 @@
|
|||
|
||||
<record id="action_account_analytic_account_form" model="ir.actions.act_window">
|
||||
<field name="name">Analytic Accounts</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.analytic.account</field>
|
||||
<field name="path">analytic-accounts</field>
|
||||
<field name="search_view_id" ref="view_account_analytic_account_search"/>
|
||||
<field name="context">{'search_default_active':1}</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_mode">list,kanban,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Add a new analytic account
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="account_analytic_distribution_model_tree_view" model="ir.ui.view">
|
||||
<field name="name">account.analytic.distribution.model.tree</field>
|
||||
<field name="name">account.analytic.distribution.model.list</field>
|
||||
<field name="model">account.analytic.distribution.model</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Analytic Distribution Model" editable="top" multi_edit="1">
|
||||
<list string="Analytic Distribution Model" open_form_view="True" editable="top" multi_edit="1" default_order="sequence, id desc">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="partner_id" optional="show"/>
|
||||
<field name="partner_category_id" optional="hide"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="analytic_distribution" widget="analytic_distribution" optional="show"/>
|
||||
<button name="action_read_distribution_model" type="object" string="View" class="float-end btn-secondary"/>
|
||||
</tree>
|
||||
<field name="company_id" column_invisible="True"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show" placeholder="Visible to all"/>
|
||||
<field name="analytic_distribution" widget="analytic_distribution" optional="show"
|
||||
options="{'force_applicability': 'optional', 'disable_save': true}"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -21,18 +23,20 @@
|
|||
<form string="Analytic Distribution Model">
|
||||
<sheet>
|
||||
<group>
|
||||
<group string="Simultaneous conditions to meet" colspan="2">
|
||||
<group string="Conditions to meet" colspan="2">
|
||||
<group>
|
||||
<field name="partner_id"/>
|
||||
<field name="partner_category_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="company_id" groups="base.group_multi_company" placeholder="Visible to all"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Analytic distribution to apply" colspan="2">
|
||||
<group string="Distribution to apply" colspan="2">
|
||||
<field name="analytic_distribution" widget="analytic_distribution"
|
||||
options="{'force_applicability': 'optional', 'disable_save': true}"/>
|
||||
options="{'force_applicability': 'optional', 'disable_save': true}"
|
||||
class="w-50"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
|
|
@ -43,6 +47,7 @@
|
|||
<record id="action_analytic_distribution_model" model="ir.actions.act_window">
|
||||
<field name="name">Analytic Distribution Models</field>
|
||||
<field name="res_model">account.analytic.distribution.model</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="path">analytic-distribution-models</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -1,23 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_account_analytic_line_tree" model="ir.ui.view">
|
||||
<field name="name">account.analytic.line.tree</field>
|
||||
<field name="name">account.analytic.line.list</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Analytic Items" multi_edit="1">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="product_uom_category_id" invisible="1"/>
|
||||
<list string="Analytic Items" multi_edit="1" js_class="analytic_list">
|
||||
<field name="company_id" column_invisible="True"/>
|
||||
<field name="date" optional="show"/>
|
||||
<field name="name"/>
|
||||
<field name="account_id"/>
|
||||
<field name="plan_id"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="analytic_distribution"
|
||||
widget="analytic_distribution"
|
||||
optional="hide"
|
||||
options="{'multi_edit': true}"
|
||||
/>
|
||||
<field name="currency_id" column_invisible="True"/>
|
||||
<field name="unit_amount" sum="Quantity" optional="hide"/>
|
||||
<field name="product_uom_id" optional="hide"/>
|
||||
<field name="partner_id" optional="hide"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="amount" sum="Total" optional="show"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -28,12 +31,10 @@
|
|||
<search string="Search Analytic Lines">
|
||||
<field name="name"/>
|
||||
<field name="date"/>
|
||||
<field name="account_id"/>
|
||||
<field name="plan_id"/>
|
||||
<filter string="Date" name="date" date="date"/>
|
||||
<filter string="Analytic Account" name="group_by_analytic_account" context="{'group_by': 'account_id'}"/>
|
||||
<filter string="Analytic Plan" name="group_by_analytic_plan" context="{'group_by': 'plan_id'}"/>
|
||||
<group string="Group By..." expand="0" name="groupby">
|
||||
<separator/>
|
||||
<filter name="month" string="Date" date="date"/>
|
||||
<group name="groupby">
|
||||
<separator/>
|
||||
<filter string="Date" name="group_date" context="{'group_by': 'date'}"/>
|
||||
</group>
|
||||
</search>
|
||||
|
|
@ -41,11 +42,11 @@
|
|||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="account_analytic_line_action">
|
||||
<field name="context">{'search_default_group_date': 1, 'default_account_id': active_id}</field>
|
||||
<field name="domain">[('account_id','=', active_id)]</field>
|
||||
<field name="context">{'search_default_group_date': 1}</field>
|
||||
<field name="domain">[('auto_account_id','=', active_id)]</field>
|
||||
<field name="name">Gross Margin</field>
|
||||
<field name="res_model">account.analytic.line</field>
|
||||
<field name="view_mode">tree,form,graph,pivot</field>
|
||||
<field name="view_mode">list,form,graph,pivot</field>
|
||||
<field name="view_id" ref="view_account_analytic_line_tree"/>
|
||||
<field name="search_view_id" ref="view_account_analytic_line_filter"/>
|
||||
<field name="help" type="html">
|
||||
|
|
@ -85,7 +86,6 @@
|
|||
<group name="amount" string="Amount">
|
||||
<field name="amount"/>
|
||||
<field name="unit_amount"/>
|
||||
<field name="product_uom_category_id" invisible="1"/>
|
||||
<field name="product_uom_id" class="oe_inline"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
|
|
@ -99,9 +99,9 @@
|
|||
<field name="name">account.analytic.line.graph</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Analytic Items" sample="1">
|
||||
<graph string="Analytic Items" sample="1" js_class="analytic_graph">
|
||||
<field name="account_id"/>
|
||||
<field name="unit_amount" type="measure"/>
|
||||
<field name="unit_amount" type="measure" widget="float_time"/>
|
||||
<field name="amount" type="measure"/>
|
||||
</graph>
|
||||
</field>
|
||||
|
|
@ -111,9 +111,9 @@
|
|||
<field name="name">account.analytic.line.pivot</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Analytic Items" sample="1">
|
||||
<field name="account_id" type="row"/>
|
||||
<field name="unit_amount" type="measure"/>
|
||||
<pivot string="Analytic Items" sample="1" js_class="analytic_pivot">
|
||||
<field name="account_id"/>
|
||||
<field name="date" interval="month" type="col"/>
|
||||
<field name="amount" type="measure"/>
|
||||
</pivot>
|
||||
</field>
|
||||
|
|
@ -123,33 +123,18 @@
|
|||
<field name="name">account.analytic.line.kanban</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile">
|
||||
<field name="date"/>
|
||||
<field name="name"/>
|
||||
<kanban class="o_kanban_mobile" js_class="analytic_kanban">
|
||||
<field name="account_id"/>
|
||||
<field name="currency_id"/>
|
||||
<field name="amount"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<strong><span><t t-esc="record.name.value"/></span></strong>
|
||||
</div>
|
||||
<div class="col-6 text-end">
|
||||
<strong><t t-esc="record.date.value"/></strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6 text-muted">
|
||||
<span><t t-esc="record.account_id.value"/></span>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<span class="float-end text-end">
|
||||
<field name="amount" widget="monetary"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<t t-name="card">
|
||||
<div class="d-flex justify-content-between" >
|
||||
<field class="fw-bold fs-5" name="name"/>
|
||||
<field class="text-end fw-bold fs-5" name="date"/>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<field class="text-muted" name="account_id"/>
|
||||
<field class="justify-content-end" name="amount" widget="monetary"/>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
|
|
@ -160,7 +145,8 @@
|
|||
<record model="ir.actions.act_window" id="account_analytic_line_action_entries">
|
||||
<field name="name">Analytic Items</field>
|
||||
<field name="res_model">account.analytic.line</field>
|
||||
<field name="view_mode">tree,kanban,form,graph,pivot</field>
|
||||
<field name="path">analytic-items</field>
|
||||
<field name="view_mode">list,kanban,form,graph,pivot</field>
|
||||
<field name="view_id" ref="view_account_analytic_line_tree"/>
|
||||
<field name="search_view_id" ref="analytic.view_account_analytic_line_filter"/>
|
||||
<field name="help" type="html">
|
||||
|
|
@ -181,4 +167,4 @@
|
|||
</p>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
<field name="model">account.analytic.plan</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Analytic Plans">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="action_view_children_plans" type="object" class="oe_stat_button" icon="fa-bars">
|
||||
|
|
@ -27,22 +26,22 @@
|
|||
<group>
|
||||
<field name="parent_id"/>
|
||||
<field name="default_applicability"
|
||||
attrs="{'invisible': [('parent_id', '!=', False)]}"/>
|
||||
invisible="parent_id" required="True"/>
|
||||
<field name="color" widget="color_picker"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<notebook>
|
||||
<page string="Applicability" name="applicability"
|
||||
attrs="{'invisible': [('parent_id', '!=', False)]}">
|
||||
invisible="parent_id">
|
||||
<field name="applicability_ids">
|
||||
<tree editable="bottom">
|
||||
<list editable="bottom">
|
||||
<field name="business_domain"/>
|
||||
<field name="company_id" groups="base.group_multi_company" placeholder="Visible to all"/>
|
||||
<field name="applicability"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
|
|
@ -52,24 +51,25 @@
|
|||
</record>
|
||||
|
||||
<record id="account_analytic_plan_tree_view" model="ir.ui.view">
|
||||
<field name="name">account.analytic.plan.tree</field>
|
||||
<field name="name">account.analytic.plan.list</field>
|
||||
<field name="model">account.analytic.plan</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Analytic Plans" multi_edit="1">
|
||||
<list string="Analytic Plans" multi_edit="1">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="default_applicability"/>
|
||||
<field name="default_applicability" required="True"/>
|
||||
<field name="color" widget="color_picker"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_analytic_plan_action" model="ir.actions.act_window">
|
||||
<field name="name">Analytic Plans</field>
|
||||
<field name="res_model">account.analytic.plan</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="path">analytic-plans</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="view_ids" eval="[(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'tree'}),
|
||||
(0, 0, {'view_mode': 'list'}),
|
||||
(0, 0, {'view_mode': 'form', 'view_id': ref('account_analytic_plan_form_view')})]"/>
|
||||
<field name="domain">[('parent_id', '=', False)]</field>
|
||||
<field name="help" type="html">
|
||||
|
|
@ -78,4 +78,4 @@
|
|||
</p>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue