[IMP] website_sale_slides: use total amount in course sales reporting

Before, there was a mismatch between the course's sales smart button
and the reporting it leads to. The amount shown is the total, taxed,
amount. Once in the reporting, the default measure is the subtotal,
untaxed.

This commit harmonizes both as well as course revenue reporting by
replacing the current default measure (price_subtotal) by the total
amount. This measure price_total is used in both graph and pivot views.

Task-2718756

closes odoo/odoo#83184

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Noe Antoine
2022-02-22 15:19:27 +00:00
parent 6a67eb8ffa
commit fe758ac69a
@@ -6,7 +6,7 @@
<field name="arch" type="xml">
<graph string="eLearning Sales Analysis" type="line" sample="1">
<field name="date" interval="day"/>
<field name="price_subtotal" type="measure"/>
<field name="price_total" type="measure"/>
</graph>
</field>
</record>
@@ -17,7 +17,7 @@
<field name="type">ir.actions.act_window</field>
<field name="view_mode">graph,pivot</field>
<field name="domain">[("product_id.channel_ids", "!=", False)]</field>
<field name="context">{'group_by': ['date', 'product_id']}</field>
<field name="context">{'group_by': ['date', 'product_id'], 'pivot_measures': ['price_total']}</field>
<field name="view_id" ref="sale_report_view_graph_slides"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">