Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Daniel Santibáñez Polanco
l10n_cl_dte_exportacion
Commits
03abc5de
Commit
03abc5de
authored
Feb 13, 2020
by
Daniel Santibáñez Polanco
Browse files
[FIX]Cambio de moneda
parent
3aa2aa16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
__manifest__.py
__manifest__.py
+1
-1
models/account_invoice.py
models/account_invoice.py
+6
-4
No files found.
__manifest__.py
View file @
03abc5de
...
...
@@ -2,7 +2,7 @@
{
"name"
:
"""Factura de Exportación Electrónica para Chile
\
"""
,
'version'
:
'0.18.
4
'
,
'version'
:
'0.18.
5
'
,
'category'
:
'Localization/Chile'
,
'sequence'
:
12
,
'author'
:
'Daniel Santibáñez Polanco, Cooperativa OdooCoop'
,
...
...
models/account_invoice.py
View file @
03abc5de
...
...
@@ -171,14 +171,16 @@ class Exportacion(models.Model):
IVA
,
TasaIVA
,
MntTotal
,
MntBase
)
Totales
=
{}
Totales
[
'TpoMoneda'
]
=
self
.
_acortar_str
(
currency_id
.
abreviatura
,
15
)
Totales
[
'TpoCambio'
]
=
currency_id
.
rate
currency_target
=
self
.
currency_target
()
Totales
[
'TpoMoneda'
]
=
self
.
_acortar_str
(
currency_target
.
abreviatura
,
15
)
base
=
self
.
currency_base
()
Totales
[
'TpoCambio'
]
=
base
.
rate
if
MntExe
:
if
currency_id
:
MntExe
=
currency_id
.
compute
(
MntExe
,
self
.
company_id
.
currency_
id
)
MntExe
=
base
.
compute
(
MntExe
,
currency_
target
)
Totales
[
'MntExeOtrMnda'
]
=
MntExe
if
currency_id
:
MntTotal
=
currency_id
.
compute
(
MntTotal
,
self
.
company_id
.
currency_
id
)
MntTotal
=
base
.
compute
(
MntTotal
,
currency_
target
)
Totales
[
'MntTotOtrMnda'
]
=
MntTotal
return
Totales
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment