<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/l10n_latam_invoice_document, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] l10n_latam_invoice_document: header/footer in mutli-print</title>
<updated>2021-04-22T14:51:49+00:00</updated>
<author>
<name>Nicolas Lempereur</name>
<email>nle@odoo.com</email>
</author>
<published>2021-04-22T11:45:09+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ae3209b56087bdf0b11927ab59f8b33541713876'/>
<id>ae3209b56087bdf0b11927ab59f8b33541713876</id>
<content type='text'>
When l10n_latam_invoice_document is installed and the current company
does not have a custom header (in stable, only Chile and Argentina with
their localization installed use custom header), printing multiple
invoice at once, one out of two had no header or footer.

This is because `&lt;div class="header"/&gt;` and `&lt;div class="footer"/&gt;`
should be unique per record being printed, and when a custom header was
not used they were duplicated with the duplicate empty.

As an example, if we had 3 documents:

- record 1 : good header
- record 1 : empty header
- record 1 : body
- record 1 : good footer
- record 1 : empty footer

- record 2 : good header
- record 2 : empty header
- record 2 : body
- record 2 : good footer
- record 2 : empty footer

- record 3 : good header
- record 3 : empty header
- record 3 : body
- record 3 : good footer
- record 3 : empty footer

When we give them to wkhtmltopdf, it would be mismatched:

- headers:
  - record 1 : good header
  - record 1 : empty header
  - record 2 : good header

- bodies:
  - record 1 : body
  - record 2 : body
  - record 3 : body

- footers:
  - record 1 : good footer
  - record 1 : empty footer
  - record 2 : good footer

so record 2 will have empty header/footer, and record 3 will get those
of record 2.

opw-2507137

closes odoo/odoo#69703

X-original-commit: 90bdb5c7b7aa6a9b98e9acb1774d449ae65a3918
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When l10n_latam_invoice_document is installed and the current company
does not have a custom header (in stable, only Chile and Argentina with
their localization installed use custom header), printing multiple
invoice at once, one out of two had no header or footer.

This is because `&lt;div class="header"/&gt;` and `&lt;div class="footer"/&gt;`
should be unique per record being printed, and when a custom header was
not used they were duplicated with the duplicate empty.

As an example, if we had 3 documents:

- record 1 : good header
- record 1 : empty header
- record 1 : body
- record 1 : good footer
- record 1 : empty footer

- record 2 : good header
- record 2 : empty header
- record 2 : body
- record 2 : good footer
- record 2 : empty footer

- record 3 : good header
- record 3 : empty header
- record 3 : body
- record 3 : good footer
- record 3 : empty footer

When we give them to wkhtmltopdf, it would be mismatched:

- headers:
  - record 1 : good header
  - record 1 : empty header
  - record 2 : good header

- bodies:
  - record 1 : body
  - record 2 : body
  - record 3 : body

- footers:
  - record 1 : good footer
  - record 1 : empty footer
  - record 2 : good footer

so record 2 will have empty header/footer, and record 3 will get those
of record 2.

opw-2507137

closes odoo/odoo#69703

X-original-commit: 90bdb5c7b7aa6a9b98e9acb1774d449ae65a3918
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: monetary fields</title>
<updated>2021-04-15T17:15:36+00:00</updated>
<author>
<name>Bruno Zanotti (ADHOC)</name>
<email>bz@adhoc.com.ar</email>
</author>
<published>2021-03-15T12:50:19+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f05dd3596ac22c5a8fb8c3feff7bf978a7698c73'/>
<id>f05dd3596ac22c5a8fb8c3feff7bf978a7698c73</id>
<content type='text'>
The fields l10n_latam_price_unit and l10n_latam_price_net should be
float instead of monetary in order to show rightly the decimal
accuracy on invoice's reports

closes odoo/odoo#69339

X-original-commit: 59afbc2e34c80516fa412de92f0d3bba2378661e
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fields l10n_latam_price_unit and l10n_latam_price_net should be
float instead of monetary in order to show rightly the decimal
accuracy on invoice's reports

closes odoo/odoo#69339

X-original-commit: 59afbc2e34c80516fa412de92f0d3bba2378661e
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: IVA on b2c invoices</title>
<updated>2021-04-03T09:25:43+00:00</updated>
<author>
<name>Bruno Zanotti (ADHOC)</name>
<email>bz@adhoc.com.ar</email>
</author>
<published>2021-03-31T15:39:55+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=84ffb9cd34c9abc76ba807549567b383750bda7c'/>
<id>84ffb9cd34c9abc76ba807549567b383750bda7c</id>
<content type='text'>
For b2c invoices we mustn't show the IVA information on the reports

closes odoo/odoo#68725

