From a8465d523516b97c613296568a326cb141d5fd23 Mon Sep 17 00:00:00 2001 From: KolushovAlexandr Date: Tue, 7 Aug 2018 12:44:10 +0000 Subject: [PATCH 01/10] [IMP] point_of_sale saved_client_details method closes odoo/odoo#26220 Signed-off-by: Quentin Lejeune (qle) --- addons/point_of_sale/static/src/js/screens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 2b397e10a2e..02069ce2cdd 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1247,7 +1247,7 @@ var ClientListScreenWidget = ScreenWidget.extend({ // what happens when we've just pushed modifications for a partner of id partner_id saved_client_details: function(partner_id){ var self = this; - this.reload_partners().then(function(){ + return this.reload_partners().then(function(){ var partner = self.pos.db.get_partner_by_id(partner_id); if (partner) { self.new_client = partner; From eb62cd2c2b8eba2fceee4f0491a7f9a045de73d5 Mon Sep 17 00:00:00 2001 From: Suganthi Karunanithi Date: Tue, 26 Feb 2019 14:46:48 +0000 Subject: [PATCH 02/10] [FIX] gamification: badge auth for badge no error To avoid exception: TypeError: Mixing apples and oranges: gamification.badge() - gamification.badge.user(1,) when rule_auth of a badge is set to `having`. opw-1945440 closes #31436 closes #31595 Signed-off-by: Nicolas Lempereur (nle) --- addons/gamification/models/badge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/gamification/models/badge.py b/addons/gamification/models/badge.py index 58553981ab7..842bd88f673 100644 --- a/addons/gamification/models/badge.py +++ b/addons/gamification/models/badge.py @@ -236,7 +236,7 @@ class GamificationBadge(models.Model): elif self.rule_auth == 'users' and self.env.user not in self.rule_auth_user_ids: return self.USER_NOT_VIP elif self.rule_auth == 'having': - all_user_badges = self.env['gamification.badge.user'].search([('user_id', '=', self.env.uid)]) + all_user_badges = self.env['gamification.badge.user'].search([('user_id', '=', self.env.uid)]).mapped('badge_id') if self.rule_auth_badge_ids - all_user_badges: return self.BADGE_REQUIRED From 590c9d8e3389c1b9e011b3658e21ad2ca4acdd53 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 6 Mar 2019 16:20:10 +0000 Subject: [PATCH 03/10] [FIX] web: add a fallback for `kanban_label_selection` Before 11.0 the kanban view used to have its own widget registry. It is not the case anymore, but there are still leftovers from the past. For example, the widget `kanban_label_selection` is still used in many views, even though it is now called `label_selection`. As we are in a stable version, a fallback has been added for it in the field registry. Similar to odoo/odoo@5401c15 Closes odoo/odoo#30904 Closes odoo/odoo#25928 --- addons/web/static/src/js/fields/field_registry.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/fields/field_registry.js b/addons/web/static/src/js/fields/field_registry.js index fb7dc432154..b5c919a4832 100644 --- a/addons/web/static/src/js/fields/field_registry.js +++ b/addons/web/static/src/js/fields/field_registry.js @@ -41,8 +41,9 @@ registry .add('attachment_image', basic_fields.AttachmentImage) .add('image_selection', basic_fields.ImageSelection) .add('label_selection', basic_fields.LabelSelection) + .add('kanban_label_selection', basic_fields.LabelSelection) // deprecated, use label_selection .add('state_selection', basic_fields.StateSelectionWidget) - .add('kanban_state_selection', basic_fields.StateSelectionWidget) + .add('kanban_state_selection', basic_fields.StateSelectionWidget) // deprecated, use state_selection .add('boolean_favorite', basic_fields.FavoriteWidget) .add('boolean_button', basic_fields.FieldBooleanButton) .add('boolean_toggle', basic_fields.BooleanToggle) From d2d7f575298f57365c23d86566f7fb5ea50c284c Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 6 Mar 2019 16:38:12 +0000 Subject: [PATCH 04/10] [FIX] *: remove references to `kanban_label_selection` widget This widget does not exist anymore since the merge between the all widgets (new view refactoring). closes odoo/odoo#31643 Signed-off-by: Aaron Bohy (aab) --- addons/account/views/account_payment_view.xml | 2 +- addons/account/views/account_view.xml | 2 +- addons/account_asset/views/account_asset_views.xml | 2 +- addons/account_budget/views/account_budget_views.xml | 2 +- addons/hr_holidays/views/hr_holidays_views.xml | 2 +- addons/lunch/views/lunch_views.xml | 2 +- addons/mrp/views/mrp_unbuild_views.xml | 2 +- addons/mrp_repair/views/mrp_repair_views.xml | 2 +- addons/point_of_sale/views/pos_order_view.xml | 2 +- addons/point_of_sale/views/pos_session_view.xml | 2 +- .../views/purchase_requisition_views.xml | 4 ++-- addons/stock/views/stock_inventory_views.xml | 2 +- addons/stock/views/stock_move_views.xml | 6 +++--- .../stock_picking_batch/views/stock_picking_batch_views.xml | 2 +- addons/survey/views/survey_views.xml | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 26ea437c4d6..b0a470938de 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -71,7 +71,7 @@
- +
diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 0d4fec5b886..ab08a1a31f2 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1412,7 +1412,7 @@
- +
diff --git a/addons/account_asset/views/account_asset_views.xml b/addons/account_asset/views/account_asset_views.xml index 481ebbe9970..ce19e847ea5 100644 --- a/addons/account_asset/views/account_asset_views.xml +++ b/addons/account_asset/views/account_asset_views.xml @@ -244,7 +244,7 @@
- +
diff --git a/addons/account_budget/views/account_budget_views.xml b/addons/account_budget/views/account_budget_views.xml index 6c7d8859b63..e8d2338011d 100644 --- a/addons/account_budget/views/account_budget_views.xml +++ b/addons/account_budget/views/account_budget_views.xml @@ -170,7 +170,7 @@
- +
diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml index 78b43a52f78..d235cd41b0a 100644 --- a/addons/hr_holidays/views/hr_holidays_views.xml +++ b/addons/hr_holidays/views/hr_holidays_views.xml @@ -215,7 +215,7 @@
- +
diff --git a/addons/lunch/views/lunch_views.xml b/addons/lunch/views/lunch_views.xml index 22069009380..bc7ec141b9c 100644 --- a/addons/lunch/views/lunch_views.xml +++ b/addons/lunch/views/lunch_views.xml @@ -383,7 +383,7 @@
- +
diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index 48a1db9f932..ffd61ff1e58 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -78,7 +78,7 @@
- +
diff --git a/addons/mrp_repair/views/mrp_repair_views.xml b/addons/mrp_repair/views/mrp_repair_views.xml index 4b954ecdc93..16f35472e35 100644 --- a/addons/mrp_repair/views/mrp_repair_views.xml +++ b/addons/mrp_repair/views/mrp_repair_views.xml @@ -206,7 +206,7 @@
- +
diff --git a/addons/point_of_sale/views/pos_order_view.xml b/addons/point_of_sale/views/pos_order_view.xml index fcf1ce8c2da..f997bdac00b 100644 --- a/addons/point_of_sale/views/pos_order_view.xml +++ b/addons/point_of_sale/views/pos_order_view.xml @@ -134,7 +134,7 @@
-
diff --git a/addons/point_of_sale/views/pos_session_view.xml b/addons/point_of_sale/views/pos_session_view.xml index 8b79dc4e0b5..518e5c080fd 100644 --- a/addons/point_of_sale/views/pos_session_view.xml +++ b/addons/point_of_sale/views/pos_session_view.xml @@ -161,7 +161,7 @@
-
diff --git a/addons/purchase_requisition/views/purchase_requisition_views.xml b/addons/purchase_requisition/views/purchase_requisition_views.xml index 97484e9b0c1..e0f0085f6dc 100644 --- a/addons/purchase_requisition/views/purchase_requisition_views.xml +++ b/addons/purchase_requisition/views/purchase_requisition_views.xml @@ -30,7 +30,7 @@
- +
@@ -232,7 +232,7 @@
- +
diff --git a/addons/stock/views/stock_inventory_views.xml b/addons/stock/views/stock_inventory_views.xml index d3394da3c13..c6490b92589 100644 --- a/addons/stock/views/stock_inventory_views.xml +++ b/addons/stock/views/stock_inventory_views.xml @@ -93,7 +93,7 @@
- +
diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index 70f4befc845..a937f6ecc85 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -83,7 +83,7 @@
- +
@@ -446,7 +446,7 @@
-
@@ -510,7 +510,7 @@
-
diff --git a/addons/stock_picking_batch/views/stock_picking_batch_views.xml b/addons/stock_picking_batch/views/stock_picking_batch_views.xml index 4277b2172db..8cc61d1cad0 100644 --- a/addons/stock_picking_batch/views/stock_picking_batch_views.xml +++ b/addons/stock_picking_batch/views/stock_picking_batch_views.xml @@ -67,7 +67,7 @@
- +
diff --git a/addons/survey/views/survey_views.xml b/addons/survey/views/survey_views.xml index f3955e65d12..282fee8a258 100644 --- a/addons/survey/views/survey_views.xml +++ b/addons/survey/views/survey_views.xml @@ -108,7 +108,7 @@
- +
From cc54194e130d4a93d9afdd7aedc7d35be2e03fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir?= Date: Thu, 7 Mar 2019 15:33:01 +0000 Subject: [PATCH 05/10] [FIX] website_sale: filter fiscal positions on company MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When creating a cart on the website, the website company was not considered which could end up with the selection of a fiscal position linked to a wrong company since the method is called in sudo. closes odoo/odoo#31673 Signed-off-by: Rémi Rahir (rar) --- addons/website_sale/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/models/sale_order.py b/addons/website_sale/models/sale_order.py index 111f208f60b..c98fb72deea 100644 --- a/addons/website_sale/models/sale_order.py +++ b/addons/website_sale/models/sale_order.py @@ -399,7 +399,7 @@ class Website(models.Model): country_code = request.session['geoip'].get('country_code') if country_code: country_id = request.env['res.country'].search([('code', '=', country_code)], limit=1).id - fp_id = request.env['account.fiscal.position'].sudo()._get_fpos_by_region(country_id) + fp_id = request.env['account.fiscal.position'].sudo().with_context(force_company=request.website.company_id.id)._get_fpos_by_region(country_id) sale_order.fiscal_position_id = fp_id else: # if no geolocation, use the public user fp From 98b2784d1e29629a7b39275f6580c76dbe3e2cab Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 12 Dec 2018 16:02:25 +0000 Subject: [PATCH 06/10] [CLA] backport of e78af353fc7 to 10.0 Include cristinamartinrod in CLA of Tecnativa Needed for odoo/odoo#30774 --- doc/cla/corporate/tecnativa.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/cla/corporate/tecnativa.md b/doc/cla/corporate/tecnativa.md index 72a73cbbe28..9f3601d16a0 100644 --- a/doc/cla/corporate/tecnativa.md +++ b/doc/cla/corporate/tecnativa.md @@ -20,3 +20,4 @@ Jairo Llopis jairo.llopis@tecnativa.com https://github.com/yajo Vicent Cubells vicent.cubells@tecnativa.com https://github.com/cubells Luis Montalba luis.montalba@tecnativa.com https://github.com/luismontalba David Vidal david.vidal@tecnativa.com https://github.com/chienandalu +Cristina Martín cristina.martin@tecnativa.com https://github.com/cristinamartinrod From ca1b201cec406898a765ff966473eee69323fef5 Mon Sep 17 00:00:00 2001 From: cristinamartinrod Date: Thu, 7 Mar 2019 12:53:19 +0000 Subject: [PATCH 07/10] [FIX] website_mass_mailing: translate button The text was in a value tag, making it untranslatable Closes odoo/odoo#30774 Signed-off-by: Martin Trigaux (mat) --- addons/website_mass_mailing/i18n/website_mass_mailing.pot | 6 +++++- addons/website_mass_mailing/views/unsubscribe_templates.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/website_mass_mailing/i18n/website_mass_mailing.pot b/addons/website_mass_mailing/i18n/website_mass_mailing.pot index 6491c32c52a..7480d32a965 100644 --- a/addons/website_mass_mailing/i18n/website_mass_mailing.pot +++ b/addons/website_mass_mailing/i18n/website_mass_mailing.pot @@ -81,6 +81,11 @@ msgstr "" msgid "Mailing Subscriptions" msgstr "" +#. module: website_mass_mailing +#: model:ir.ui.view,arch_db:website_mass_mailing.unsubscribe +msgid "Update my subscriptions" +msgstr "" + #. module: website_mass_mailing #. openerp-web #: code:addons/website_mass_mailing/static/src/js/website_mass_mailing.editor.js:22 @@ -166,4 +171,3 @@ msgstr "" #: model:ir.ui.view,arch_db:website_mass_mailing.s_newsletter_subscribe_popup msgid "your email..." msgstr "" - diff --git a/addons/website_mass_mailing/views/unsubscribe_templates.xml b/addons/website_mass_mailing/views/unsubscribe_templates.xml index 8f044491102..72e14adb05a 100644 --- a/addons/website_mass_mailing/views/unsubscribe_templates.xml +++ b/addons/website_mass_mailing/views/unsubscribe_templates.xml @@ -28,7 +28,7 @@
- +
From 88de93114161a2b9a86f32a1b77201dac47e0756 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 1 Mar 2019 17:17:23 +0000 Subject: [PATCH 08/10] [FIX] payment_authorize: use SHA-512 instead of MD5 as not supported Authorize.Net is phasing out the MD5 based hash use for transaction response verification in favor of the SHA-512 based hash utilizing a Signature Key. Instead of hashing with md5 the transaction key, it is now required to hash the signature key (binary format) with SHA-512. Support for MD5 will be dropped the 7th March 2019 for sandbox environment and the 28th March 2019 for production environment, initially planned for the 14th. Note that as of February 11, 2019 authorize removed the ability to configure or update MD5 Hash setting in the Merchant Interface. Merchants who had this setting configured have been emailed/contacted. opw-1943030 Usefull links: https://developer.authorize.net/support/hash_upgrade/ https://support.authorize.net/s/article/What-is-a-Signature-Key https://support.authorize.net/s/article/MD5-Hash-End-of-Life-Signature-Key-Replacement https://support.authorize.net/s/article/Do-I-need-to-upgrade-my-transaction-fingerprint-from-HMAC-MD5-to-HMAC-SHA512-and-how closes odoo/odoo#31642 Signed-off-by: Romain Derie (rde) --- addons/payment_authorize/models/payment.py | 13 +++++++++++-- addons/payment_authorize/tests/test_authorize.py | 15 +++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/addons/payment_authorize/models/payment.py b/addons/payment_authorize/models/payment.py index 73c7c044e0a..6c31e7a499e 100644 --- a/addons/payment_authorize/models/payment.py +++ b/addons/payment_authorize/models/payment.py @@ -5,6 +5,7 @@ from datetime import datetime import hashlib import hmac import logging +import string import time import urlparse @@ -54,7 +55,15 @@ class PaymentAcquirerAuthorize(models.Model): values['x_fp_timestamp'], values['x_amount'], values['x_currency_code']]) - return hmac.new(str(values['x_trans_key']), data, hashlib.md5).hexdigest() + + # [BACKWARD COMPATIBILITY] Check that the merchant did update his transaction + # key to signature key (end of MD5 support from Authorize.net) + # The signature key is now '128-character hexadecimal format', while the + # transaction key was only 16-character. + if len(values['x_trans_key']) == 128: + return hmac.new(values['x_trans_key'].decode("hex"), data, hashlib.sha512).hexdigest().upper() + else: + return hmac.new(str(values['x_trans_key']), data, hashlib.md5).hexdigest() @api.multi def authorize_form_generate_values(self, values): @@ -172,7 +181,7 @@ class TxAuthorize(models.Model): def _authorize_form_get_tx_from_data(self, data): """ Given a data dict coming from authorize, verify it and find the related transaction record. """ - reference, trans_id, fingerprint = data.get('x_invoice_num'), data.get('x_trans_id'), data.get('x_MD5_Hash') + reference, trans_id, fingerprint = data.get('x_invoice_num'), data.get('x_trans_id'), data.get('x_SHA2_Hash') or data.get('x_MD5_Hash') if not reference or not trans_id or not fingerprint: error_msg = _('Authorize: received data with missing reference (%s) or trans_id (%s) or fingerprint (%s)') % (reference, trans_id, fingerprint) _logger.info(error_msg) diff --git a/addons/payment_authorize/tests/test_authorize.py b/addons/payment_authorize/tests/test_authorize.py index 35be8a99b17..2d1d7665ce3 100644 --- a/addons/payment_authorize/tests/test_authorize.py +++ b/addons/payment_authorize/tests/test_authorize.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- -import hashlib -import hmac import time import urlparse import unittest @@ -32,15 +30,6 @@ class AuthorizeCommon(PaymentAcquirerCommon): @odoo.tests.common.post_install(True) class AuthorizeForm(AuthorizeCommon): - def _authorize_generate_hashing(self, values): - data = '^'.join([ - values['x_login'], - values['x_fp_sequence'], - values['x_fp_timestamp'], - values['x_amount'], - ]) + '^' - return hmac.new(str(values['x_trans_key']), data, hashlib.md5).hexdigest() - def test_10_Authorize_form_render(self): self.assertEqual(self.authorize.environment, 'test', 'test without test environment') @@ -84,7 +73,7 @@ class AuthorizeForm(AuthorizeCommon): 'x_ship_to_state': None, } - form_values['x_fp_hash'] = self._authorize_generate_hashing(form_values) + form_values['x_fp_hash'] = self.env['payment.acquirer']._authorize_generate_hashing(form_values) # render the button res = self.authorize.render('SO004', 320.0, self.currency_usd.id, values=self.buyer_values) # check form result @@ -108,7 +97,9 @@ class AuthorizeForm(AuthorizeCommon): # typical data posted by authorize after client has successfully paid authorize_post_data = { 'return_url': u'/shop/payment/validate', + # x_MD5_Hash will be empty starting the 28th March 2019 'x_MD5_Hash': u'7934485E1C105940BE854208D10FAB4F', + 'x_SHA2_Hash': u'7D3AC844BE8CA3F649AB885A90D22CFE35B850338EC91D1A5ADD819A85FF948A3D777334A18CDE36821DC8F2B42A6E1950C1FF96B52B60F23201483A656195FB', 'x_account_number': u'XXXX0027', 'x_address': u'Huge Street 2/543', 'x_amount': u'320.00', From 8da3750cee37532d2060bc0c4271a15bc1511dc2 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 8 Mar 2019 10:02:30 +0000 Subject: [PATCH 09/10] [FIX] core: remove extra exception log, redundant in P3 Reverts 2b1d3ff82dd23fb0372b3b73ecb84841a0d593d3 introduced in 10.0 via It was relatively useful in Odoo 10.0 because in Python 2 the exception was missing a root cause traceback. But Python 3 includes exception chaining by default, so it comes for free. See [PEP3134](https://legacy.python.org/dev/peps/pep-3134/) On top of being redundant in P3, it can also break some testcases by causing an extra ERROR log entry, even when the final exception is expected and caught. So it's simpler to remove it. closes odoo/odoo#31699 Signed-off-by: Olivier Dony (odo) --- odoo/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/odoo/models.py b/odoo/models.py index f7bcd57b074..bedf7fec10e 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -1038,7 +1038,6 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): except ValidationError as e: raise except Exception as e: - _logger.exception('Exception while validating constraint') raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e))) @api.model From e5f93b83c6828deac166f0691ac9fffe843471e2 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 8 Mar 2019 14:57:25 +0100 Subject: [PATCH 10/10] [IMP] base,account: unmute logger Since 8da3750cee37532d2060bc0c4271a15bc1511dc2, logger does not need to be muted anymore. This reverts commits c3764265de9a17404860b664d42a2329f496a4da and 1693a27f289a12dbcf49fbaf8ff9d6e948be08c0. --- .../tests/test_account_invoice_rounding.py | 4 +-- odoo/addons/base/tests/test_views.py | 36 +++++++++---------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/addons/account/tests/test_account_invoice_rounding.py b/addons/account/tests/test_account_invoice_rounding.py index 3d2dd883b36..9b0ef0fc9e8 100644 --- a/addons/account/tests/test_account_invoice_rounding.py +++ b/addons/account/tests/test_account_invoice_rounding.py @@ -2,7 +2,6 @@ from odoo.addons.account.tests.account_test_classes import AccountingTestCase from odoo.exceptions import ValidationError -from odoo.tools import mute_logger import time @@ -59,8 +58,7 @@ class TestAccountInvoiceRounding(AccountingTestCase): # to avoid a ValidationError from _check_cash_rounding because the onchange # are not well triggered in the tests. try: - with mute_logger('odoo.models'): - invoice_id.cash_rounding_id = cash_rounding_id + invoice_id.cash_rounding_id = cash_rounding_id except ValidationError: pass diff --git a/odoo/addons/base/tests/test_views.py b/odoo/addons/base/tests/test_views.py index f4f9011fc57..b4a5ac178e9 100644 --- a/odoo/addons/base/tests/test_views.py +++ b/odoo/addons/base/tests/test_views.py @@ -866,7 +866,7 @@ class TestViews(ViewCase): # implemeted elsewhere... modifiers_tests() - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_invalid_field(self): with self.assertRaises(ValidationError): self.View.create({ @@ -880,7 +880,7 @@ class TestViews(ViewCase): """, }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_invalid_subfield(self): with self.assertRaises(ValidationError): self.View.create({ @@ -899,7 +899,7 @@ class TestViews(ViewCase): """, }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_context_in_view(self): arch = """
@@ -919,7 +919,7 @@ class TestViews(ViewCase): 'arch': arch % '', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_context_in_subview(self): arch = """ @@ -951,7 +951,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_context_in_subview_with_parent(self): arch = """ @@ -982,7 +982,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_context_in_subsubview_with_parent(self): arch = """ @@ -1024,7 +1024,7 @@ class TestViews(ViewCase): 'arch': arch % ('', '', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_in_view(self): arch = """ @@ -1044,7 +1044,7 @@ class TestViews(ViewCase): 'arch': arch % '', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_in_subview(self): arch = """ @@ -1075,7 +1075,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_in_subview_with_parent(self): arch = """ @@ -1106,7 +1106,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_field_in_view(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', model)]") @@ -1129,7 +1129,7 @@ class TestViews(ViewCase): 'arch': arch % '', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_field_in_subview(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', model)]") @@ -1163,7 +1163,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_field_in_subview_with_parent(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', parent.model)]") @@ -1197,7 +1197,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_field_in_noneditable_subview(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', model)]") @@ -1225,7 +1225,7 @@ class TestViews(ViewCase): 'arch': arch % ' editable="bottom"', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_readonly_field_in_view(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', model)]") @@ -1255,7 +1255,7 @@ class TestViews(ViewCase): 'arch': arch, }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_domain_on_readonly_field_in_subview(self): field = self.env['ir.ui.view']._fields['inherit_id'] self.patch(field, 'domain', "[('model', '=', model)]") @@ -1283,7 +1283,7 @@ class TestViews(ViewCase): 'arch': arch % '', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_attrs_field(self): arch = """ @@ -1304,7 +1304,7 @@ class TestViews(ViewCase): 'arch': arch % '', }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_attrs_subfield(self): arch = """ @@ -1336,7 +1336,7 @@ class TestViews(ViewCase): 'arch': arch % ('', ''), }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_attrs_subfield_with_parent(self): arch = """