Files
odoo_source/addons/hr_timesheet/data/hr_timesheet_data.xml
T
jem-odoo 3be7c23900 [FIX] hr_timesheet: analytic account generation
'allow_timesheet' is true by default, but when installing hr_timesheet for already
created project, populating the column does not use write method, and so, no
analytic account is generated for existing project.
It is required to use the same mecanism as in resource (calendar generation),
and to do so, rewrite part of create/write method of project.project.

This commit also add an onchange, to maintaint consistency about having
no analytic account does not allow timesheet on project.
2018-04-11 13:23:41 +02:00

16 lines
531 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- For a perfect onboarding, we want the tour of project to be consumed
only by admin when installing hr_timesheet, to avoid confusing -->
<record id="web_tour_project_consumed_by_admin" model="web_tour.tour">
<field name="name">project_tour</field>
<field name="user_id" ref='base.user_root'/>
</record>
<function id="_init_data_analytic_account"
model="project.project"
name="_init_data_analytic_account"
eval="[]"/>
</odoo>