[19.0] [MIG] sale_product_pack : migrate to 19.0 #225
@apik-mgu You need to add the reference to the PR for product_pack
https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29
@lef-adhoc I fixed the problem.
However, the Odoo and OCB tests no longer run, even though I don't have the same problem on my local development database.
Can you help me?
@apik-mgu
You must create the data in the test itself and not use the demo data
Documentation: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0
@lef-adhoc Is this new in v19?
This was allowed in previous versions, particularly v18.
@apik-mgu Yes, it's new in v19
LGTM functional review.
I think the mention in contributors is incorrect, it's only a migration.
@apik-mgu @pedrobaeza
/ocabot migration sale_product_pack
Some reviews are needed, and one must come from PSC / maintainer
Hello Pedro,
Could you clarify your request?
I don't quite understand what I'm supposed to do.
Thank you in advance for your reply.
Cordialement,
Michel GUIHENEUF
Consultant Odoo
02 57 62 02 56
@.
https://apik.cloud
Nautiparc 16 rue de l'île de la jument, 56870, Baden
________________________________
De : Pedro M. Baeza @.>
Envoyé : jeudi 6 novembre 2025 20:45
À : OCA/product-pack @.>
Cc : Michel GUIHENEUF @.>; Mention @.>
Objet : Re: [OCA/product-pack] [19.0] [MIG] sale_product_pack : migrate to 19.0 (PR #225)
[https://avatars.githubusercontent.com/u/7165771?s=20&v=4]pedrobaeza left a comment (OCA/product-pack#225)<https://github.com/OCA/product-pack/pull/225#issuecomment-3499118895>
/ocabot migration sale_product_pack
Some reviews are needed, and one must come from PSC / maintainer
—
Reply to this email directly, view it on GitHub<https://github.com/OCA/product-pack/pull/225#issuecomment-3499118895>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARBM22TJMZBM4JLZMA5XLNT33OQN7AVCNFSM6AAAAACJU4XKZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJZGEYTQOBZGU>.
You are receiving this because you were mentioned.Message ID: @.>
Sorry @apik-mgu you are not allowed to mark the addon to be migrated.
To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.
If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.
LGTM
@pedrobaeza Could you merge please?
This entry sounds weird
Incorrect indentation
Is this trick of new + onchange + convert vals still needed on this version?
Please don't put so specific details here in the test. A simple partner with a name is enough, and don't use real names.
Requested changes.
Yes, useful during our tests
@pedrobaeza
Correction made.
Have a good day.
What about this?
Well, I'm talking about removing the trick in this version.
Désolé mais je ne comprends pas ce que vous entendez réellement.
Merci
I agree with @pedrobaeza.
It seems this onchange was only called to trigger sale_line_warn_msg update.
This can be removed now as sale_line_warn_msg is computed field.
https://github.com/odoo/odoo/blob/06b9b1a67a94f5bdf28c6898a8f8678f55d98fb7/addons/sale/models/sale_order_line.py#L531
@apik-mgu can you pls remove it?
pre-approve considering changes requested
@yankinmax Modification effectuée
@pedrobaeza Hi, what would be required to merge this PR?
I mean this modification should be out.
Copy now may return a recordset, so this is not correct (this applies also to 18).
Cela a déjà été fait.
Cordialement,
Michel GUIHENEUF
Consultant Odoo
02 57 62 02 56
@.
https://apik.cloud
Nautiparc 16 rue de l'île de la jument, 56870, Baden
________________________________
De : Pedro M. Baeza @.>
Envoyé : jeudi 18 décembre 2025 08:19
À : OCA/product-pack @.>
Cc : Michel GUIHENEUF @.>; Mention @.>
Objet : Re: [OCA/product-pack] [19.0] [MIG] sale_product_pack : migrate to 19.0 (PR #225)
@pedrobaeza commented on this pull request.
________________________________
In sale_product_pack/pyproject.toml<https://github.com/OCA/product-pack/pull/225#discussion_r2629876711>:
@@ -1,3 +1,10 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
+
+[project]
I mean this modification should be out.
—
Reply to this email directly, view it on GitHub<https://github.com/OCA/product-pack/pull/225#discussion_r2629876711>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARBM22WYXCGIPY35WUPKDOT4CJIRJAVCNFSM6AAAAACJU4XKZ6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTKOJRGE2DSMJWGU>.
You are receiving this because you were mentioned.Message ID: @.>
J'ai fait une correction semblable à ce que fait Odoo.
Si cela n'est pas suffisant, pouvez-vous m'expliquer clairement ce que vous attendez comme correction.
Merci
Cordialement,
Michel GUIHENEUF
Consultant Odoo
02 57 62 02 56
@.
https://apik.cloud
Nautiparc 16 rue de l'île de la jument, 56870, Baden
________________________________
De : Pedro M. Baeza @.>
Envoyé : jeudi 18 décembre 2025 08:21
À : OCA/product-pack @.>
Cc : Michel GUIHENEUF @.>; Mention @.>
Objet : Re: [OCA/product-pack] [19.0] [MIG] sale_product_pack : migrate to 19.0 (PR #225)
@pedrobaeza commented on this pull request.
________________________________
In sale_product_pack/models/sale_order.py<https://github.com/OCA/product-pack/pull/225#discussion_r2629880967>:
@@ -0,0 +1,66 @@
+# Copyright 2019 Tecnativa - Ernesto Tejeda
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+from odoo import api, models
+from odoo.exceptions import UserError
+
+
+class SaleOrder(models.Model):
+ _inherit = "sale.order"
+
+ def copy(self, default=None):
Copy now may return a recordset, so this is not correct (this applies also to 18).
—
Reply to this email directly, view it on GitHub<https://github.com/OCA/product-pack/pull/225#pullrequestreview-3591154216>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARBM22VAQUTBN2H7UKKT4E34CJIXRAVCNFSM6AAAAACJU4XKZ6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTKOJRGE2TIMRRGY>.
You are receiving this because you were mentioned.Message ID: @.>
Please don't use other language except English. The change is not correct, as it's still comparing == self, being self probably a multi-record, so the code is not valid. Check also the rest of the comments.
Modification made
I think you can implement this in the new _get_copiable_order_lines hook now, and so it's filtered directly in the creation values provided by copy_data
I agree with @pedrobaeza , we should not modify the pyproject.toml
Any news on this migration? Is it planned to be released soon?
I make another pull request with the changes asked from @pedrobaeza and @ivantodorovich
lef-adhoc
apik-mgu
No description provided by author.