File tree Expand file tree Collapse file tree
l10n_it_fatturapa_out_triple_discount Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 ~ Copyright 2022 Simone Rubino - TAKOBI
44 ~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
55 -->
6-
76<odoo >
87 <data >
98<!--
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ def get_all_taxes(record):
176176 wiz = self .env ["wizard.export.fatturapa" ]
177177 return wiz .getAllTaxes (record )
178178
179- def get_importo (line , discount_field = ' discount' ):
179+ def get_importo (line , discount_field = " discount" ):
180180 str_number = str (line [discount_field ])
181181 number = str_number [::- 1 ].find ("." )
182182 if number <= 2 :
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!--
3+ ~ Copyright 2022 Simone Rubino - TAKOBI
4+ ~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
5+ -->
26<odoo >
37 <data >
48 <template
812 <xpath expr =" //ScontoMaggiorazione" position =" after" >
913 <t
1014 t-set =" importo2"
11- t-value =" get_importo(line.price_unit, line. discount2)"
15+ t-value =" get_importo(line, discount_field=' discount2' )"
1216 />
1317 <t
1418 t-set =" importo3"
15- t-value =" get_importo(line.price_unit, line. discount3)"
19+ t-value =" get_importo(line, discount_field=' discount3' )"
1620 />
1721 <ScontoMaggiorazione t-if =" line.discount2 != 0 or importo2 != 0" >
1822 <!-- [2.2.1.10] -->
Original file line number Diff line number Diff line change 11* Simone Rubino
22* Alex Comba <alex.comba@agilebg.com>
3- * Giovanni Serra <giovanni@gslab.it>
3+ * `Ooops <https://ooops404.com >`_:
4+
5+ * Giovanni Serra <giovanni@gslab.it>
6+
7+ * `TAKOBI <https://takobi.online >`_:
8+
9+ * Simone Rubino <sir@takobi.online>
You can’t perform that action at this time.
0 commit comments