[IMP] project: set project as analytic plan in the project config setting
In this commit we change following points: - changed string of analytic_plan_id field in res setting. - project set as default in the analytic plan of the project setting task-3251642 closes odoo/odoo#120522 Related: odoo/enterprise#40702 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="default_analytic_plan_id" model="ir.config_parameter">
|
||||
<field name="key" eval="'default_analytic_plan_id_' + str(ref('base.main_company'))"/>
|
||||
<field name="value" ref="analytic.analytic_plan_projects"/>
|
||||
</record>
|
||||
|
||||
<!-- Users -->
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field name="groups_id" eval="[
|
||||
|
||||
@@ -18,7 +18,7 @@ class ResConfigSettings(models.TransientModel):
|
||||
# Analytic Accounting
|
||||
analytic_plan_id = fields.Many2one(
|
||||
comodel_name='account.analytic.plan',
|
||||
string="Default Plan",
|
||||
string="Analytic Plan",
|
||||
readonly=False,
|
||||
related='company_id.analytic_plan_id',
|
||||
)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
<setting id="default_plan_setting" groups="analytic.group_analytic_accounting" help="Assign each new project to this plan" company_dependent="1" title="Track the profitability of your projects. Any project, its tasks and timesheets are linked to an analytic account and any analytic account belongs to a plan.">
|
||||
<setting id="default_plan_setting" groups="analytic.group_analytic_accounting" help="Track the profitability of your project with analytic accounting. Select the analytic plan for new projects:" company_dependent="1" title="Track the profitability of your projects. Any project, its tasks and timesheets are linked to an analytic account and any analytic account belongs to a plan.">
|
||||
<field name="analytic_plan_id"/>
|
||||
</setting>
|
||||
</block>
|
||||
|
||||
Reference in New Issue
Block a user