[FIX] report_qweb_parameter: Don't mess with VAT

Since odoo/odoo@8c713ed270, we are
not able to use invalid VATs anymore, so we remove the usage of it
in these tests, as it doesn't change the validity of them.
pull/539/head
Pedro M. Baeza 2021-03-29 16:45:07 +02:00
parent 0418136b21
commit 51e1ae01aa
2 changed files with 2 additions and 6 deletions

View File

@ -4,7 +4,7 @@
{ {
"name": "Report QWeb Parameter", "name": "Report QWeb Parameter",
"version": "12.0.1.0.0", "version": "12.0.1.0.1",
"license": "AGPL-3", "license": "AGPL-3",
"summary": """ "summary": """
Add new parameters for qweb templates in order to reduce field length Add new parameters for qweb templates in order to reduce field length

View File

@ -16,7 +16,6 @@ class TestReportQWebParameter(common.TransactionCase):
docs = self.env['res.company'].create({ docs = self.env['res.company'].create({
'name': 'Test company', 'name': 'Test company',
'street': '12345678901', 'street': '12345678901',
'vat': '12345678901',
'company_registry': '1234567890' 'company_registry': '1234567890'
}) })
docs.website = '1234567890' # for avoding that Odoo adds http:// docs.website = '1234567890' # for avoding that Odoo adds http://
@ -27,10 +26,7 @@ class TestReportQWebParameter(common.TransactionCase):
docs.update({'street': '123456789'}) docs.update({'street': '123456789'})
with self.assertRaises(QWebException): with self.assertRaises(QWebException):
report_object.render(docs.ids, False) report_object.render(docs.ids, False)
docs.update({'street': '1234567890', 'vat': '123456789'}) docs.update({'street': '1234567890', 'website': '12345678901'})
with self.assertRaises(QWebException):
report_object.render(docs.ids, False)
docs.update({'vat': '1234567890', 'website': '12345678901'})
with self.assertRaises(QWebException): with self.assertRaises(QWebException):
report_object.render(docs.ids, False) report_object.render(docs.ids, False)
docs.update( docs.update(