[FIX] project_account: fix the analytic accounting setting

Before this fix, the "Track costs & revenues by project" option is missing
from the project module if both project and invoicing are installed.

Now, this setting is shown on the project module until accounting is installed,
as expected. It is then shown in the settings of the account module.

task-2695812

closes odoo/odoo#80045

Related: odoo/enterprise#22370
Related: odoo/upgrade#3051
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Cedric Prieels (cpr)
2021-11-23 13:09:47 +00:00
committed by Laurent Stukkens (LTU)
parent aa5d7358fa
commit 0d2c09a938
3 changed files with 0 additions and 32 deletions
-2
View File
@@ -1,2 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-19
View File
@@ -1,19 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Project Accounting',
'version': '1.0',
'category': 'Services/account',
'summary': 'Project accounting',
'description': 'Bridge created to remove the profitability setting if the account module is installed',
'depends': ['project', 'account'],
'data': [
'views/project_project_templates.xml',
],
'demo': [],
'installable': True,
'auto_install': True,
'license': 'OEEL-1',
}
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.project</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="project.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='analytic']/div" position="replace"/>
</field>
</record>
</odoo>