[IMP] base_comment_template: black, isort, prettier

This commit is contained in:
Pierre Verkest
2021-01-07 22:37:54 +01:00
parent cfcac1d83e
commit 85e13a0bf7
12 changed files with 74 additions and 71 deletions

View File

@@ -3,20 +3,20 @@ 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',
'text': 'Text before lines',
})
self.template_id = self.env["base.comment.template"].create(
{
"name": "Comment before lines",
"position": "before_lines",
"text": "Text before lines",
}
)
def test_commercial_partner_fields(self):
# Azure Interior
partner_id = self.env.ref('base.res_partner_12')
partner_id = self.env.ref("base.res_partner_12")
partner_id.property_comment_template_id = self.template_id.id
# 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)
self.assertEqual(child_id.property_comment_template_id, self.template_id)