Skip to content

Commit

Permalink
Merge PR #3116 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by HaraldPanten
  • Loading branch information
OCA-git-bot committed May 8, 2024
2 parents aab9549 + 3a35c7c commit b191c31
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions sale_discount_display_amount/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Contributors
* Chafique Delli <chafique.delli@akretion.com>
* Ruchir Shukla <ruchir@bizzappdev.com>
* Manuel Regidor <manuel.regidor@sygel.es>
* Ángel García de la Chica Herrera <angel.garcia@sygel.es>

* `Pesol <https://www.pesol.es>`__:

Expand Down
5 changes: 4 additions & 1 deletion sale_discount_display_amount/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"depends": ["sale_management"],
"data": ["views/sale_view.xml"],
"data": [
"views/sale_view.xml",
"report/sale_report_template.xml",
],
"pre_init_hook": "pre_init_hook",
"post_init_hook": "post_init_hook",
}
1 change: 1 addition & 0 deletions sale_discount_display_amount/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Chafique Delli <chafique.delli@akretion.com>
* Ruchir Shukla <ruchir@bizzappdev.com>
* Manuel Regidor <manuel.regidor@sygel.es>
* Ángel García de la Chica Herrera <angel.garcia@sygel.es>

* `Pesol <https://www.pesol.es>`__:

Expand Down
16 changes: 16 additions & 0 deletions sale_discount_display_amount/report/sale_report_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="sale_discount_display_amount_document"
inherit_id="sale.report_saleorder_document"
>
<xpath expr="//t[@t-call='account.document_tax_totals']" position="after">
<tr t-if="doc.discount_total" groups="product.group_discount_per_so_line">
<td name="td_discount_total_label"><span>Total Discount</span></td>
<td name="td_discount_total" class="text-end">
<span t-field="doc.discount_total" />
</td>
</tr>
</xpath>
</template>
</odoo>
2 changes: 1 addition & 1 deletion sale_discount_display_amount/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -428,6 +427,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Chafique Delli &lt;<a class="reference external" href="mailto:chafique.delli&#64;akretion.com">chafique.delli&#64;akretion.com</a>&gt;</li>
<li>Ruchir Shukla &lt;<a class="reference external" href="mailto:ruchir&#64;bizzappdev.com">ruchir&#64;bizzappdev.com</a>&gt;</li>
<li>Manuel Regidor &lt;<a class="reference external" href="mailto:manuel.regidor&#64;sygel.es">manuel.regidor&#64;sygel.es</a>&gt;</li>
<li>Ángel García de la Chica Herrera &lt;<a class="reference external" href="mailto:angel.garcia&#64;sygel.es">angel.garcia&#64;sygel.es</a>&gt;</li>
<li><a class="reference external" href="https://www.pesol.es">Pesol</a>:<ul>
<li>Jonathan Oscategui Taza &lt;<a class="reference external" href="mailto:info&#64;pesol.es">info&#64;pesol.es</a>&gt;</li>
</ul>
Expand Down

0 comments on commit b191c31

Please sign in to comment.