Skip to content

Commit

Permalink
Merge PR OCA#1784 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Aug 28, 2024
2 parents d826b85 + 1a299b0 commit b5f3287
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions account_invoice_discount_display_amount/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ This module allows to show the total discount amount
applied to an invoice, both in the backend and the
invoice PDF repot.

Also it shows the discount amount in the invoice line.

**Table of contents**

.. contents::
Expand All @@ -52,6 +54,7 @@ To use this module, you need to:
#. Apply a discount on an invoice line.
#. The values 'Discount Total' and 'Total Without Discount'
will be automatically updated.
#. The discount amount will be displayed on each invoice line.

Bug Tracker
===========
Expand All @@ -78,6 +81,8 @@ Contributors
* Alexei Rivera <[email protected]>
* [APSL-Nagarro](https://apsl.tech):
* Santi Amorós <[email protected]>
* Moduon <https://www.moduon.team/>
* Eduardo López

Maintainers
~~~~~~~~~~~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
* Alexei Rivera <[email protected]>
* [APSL-Nagarro](https://apsl.tech):
* Santi Amorós <[email protected]>
* Moduon <https://www.moduon.team/>
* Eduardo López
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This module allows to show the total discount amount
applied to an invoice, both in the backend and the
invoice PDF repot.

Also it shows the discount amount in the invoice line.
1 change: 1 addition & 0 deletions account_invoice_discount_display_amount/readme/USAGE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ To use this module, you need to:
#. Apply a discount on an invoice line.
#. The values 'Discount Total' and 'Total Without Discount'
will be automatically updated.
#. The discount amount will be displayed on each invoice line.
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 @@ -373,6 +372,7 @@ <h1 class="title">Account Invoice Discount Display Amount</h1>
<p>This module allows to show the total discount amount
applied to an invoice, both in the backend and the
invoice PDF repot.</p>
<p>Also it shows the discount amount in the invoice line.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down Expand Up @@ -401,6 +401,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<li>Apply a discount on an invoice line.</li>
<li>The values ‘Discount Total’ and ‘Total Without Discount’
will be automatically updated.</li>
<li>The discount amount will be displayed on each invoice line.</li>
</ol>
</div>
<div class="section" id="bug-tracker">
Expand All @@ -426,6 +427,8 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Alexei Rivera &lt;<a class="reference external" href="mailto:arivera&#64;archeti.com">arivera&#64;archeti.com</a>&gt;</li>
<li>[APSL-Nagarro](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):
* Santi Amorós &lt;<a class="reference external" href="mailto:samoros&#64;apsl.net">samoros&#64;apsl.net</a>&gt;</li>
<li>Moduon &lt;<a class="reference external" href="https://www.moduon.team/">https://www.moduon.team/</a>&gt;
* Eduardo López</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
<field name="price_total_no_discount" />
<field name="discount_total" />
</xpath>

<xpath
expr="//field[@name='invoice_line_ids']/tree/field[@name='discount']"
position="after"
>
<field name="discount_total" optional="show" />
</xpath>
</data>
</field>
</record>
Expand Down

0 comments on commit b5f3287

Please sign in to comment.