[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
parent
0418136b21
commit
51e1ae01aa
|
@ -4,7 +4,7 @@
|
|||
|
||||
{
|
||||
"name": "Report QWeb Parameter",
|
||||
"version": "12.0.1.0.0",
|
||||
"version": "12.0.1.0.1",
|
||||
"license": "AGPL-3",
|
||||
"summary": """
|
||||
Add new parameters for qweb templates in order to reduce field length
|
||||
|
|
|
@ -16,7 +16,6 @@ class TestReportQWebParameter(common.TransactionCase):
|
|||
docs = self.env['res.company'].create({
|
||||
'name': 'Test company',
|
||||
'street': '12345678901',
|
||||
'vat': '12345678901',
|
||||
'company_registry': '1234567890'
|
||||
})
|
||||
docs.website = '1234567890' # for avoding that Odoo adds http://
|
||||
|
@ -27,10 +26,7 @@ class TestReportQWebParameter(common.TransactionCase):
|
|||
docs.update({'street': '123456789'})
|
||||
with self.assertRaises(QWebException):
|
||||
report_object.render(docs.ids, False)
|
||||
docs.update({'street': '1234567890', 'vat': '123456789'})
|
||||
with self.assertRaises(QWebException):
|
||||
report_object.render(docs.ids, False)
|
||||
docs.update({'vat': '1234567890', 'website': '12345678901'})
|
||||
docs.update({'street': '1234567890', 'website': '12345678901'})
|
||||
with self.assertRaises(QWebException):
|
||||
report_object.render(docs.ids, False)
|
||||
docs.update(
|
||||
|
|
Loading…
Reference in New Issue