-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_uy_edi: Fix en el manejo de formatos de reporte
Ticket: 80829
- Loading branch information
Showing
3 changed files
with
80 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
############################################################################## | ||
# For copyright and license notices, see __manifest__.py file in module root | ||
# directory | ||
############################################################################## | ||
from odoo.tests import common | ||
from odoo import fields | ||
from unittest.mock import patch | ||
|
||
|
||
class TestL10nUyCurrencyUpdate(common.TransactionCase): | ||
|
||
# Creamos este test para los formatos de parametros de reporte | ||
|
||
|
||
def setUp(self): | ||
|
||
company = self.company_id | ||
lang = self.env['res.lang'].search([['code', '=', 'en_US']]) | ||
content = """ | ||
Estimated Net Weight: 25.995,00 Kg | ||
Estimated Gross Weight: 26.774,850 Kg | ||
In 1 x 40 reef | ||
BL Nº: TBI | ||
SHIPPER / MANUFACTURER: C.VALE - COOPERATIVA AGROINDUSTRIAL (SIF 3300) | ||
AV. ARIOSVALDO BITENCOURT, 2000 CENTRO 85950000, PALOTINA - BRASIL | ||
MEANS OF TRANSPORTATION: Sea | ||
ORIGIN: Brazil | ||
PORT OF LOADING: Paranagua - Brazil | ||
PORT OF DISCHARGE: Cebu - Philippines | ||
SHIPMENT DATE: September, 2024 | ||
SALE TERMS: CNF (COST AND FREIGHT) Insurance under responsibility of the buyer | ||
TERMS OF PAYMENT: 100% TT Against copy of original documents | ||
""" | ||
adenda = self.env['l10n.uy.adenda'].create({ | ||
'name': 'Adenda Test pruebas', | ||
'legend_type': 'adenda', | ||
'company_id': company.id, | ||
'apply_on': 'account.move', | ||
'content': content | ||
}) | ||
partner = self.env['res.partner'].create({ | ||
'name': 'Partner Test Adenda', | ||
'lang': lang.code | ||
}) | ||
|
||
def reportparams_adenda_test(self): | ||
|