This question has been flagged
2 Replies
2518 Views

I'm trying to list hours from project's tasks in projects kanban view as it was in odoo8 :

in developer mode I open project module and select "edit kanban view":

after first two lines I add bold code:

<?xml version="1.0"?>

<kanban class="oe_background_grey o_kanban_dashboard o_project_kanban" on_create="project.open_create_project">            <field name="effective_hours" modifiers="{'readonly': true}"/>

    <field name="planned_hours" modifiers="{'readonly': true}"/>

    <field name="use_timesheets"/>

    <field name="hours_quantity" modifiers="{'readonly': true}"/>


when I try to save project.project.kanban odoo say "use_timesheets", "hours_quantity" not exist.


Also I add bold code after project's alias:

<div t-if="record.alias_name.value and record.alias_domain.value">

       <span><i class="fa fa-envelope"/> <t t-esc="record.alias_id.value"/></span>

</div>

<div t-if="record.use_timesheets.raw_value" data-name="open_timesheets" data-type="object">

      <span><i class=" oe_kanban_action oe_kanban_action_a"/> <t name="hours_quantity" t-esc="record.alias_id.value"/></span>

</div>

Now odoo10 say "dict.record.use_timesheets is undefined"

Avatar
Discard
Best Answer

These are the boolean fields on project.project:

use_timesheets is not one of them.


These are the fields with hours in the name on project.project:



The warning is correctly telling you the fields you are trying to add don't exist.  

Hours are recorded on timesheets, not Projects.  It sounds like you want the Forecasting functionality, which is a feature in the Enterprise Edition.

Avatar
Discard
Best Answer

Hi,

Have you a solution for this ?

Avatar
Discard