You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Report action -->
<record id="action_incentive_report" model="ir.actions.report">
<field name="name">Incentive Report</field>
<field name="model">calculate.incentive</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">sales_incentive_calculation.report_incentive</field>
<field name="report_file">sales_incentive_calculation.report_incentive</field>
<field name="binding_model_id" ref="model_calculate_incentive"/>
<field name="binding_type">report</field>
</record>
<!-- Template for the report action-->
<template id="report_incentive">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h1 align="center">INCENTIVE REPORT</h1>
<table align="center" style="font-size:20px;" class="table table-condensed">
<tr>
<td><strong>Salesperson</strong> </td>
<td><strong>Target</strong> </td>
<td><strong>Achievement</strong> </td>
<td><strong>Incentive</strong> </td>
</tr>
<t t-foreach="docs" t-as="o">
<tr>
<td><t t-esc="o.salesperson_id.name"/></td>
<td><t t-esc="o.goal"/></td>
<td><t t-esc="o.achieved"/></td>
<td><t t-esc="o.incentive"/></td>
</tr>
</t>
</table>
</div>
</t>
</t>
</template>
</odoo>