Skip to content

Commit a85e814

Browse files
committed
[IMP] sale_order_partner_no_autofollow: pre-commit auto fixes
1 parent 84d937d commit a85e814

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

sale_order_partner_no_autofollow/__manifest__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "Sale Order Customer No Autofollow",
33
"summary": "Do not add customer as follower in Sales Orders",
4-
"author": "Cetmix, Almas Kopeyev, IT-Projects LLC, Odoo Community Association (OCA)",
4+
"author": (
5+
"Cetmix, Almas Kopeyev, IT-Projects LLC, Odoo Community Association (OCA)"
6+
),
57
"version": "17.0.1.0.0",
68
"website": "https://github.com/OCA/sale-workflow",
79
"category": "Sale",
810
"depends": [
911
"sale",
1012
"sale_management",
11-
],
13+
],
1214
"maintainers": [],
1315
"data": ["views/res_config_settings.xml"],
1416
"license": "AGPL-3",

sale_order_partner_no_autofollow/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def message_subscribe(self, partner_ids=None, subtype_ids=None):
1111
and self.partner_id.id in partner_ids
1212
):
1313
partner_ids.remove(self.partner_id.id)
14-
return super(SaleOrder, self).message_subscribe(partner_ids, subtype_ids)
14+
return super().message_subscribe(partner_ids, subtype_ids)
1515

1616
@api.model_create_multi
1717
def create(self, values):

sale_order_partner_no_autofollow/tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def setUp(self, *args, **kwargs):
77
Test for orders, to check autofollow when the
88
'customer no autofollow' mode is enabled in settings
99
"""
10-
super(NoAutofollowCommon, self).setUp(*args, **kwargs)
10+
super().setUp(*args, **kwargs)
1111

1212
self.partner1 = self.env["res.partner"].create(
1313
{"name": "Test1", "email": "test1@test.com"}

sale_order_partner_no_autofollow/tests/test_no_autofollow_disabled.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@tagged("post_install", "-at_install", "standart")
77
class TestSaleOrderNoAutofollow(NoAutofollowCommon):
88
def setUp(self, *args, **kwargs):
9-
super(TestSaleOrderNoAutofollow, self).setUp(*args, **kwargs)
9+
super().setUp(*args, **kwargs)
1010

1111
self.env["ir.config_parameter"].sudo().set_param(
1212
"sale_order_partner_no_autofollow.partner_disable_autofollow", True

sale_order_partner_no_autofollow/tests/test_no_autofollow_enabled.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@tagged("post_install", "-at_install", "standart")
77
class TestSaleOrderNoAutofollow(NoAutofollowCommon):
88
def setUp(self, *args, **kwargs):
9-
super(TestSaleOrderNoAutofollow, self).setUp(*args, **kwargs)
9+
super().setUp(*args, **kwargs)
1010

1111
self.env["ir.config_parameter"].sudo().set_param(
1212
"sale_order_partner_no_autofollow.partner_disable_autofollow", False

sale_order_partner_no_autofollow/views/res_config_settings.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
<field name="arch" type="xml">
99
<xpath expr="//block[@name='invoicing_setting_container']" position="after">
1010
<block title="Auto Follow" name="autofollow_settings_container">
11-
<setting id="partner_disable_autofollow_setting" help="Customer will not be added as follower automatically on sale orders">
12-
<field name="partner_disable_autofollow"/>
11+
<setting
12+
id="partner_disable_autofollow_setting"
13+
help="Customer will not be added as follower automatically on sale orders"
14+
>
15+
<field name="partner_disable_autofollow" />
1316
</setting>
1417
</block>
1518
</xpath>

0 commit comments

Comments
 (0)