Skip to content

Commit 7971929

Browse files
jjscarafiapablohmontenegro
authored andcommitted
[IMP] l10n_ar_sale: do now show incoterm if not set
closes #244 Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
1 parent 9b1b7c0 commit 7971929

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

l10n_ar_sale/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Argentinian Sale Total Fields",
3-
"version": "18.0.1.3.0",
3+
"version": "18.0.1.4.0",
44
"category": "Localization/Argentina",
55
"sequence": 14,
66
"author": "ADHOC SA",

l10n_ar_sale/views/sale_report_templates.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@
138138
<span t-field="doc.client_order_ref"/>
139139
</t>
140140

141-
<t t-if="doc.is_module_installed('sale_stock')">
142-
<br/><strong>Incoterm:</strong><span t-field="doc.incoterm.name"/>
141+
<t t-if="doc.is_module_installed('sale_stock') and doc.incoterm" name="incoterm">
142+
<br/><strong>Incoterm:</strong>
143+
<span t-field="doc.incoterm.code"/><span t-if="doc.incoterm_location" t-out="' - %s' % doc.incoterm_location"/>
143144
</t>
144145

145146
</div>

0 commit comments

Comments
 (0)