Skip to content

Commit f4873dd

Browse files
juancarlosonate-tecnativaCRogos
authored andcommitted
[IMP] sale_product_set: pre-commit auto fixes
1 parent 61adcdb commit f4873dd

5 files changed

Lines changed: 32 additions & 30 deletions

File tree

sale_product_set/README.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ Usage
5050

5151
To use this module, you need to:
5252

53-
- Define a *product set* as sale manager:
53+
- Define a *product set* as sale manager:
5454

55-
- choose products
56-
- for each products, define a quantity.
57-
- for each products (if Discounts setting is active), define a
58-
discount or leave default value
59-
- Sort *set* lines, this order will be the default when added into
60-
the quotation
55+
- choose products
56+
- for each products, define a quantity.
57+
- for each products (if Discounts setting is active), define a
58+
discount or leave default value
59+
- Sort *set* lines, this order will be the default when added into the
60+
quotation
6161

62-
- Then you can remove or update added lines as any other sale order
63-
lines.
62+
- Then you can remove or update added lines as any other sale order
63+
lines.
6464

6565
|Sale order|
6666

@@ -87,26 +87,26 @@ Authors
8787
Contributors
8888
------------
8989

90-
- Clovis Nzouendjou <clovis@anybox.fr>
91-
- Pierre Verkest <pverkest@anybox.fr>
92-
- Denis Leemann <denis.leemann@camptocamp.com>
93-
- Simone Orsi <simone.orsi@camptocamp.com>
94-
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>
95-
- Adria Gil Sorribes <adria.gil@forgeflow.com>
96-
- Phuc (Tran Thanh) <phuc@trobz.com>
97-
- Manuel Regidor <manuel.regidor@sygel.es>
98-
- `Tecnativa <https://www.tecnativa.com>`__:
90+
- Clovis Nzouendjou <clovis@anybox.fr>
91+
- Pierre Verkest <pverkest@anybox.fr>
92+
- Denis Leemann <denis.leemann@camptocamp.com>
93+
- Simone Orsi <simone.orsi@camptocamp.com>
94+
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>
95+
- Adria Gil Sorribes <adria.gil@forgeflow.com>
96+
- Phuc (Tran Thanh) <phuc@trobz.com>
97+
- Manuel Regidor <manuel.regidor@sygel.es>
98+
- `Tecnativa <https://www.tecnativa.com>`__:
9999

100-
- Pilar Vargas
100+
- Pilar Vargas
101101

102-
- Nils Coenen <nils.coenen@nico-solutions.de>
102+
- Nils Coenen <nils.coenen@nico-solutions.de>
103103

104104
Other credits
105105
-------------
106106

107107
The development of this module has been financially supported by:
108108

109-
- Camptocamp
109+
- Camptocamp
110110

111111
Maintainers
112112
-----------

sale_product_set/models/res_partner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def write(self, vals):
2626
)
2727
partner_product_sets.sudo().write({"active": vals["active"]})
2828
_logger.debug(
29-
"product.set archive state changed to <active | inactive> for partners %s",
29+
"product.set archive state changed to "
30+
"<active | inactive> for partners %s",
3031
",".join(str(x) for x in self.ids),
3132
)
3233
return res

sale_product_set/static/description/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
400400
<li>for each products, define a quantity.</li>
401401
<li>for each products (if Discounts setting is active), define a
402402
discount or leave default value</li>
403-
<li>Sort <em>set</em> lines, this order will be the default when added into
404-
the quotation</li>
403+
<li>Sort <em>set</em> lines, this order will be the default when added into the
404+
quotation</li>
405405
</ul>
406406
</li>
407407
<li>Then you can remove or update added lines as any other sale order

sale_product_set/tests/test_product_set.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ def test_product_set_toggle_active(self):
230230
self.product_set_3.partner_id = partner_2
231231

232232
ICPSudo = self.env["ir.config_parameter"].sudo()
233-
ICPSudo.set_param(
234-
"sale_product_set.archive_partner_product_sets", True)
233+
ICPSudo.set_param("sale_product_set.archive_partner_product_sets", True)
235234

236235
# partners active, product sets active
237236
self.assertTrue(self.product_set.active)
@@ -261,8 +260,7 @@ def test_product_set_toggle_active(self):
261260

262261
# set param to False and make sure partner's active state
263262
# does not affect product set's active state
264-
ICPSudo.set_param(
265-
"sale_product_set.archive_partner_product_sets", False)
263+
ICPSudo.set_param("sale_product_set.archive_partner_product_sets", False)
266264

267265
# partner archived, product set not archived
268266
partner_1.write({"active": False})

sale_product_set/views/res_config_settings.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
<field name="arch" type="xml">
88
<xpath expr="//app[@name='sale_management']" position="inside">
99
<block title="Product Sets" name="product_set_container">
10-
<setting id="product_set_archive" help="Archive/unarchive product sets related to partners together with partner">
11-
<field name="archive_partner_product_sets"/>
10+
<setting
11+
id="product_set_archive"
12+
help="Archive/unarchive product sets related to partners together with partner"
13+
>
14+
<field name="archive_partner_product_sets" />
1215
</setting>
1316
</block>
1417
</xpath>

0 commit comments

Comments
 (0)