Skip to content

Commit 45d995c

Browse files
[MIG] sale_product_set: Migration to 17.0
1 parent f5ecaf6 commit 45d995c

File tree

9 files changed

+9
-5
lines changed

9 files changed

+9
-5
lines changed

sale_product_set/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Contributors
9595
- Adria Gil Sorribes <adria.gil@forgeflow.com>
9696
- Phuc (Tran Thanh) <phuc@trobz.com>
9797
- Manuel Regidor <manuel.regidor@sygel.es>
98+
- Nils Coenen <nils.coenen@nico-solutions.de>
9899

99100
Other credits
100101
-------------

sale_product_set/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"category": "Sale",
77
"license": "AGPL-3",
88
"author": "Anybox, Odoo Community Association (OCA)",
9-
"version": "16.0.2.0.0",
9+
"version": "17.0.1.0.0",
1010
"website": "https://github.com/OCA/sale-workflow",
1111
"depends": ["sale", "sale_management", "product_set"],
1212
"data": [

sale_product_set/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
- Adria Gil Sorribes \<<adria.gil@forgeflow.com>\>
77
- Phuc (Tran Thanh) \<<phuc@trobz.com>\>
88
- Manuel Regidor \<<manuel.regidor@sygel.es>\>
9+
- Nils Coenen \<<nils.coenen@nico-solutions.de>\>

sale_product_set/static/description/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
437437
<li>Adria Gil Sorribes &lt;<a class="reference external" href="mailto:adria.gil&#64;forgeflow.com">adria.gil&#64;forgeflow.com</a>&gt;</li>
438438
<li>Phuc (Tran Thanh) &lt;<a class="reference external" href="mailto:phuc&#64;trobz.com">phuc&#64;trobz.com</a>&gt;</li>
439439
<li>Manuel Regidor &lt;<a class="reference external" href="mailto:manuel.regidor&#64;sygel.es">manuel.regidor&#64;sygel.es</a>&gt;</li>
440+
<li>Nils Coenen &lt;<a class="reference external" href="mailto:nils.coenen&#64;nico-solutions.de">nils.coenen&#64;nico-solutions.de</a>&gt;</li>
440441
</ul>
441442
</div>
442443
<div class="section" id="other-credits">

sale_product_set/tests/test_product_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_add_set(self):
5757
# check all lines are included
5858
for line in self.product_set.set_line_ids:
5959
order_line = so.order_line.filtered(
60-
lambda x: x.product_id == line.product_id
60+
lambda x, line=line: x.product_id == line.product_id
6161
)
6262
order_line.ensure_one()
6363
self.assertEqual(order_line.product_uom_qty, line.quantity * wiz.quantity)

sale_product_set/views/sale_order.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
type="action"
1212
name="%(act_open_wizard_product_set_add_from_order)d"
1313
icon="fa-cubes"
14-
attrs="{'invisible': [('state','not in',('draft','sent'))]}"
14+
invisible="state not in ('draft', 'sent')"
1515
groups="base.group_user"
1616
string="Add set"
1717
/>

sale_product_set/wizard/product_set_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _compute_product_set_line_ids(self):
5151
# Passed on creation
5252
continue
5353
lines = lines_from_ctx.filtered(
54-
lambda x: x.product_set_id == rec.product_set_id
54+
lambda x, rec=rec: x.product_set_id == rec.product_set_id
5555
)
5656
if lines:
5757
# Use the ones from ctx but make sure they belong to the same set.

sale_product_set/wizard/product_set_add.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<field
3232
name="product_id"
3333
options="{'no_open': True, 'no_create': True}"
34-
attrs="{'required': [('display_type', '=', False)]}"
34+
required="display_type == 'False'"
3535
/>
3636
<field name="display_type" />
3737
<field name="name" widget="section_and_note_text" />

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
odoo17-addon-product_set @ git+https://github.com/OCA/product-attribute@refs/pull/1493/head

0 commit comments

Comments
 (0)