X-original-commit: 4e31502f317fabc2004bd6db32883ce357563c57
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For b2c invoices we mustn't show the IVA information on the reports

closes odoo/odoo#68725

X-original-commit: 4e31502f317fabc2004bd6db32883ce357563c57
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: only trigger constraint when partner_id is set</title>
<updated>2021-03-26T11:48:22+00:00</updated>
<author>
<name>Josse Colpaert</name>
<email>jco@odoo.com</email>
</author>
<published>2021-03-22T13:00:54+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9cbf63bd644d6d6d629266fe31edc91b44f22aa6'/>
<id>9cbf63bd644d6d6d629266fe31edc91b44f22aa6</id>
<content type='text'>
Before, when importing twice the same invoice, or even with the more
theoretical possibility of having the same number for different partners,
the constraint would be triggered, giving unnecessary problems when
importing vendor bills with an uncertain partner_id.

If we check the logic followed in the regular accounting on the ref field,
it only triggers when a partner is set, so we can follow the same logic here.

closes odoo/odoo#68389

X-original-commit: f43ae2375a6550e0d03c69fb8389ec13b40307ab
Signed-off-by: William André (wan) &lt;wan@odoo.com&gt;
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before, when importing twice the same invoice, or even with the more
theoretical possibility of having the same number for different partners,
the constraint would be triggered, giving unnecessary problems when
importing vendor bills with an uncertain partner_id.

If we check the logic followed in the regular accounting on the ref field,
it only triggers when a partner is set, so we can follow the same logic here.

closes odoo/odoo#68389

X-original-commit: f43ae2375a6550e0d03c69fb8389ec13b40307ab
Signed-off-by: William André (wan) &lt;wan@odoo.com&gt;
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: update of the method _compute_invoice_taxes_by_group</title>
<updated>2021-03-20T22:50:34+00:00</updated>
<author>
<name>Bruno Zanotti (ADHOC)</name>
<email>bz@adhoc.com.ar</email>
</author>
<published>2021-02-09T15:08:02+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=2d148980182d2e45988deb61f227993ec0bde10c'/>
<id>2d148980182d2e45988deb61f227993ec0bde10c</id>
<content type='text'>
Odoo has made some modifications to the method
_compute_invoice_taxes_by_group from de Account module,
so we need to update the inherited method in the argentinian localization

Improves:
 - Don't depend on price_subtotal to compute amount_by_group
 - Show taxes when they are zero on invoices print

closes odoo/odoo#68176

X-original-commit: 011631a38564bcbdd8625428b9f897aefefce270
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Odoo has made some modifications to the method
_compute_invoice_taxes_by_group from de Account module,
so we need to update the inherited method in the argentinian localization

Improves:
 - Don't depend on price_subtotal to compute amount_by_group
 - Show taxes when they are zero on invoices print

closes odoo/odoo#68176

X-original-commit: 011631a38564bcbdd8625428b9f897aefefce270
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: For the latam invoice reporte show the base property in the correct value and currency</title>
<updated>2021-03-20T22:50:34+00:00</updated>
<author>
<name>Nicolás Mac Rouillon</name>
<email>nmr@adhoc.com.ar</email>
</author>
<published>2020-12-10T13:51:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9a406e30942f587da8c94161c5f5515dece2402c'/>
<id>9a406e30942f587da8c94161c5f5515dece2402c</id>
<content type='text'>
The problem that occurs before of this commit, is due the base of the taxes is in the currency of the company not in the invoice currency. For that the value that shows in this cases for the base is not correponding for the symbol of the currency.
After this changes we show the correct value an symbol for the base converting the value when is necessary.

X-original-commit: 4fd4f82ecd1b97f608168baaa780844f68e8a9d7</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The problem that occurs before of this commit, is due the base of the taxes is in the currency of the company not in the invoice currency. For that the value that shows in this cases for the base is not correponding for the symbol of the currency.
After this changes we show the correct value an symbol for the base converting the value when is necessary.

X-original-commit: 4fd4f82ecd1b97f608168baaa780844f68e8a9d7</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] l10n_latam_invoice_document: Remove l10n_ar constraint on base latam module</title>
<updated>2021-03-17T13:11:07+00:00</updated>
<author>
<name>fw-bot</name>
<email>otis@odoo.com</email>
</author>
<published>2021-02-26T18:07:31+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=109b4b1aaac4d76ef273fb88d27e2b648331a266'/>
<id>109b4b1aaac4d76ef273fb88d27e2b648331a266</id>
<content type='text'>
Documents with `l10n_latam_document_type_id.code == '99'` just exists on **l10n_ar**
https://github.com/odoo/odoo/blob/13.0/addons/l10n_ar/data/l10n_latam.document.type.csv#L74 making this error arise
on other localizations which don't use it.

This was mistakenly introduced on 7748e0e

This method is inherited inside l10n_ar and we add this additional validation.

Original PR: https://github.com/odoo/odoo/pull/64831

closes odoo/odoo#66957

Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Documents with `l10n_latam_document_type_id.code == '99'` just exists on **l10n_ar**
https://github.com/odoo/odoo/blob/13.0/addons/l10n_ar/data/l10n_latam.document.type.csv#L74 making this error arise
on other localizations which don't use it.

This was mistakenly introduced on 7748e0e

This method is inherited inside l10n_ar and we add this additional validation.

Original PR: https://github.com/odoo/odoo/pull/64831

closes odoo/odoo#66957

Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: change first document number in draft</title>
<updated>2021-01-25T14:18:11+00:00</updated>
<author>
<name>Josse Colpaert</name>
<email>jco@odoo.com</email>
</author>
<published>2021-01-06T15:32:38+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=c6708a21a28f8e7eefd150f791a3324759a99ed3'/>
<id>c6708a21a28f8e7eefd150f791a3324759a99ed3</id>
<content type='text'>
The name of your first customer invoice is a configuration that
determines the next ones.  The problem before is that when you
confirmed a first invoice, you could not alter its document number
anymore.  With this commit, as long as it is the first invoice,
you can still change the document number when you reset to draft.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The name of your first customer invoice is a configuration that
determines the next ones.  The problem before is that when you
confirmed a first invoice, you could not alter its document number
anymore.  With this commit, as long as it is the first invoice,
you can still change the document number when you reset to draft.</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] account: Negative fixed taxes on 100% discount</title>
<updated>2020-12-02T13:11:19+00:00</updated>
<author>
<name>Nasreddin (bon)</name>
<email>bon@odoo.com</email>
</author>
<published>2020-11-24T12:52:43+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=684855529e8aaafa0cb90f958d19c563d6e2a897'/>
<id>684855529e8aaafa0cb90f958d19c563d6e2a897</id>
<content type='text'>
Issue

	- Install 'Accounting' module
	- Create a new 'Tax' X with a fixed price (e.g.: O.O57 $)
	- Create a new 'Customer Invoice'
	- Add a product P and set unit price to 0 $
	- Set tax X to product P

	Total tax amount : - 0.06 $ .

Solution

	The sign must be forced to a negative sign in case the balance is on credit
	to avoid negatif taxes amount.

enterprise PR : https://github.com/odoo/enterprise/pull/15035

opw-2378978

closes odoo/odoo#62725

X-original-commit: 13bfb5be817b3f3794503ec9f530d6205b4822e1
Related: odoo/enterprise#15094
Signed-off-by: Laurent Smet &lt;smetl@users.noreply.github.com&gt;
Signed-off-by: bon-odoo &lt;nboulif@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issue

	- Install 'Accounting' module
	- Create a new 'Tax' X with a fixed price (e.g.: O.O57 $)
	- Create a new 'Customer Invoice'
	- Add a product P and set unit price to 0 $
	- Set tax X to product P

	Total tax amount : - 0.06 $ .

Solution

	The sign must be forced to a negative sign in case the balance is on credit
	to avoid negatif taxes amount.

enterprise PR : https://github.com/odoo/enterprise/pull/15035

opw-2378978

closes odoo/odoo#62725

X-original-commit: 13bfb5be817b3f3794503ec9f530d6205b4822e1
Related: odoo/enterprise#15094
Signed-off-by: Laurent Smet &lt;smetl@users.noreply.github.com&gt;
Signed-off-by: bon-odoo &lt;nboulif@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_latam_invoice_document: Wrong calculation for the subtotal in the invoice report.</title>
<updated>2020-11-26T10:57:16+00:00</updated>
<author>
<name>Nicolás Mac Rouillon</name>
<email>nmr@adhoc.com.ar</email>
</author>
<published>2020-11-05T12:30:05+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=cd7396561a6edf66f1aca3285609ab40903182ed'/>
<id>cd7396561a6edf66f1aca3285609ab40903182ed</id>
<content type='text'>
For this case, if the invoice currency is different from the invoice company currency, the tax calculation is considered the value in a different currency, and the subtotal is the sum of the amount untaxed + the taxes (wrongly in company currency) result in an incorrect value. This is verified when printing the invoice report

closes odoo/odoo#62386

X-original-commit: 91f152f479923a1d28dadcb3ded7c0296cc585fc
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For this case, if the invoice currency is different from the invoice company currency, the tax calculation is considered the value in a different currency, and the subtotal is the sum of the amount untaxed + the taxes (wrongly in company currency) result in an incorrect value. This is verified when printing the invoice report

closes odoo/odoo#62386

X-original-commit: 91f152f479923a1d28dadcb3ded7c0296cc585fc
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
