From a4f010ed53615dcbe48c08a445e7d64045001133 Mon Sep 17 00:00:00 2001 From: Ivan Todorovich Date: Fri, 19 Apr 2019 14:16:04 +0000 Subject: [PATCH] [IMP] account_invoice_comment_template: Move comment_template_id field to the Invoicing tab [IMP] account_invoice_comment_template: rename partner field name from comment_template_id to invoice_comment_template_id [IMP] account_invoice_comment_template: Make partner field company_dependant and move domain definition of invoice fields from the view to the model [MOV] account_invoice_comment_template: comment_template_id to base_comment_template [IMP] account_invoice_comment_template: Translate templates when partner changes --- base_comment_template/tests/test_base_comment_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_comment_template/tests/test_base_comment_template.py b/base_comment_template/tests/test_base_comment_template.py index d8bba34a..c963c589 100644 --- a/base_comment_template/tests/test_base_comment_template.py +++ b/base_comment_template/tests/test_base_comment_template.py @@ -5,6 +5,7 @@ from odoo.tests.common import TransactionCase class TestResPartner(TransactionCase): def setUp(self): + super(TestResPartner, self).setUp() self.template_id = self.env['base.comment.template'].create({ 'name': 'Comment before lines', 'position': 'before_lines', @@ -18,4 +19,4 @@ class TestResPartner(TransactionCase): # Test childs propagation of commercial partner field for child_id in partner_id.child_ids: self.assertEqual( - child_id.property_comment_template_id == self.template_id) + child_id.property_comment_template_id, self.template_id)