Odoo 9 报告任务错误
Odoo 9 report Task error
我想从项目 > 任务创建报告。
当尝试从 table account_analytic_line
加载数据时
得到这个错误
"'project.task' 对象在计算时没有属性 'timesheets_ids'"
'doc.timesheets_ids'
<tbody>
<t t-foreach="doc.timesheets_ids" t-as="l">
<tr>
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<span t-field="l.name"/>
</td>
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<span t-field="l.name"/>
</td>
</tr>
</t>
</tbody>
<template id="report_task">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="project.report_task_document"/>
</t>
</t>
</template>
有什么解决办法吗?
它是 timesheet_ids 而不是 timesheets_ids。只是一个拼写错误。
我想从项目 > 任务创建报告。
当尝试从 table account_analytic_line
加载数据时得到这个错误
"'project.task' 对象在计算时没有属性 'timesheets_ids'" 'doc.timesheets_ids'
<tbody>
<t t-foreach="doc.timesheets_ids" t-as="l">
<tr>
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<span t-field="l.name"/>
</td>
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<span t-field="l.name"/>
</td>
</tr>
</t>
</tbody>
<template id="report_task">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="project.report_task_document"/>
</t>
</t>
</template>
有什么解决办法吗?
它是 timesheet_ids 而不是 timesheets_ids。只是一个拼写错误。