mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-22 19:52:00 +02:00
update: 19.0 compatibility for odoomates accounting modules
- All manifest versions updated to 19.0.1.0.0
- Renamed all <tree> view tags to <list> (19.0 requirement)
- Renamed tree,form to list,form in view_mode fields
- Removed account.chart.template views (AbstractModel in 19.0)
- Fixed xpath /tree/ to /list/ in account_journal.xml for payment methods
- Modules: om_account_accountant, accounting_pdf_reports,
om_account_budget, om_recurring_payments, om_account_daily_reports
🤖 assisted by claude
This commit is contained in:
parent
5f0082b0ee
commit
788ea7113e
18 changed files with 52 additions and 132 deletions
|
|
@ -2,10 +2,10 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Odoo 16 Budget Management',
|
||||
'name': 'Odoo 19 Budget Management',
|
||||
'author': 'Odoo Mates, Odoo SA',
|
||||
'category': 'Accounting',
|
||||
'version': '16.0.1.0.0',
|
||||
'version': '19.0.1.0.0',
|
||||
'description': """Use budgets to compare actual with expected revenues and costs""",
|
||||
'summary': 'Odoo 16 Budget Management',
|
||||
'sequence': 10,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<page string="Budget Items">
|
||||
<field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1"
|
||||
mode="tree">
|
||||
<tree string="Budget Items" editable="top">
|
||||
<list string="Budget Items" editable="top">
|
||||
<field name="crossovered_budget_id"/>
|
||||
<field name="general_budget_id"/>
|
||||
<field name="date_from"/>
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
<field name="practical_amount" sum="Practical Amount" widget="monetary"/>
|
||||
<field name="theoritical_amount" sum="Theoritical Amount" widget="monetary"/>
|
||||
<field name="percentage"/>
|
||||
</tree>
|
||||
</list>
|
||||
<form string="Budget Items">
|
||||
<field name="crossovered_budget_id"/>
|
||||
<field name="general_budget_id"/>
|
||||
|
|
|
|||
|
|
@ -16,17 +16,17 @@
|
|||
<field name="name">account.budget.post.tree</field>
|
||||
<field name="model">account.budget.post</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Budgetary Position">
|
||||
<list string="Budgetary Position">
|
||||
<field name="name"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="open_budget_post_form" model="ir.actions.act_window">
|
||||
<field name="name">Budgetary Positions</field>
|
||||
<field name="res_model">account.budget.post</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_mode">list,kanban,form</field>
|
||||
<field name="view_id" ref="view_budget_post_tree"/>
|
||||
<field name="search_view_id" ref="view_budget_post_search"/>
|
||||
</record>
|
||||
|
|
@ -48,10 +48,10 @@
|
|||
<notebook>
|
||||
<page string="Accounts">
|
||||
<field name="account_ids">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
<field name="crossovered_budget_line"
|
||||
context="{'default_date_from': date_from,'default_date_to': date_to}" colspan="4"
|
||||
nolabel="1" attrs="{'readonly':[('state','!=','draft')]}">
|
||||
<tree string="Budget Lines" decoration-success="is_above_budget and planned_amount > 0" decoration-danger="is_above_budget and planned_amount < 0" editable="bottom">
|
||||
<list string="Budget Lines" decoration-success="is_above_budget and planned_amount > 0" decoration-danger="is_above_budget and planned_amount < 0" editable="bottom">
|
||||
<field name="general_budget_id"/>
|
||||
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
|
||||
<field name="date_from"/>
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
<button type="object" name="action_open_budget_entries" string="Entries..."
|
||||
icon="fa-arrow-circle-o-right"/>
|
||||
<field name="is_above_budget" invisible="1"/>
|
||||
</tree>
|
||||
</list>
|
||||
<form string="Budget Lines">
|
||||
<group>
|
||||
<group>
|
||||
|
|
@ -156,14 +156,14 @@
|
|||
<field name="name">crossovered.budget.view.tree</field>
|
||||
<field name="model">crossovered.budget</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-info="state == 'draft'" decoration-muted="state in ('done','cancel')" string="Budget">
|
||||
<list decoration-info="state == 'draft'" decoration-muted="state in ('done','cancel')" string="Budget">
|
||||
<field name="name" colspan="1"/>
|
||||
<field name="date_from"/>
|
||||
<field name="date_to"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
<field name="user_id"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
<record id="act_crossovered_budget_view" model="ir.actions.act_window">
|
||||
<field name="name">Budgets</field>
|
||||
<field name="res_model">crossovered.budget</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_mode">list,kanban,form</field>
|
||||
<field name="view_id" ref="crossovered_budget_view_tree"/>
|
||||
<field name="search_view_id" ref="view_crossovered_budget_search"/>
|
||||
<field name="help" type="html">
|
||||
|
|
@ -274,7 +274,7 @@
|
|||
<field name="name">crossovered.budget.line.tree</field>
|
||||
<field name="model">crossovered.budget.lines</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Budget Lines" create="0">
|
||||
<list string="Budget Lines" create="0">
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="crossovered_budget_id" invisible="1"/>
|
||||
<field name="general_budget_id" />
|
||||
|
|
@ -286,7 +286,7 @@
|
|||
<field name="practical_amount"/>
|
||||
<field name="theoritical_amount"/>
|
||||
<field name="percentage" widget="percentage"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -358,7 +358,7 @@
|
|||
<record id="act_crossovered_budget_lines_view" model="ir.actions.act_window">
|
||||
<field name="name">Budgets Analysis</field>
|
||||
<field name="res_model">crossovered.budget.lines</field>
|
||||
<field name="view_mode">tree,form,pivot,graph</field>
|
||||
<field name="view_mode">list,form,pivot,graph</field>
|
||||
<field name="view_id" eval="False"/>
|
||||
<field name="context">{'search_default_group_crossevered_budgdet_id': True,
|
||||
'search_default_filter_not_cancelled':True}</field>
|
||||
|
|
@ -373,7 +373,7 @@
|
|||
<record id="act_account_analytic_account_cb_lines" model="ir.actions.act_window">
|
||||
<field name="name">Budget Items</field>
|
||||
<field name="res_model">crossovered.budget.lines</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_mode">list,kanban,form</field>
|
||||
<field name="context">{'search_default_analytic_account_id': [active_id],
|
||||
'default_analytic_account_id': active_id}</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue