-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[14.0][MIG] l10n_it_fatturapa_out_triple_discount
- Loading branch information
Showing
13 changed files
with
111 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
|
||
from . import wizards | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
l10n_it_fatturapa_out_triple_discount/data/invoice_it_template.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
<template | ||
id="account_invoice_line_it_triple_discount" | ||
inherit_id="l10n_it_fatturapa_out.account_invoice_line_it_sconto_maggiorazione" | ||
> | ||
<xpath expr="//ScontoMaggiorazione" position="after"> | ||
<t | ||
t-set="importo2" | ||
t-value="get_importo(line.price_unit, line.discount2)" | ||
/> | ||
<t | ||
t-set="importo3" | ||
t-value="get_importo(line.price_unit, line.discount3)" | ||
/> | ||
<ScontoMaggiorazione t-if="line.discount2 != 0 or importo2 != 0"> | ||
<!-- [2.2.1.10] --> | ||
<t t-if="importo"> | ||
<Tipo t-if="importo2 > 0">SC</Tipo> | ||
<Tipo t-if="importo2 <= 0">MG</Tipo> | ||
<Importo t-esc="format_numbers(abs(importo2))" /> | ||
</t> | ||
<t t-else=""> | ||
<Tipo t-if="line.discount2 > 0">SC</Tipo> | ||
<Tipo t-if="line.discount2 <= 0">MG</Tipo> | ||
<Percentuale t-esc="format_numbers_two(abs(line.discount2))" /> | ||
</t> | ||
</ScontoMaggiorazione> | ||
<ScontoMaggiorazione t-if="line.discount3 != 0 or importo3 != 0"> | ||
<!-- [2.2.1.10] --> | ||
<t t-if="importo"> | ||
<Tipo t-if="importo3 > 0">SC</Tipo> | ||
<Tipo t-if="importo3 <= 0">MG</Tipo> | ||
<Importo t-esc="format_numbers(abs(importo3))" /> | ||
</t> | ||
<t t-else=""> | ||
<Tipo t-if="line.discount3 > 0">SC</Tipo> | ||
<Tipo t-if="line.discount3 <= 0">MG</Tipo> | ||
<Percentuale t-esc="format_numbers_two(abs(line.discount3))" /> | ||
</t> | ||
</ScontoMaggiorazione> | ||
</xpath> | ||
</template> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* Simone Rubino | ||
* Alex Comba <alex.comba@agilebg.com> | ||
* Giovanni Serra <giovanni@gslab.it> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
l10n_it_fatturapa_out_triple_discount/tests/data/IT06363391001_00001.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
l10n_it_fatturapa_out_triple_discount/wizards/wizard_export_fatturapa.py
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...p/l10n_it_fatturapa_out_triple_discount/odoo/addons/l10n_it_fatturapa_out_triple_discount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../l10n_it_fatturapa_out_triple_discount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |