[19.0] [MIG] sale_product_pack : migrate to 19.0#225
[19.0] [MIG] sale_product_pack : migrate to 19.0#225
Conversation
[ADD] icon.png
add a Roadmap section to the readme for creating sale_stock_product_pack
If not done this way, we can experiment ORM problems with cache misses.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-pack-12.0/product-pack-12.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-sale_product_pack/
…ame place Previous technique was trying to access `pack_parent_line_id` related values that are not set due to the mangling on virtual records/creation phase, provoking an ORM error, but there's no need of such complex code, as we only need to set price_unit to 0 when preparing vals without the need of overriding other methods.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-pack-12.0/product-pack-12.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-sale_product_pack/
Translated using Weblate (Spanish) Currently translated at 86.7% (13 of 15 strings) Translation: product-pack-12.0/product-pack-12.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-sale_product_pack/es/
[UPD] Update sale_product_pack.pot sale_product_pack 12.0.1.0.2 Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-pack-12.0/product-pack-12.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-sale_product_pack/
It's helpfull to know directly if the sale order line is editable. If the sale order is edited from an api, onchange are not always triggered so having this field helps to raise an error. And it can be used to display in the view that the line is not editable.
[UPD] README.rst sale_product_pack 12.0.1.1.0 Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-pack-12.0/product-pack-12.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-sale_product_pack/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-pack-13.0/product-pack-13.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-13-0/product-pack-13-0-sale_product_pack/
Currently translated at 42.1% (8 of 19 strings) Translation: product-pack-13.0/product-pack-13.0-sale_product_pack Translate-URL: https://translation.odoo-community.org/projects/product-pack-13-0/product-pack-13-0-sale_product_pack/nl/
Compatibility module between sale_product_pack and website_sale TT30385
…onsistent prices in some cases. TT32539
1d36ece to
f1fdf43
Compare
|
LGTM functional review. |
|
/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)<#225 (comment)>
/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<#225 (comment)>, 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 |
|
@pedrobaeza Could you merge please? |
| requires = ["whool"] | ||
| build-backend = "whool.buildapi" | ||
|
|
||
| [project] |
There was a problem hiding this comment.
Désolé mais je ne comprends pas ce que vous entendez réellement.
Merci
There was a problem hiding this comment.
I mean this modification should be out.
There was a problem hiding this comment.
I agree with @pedrobaeza , we should not modify the pyproject.toml
f1fdf43 to
de527a1
Compare
|
@pedrobaeza |
yankinmax
left a comment
There was a problem hiding this comment.
pre-approve considering changes requested
de527a1 to
4889f06
Compare
|
@pedrobaeza Hi, what would be required to merge this PR? |
| class SaleOrder(models.Model): | ||
| _inherit = "sale.order" | ||
|
|
||
| def copy(self, default=None): |
There was a problem hiding this comment.
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<#225 (comment)>:
@@ -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<#225 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARBM22WYXCGIPY35WUPKDOT4CJIRJAVCNFSM6AAAAACJU4XKZ6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTKOJRGE2DSMJWGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
b4a5619 to
821c6b3
Compare
|
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<#225 (comment)>:
@@ -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<#225 (review)>, 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 |
821c6b3 to
1b614f5
Compare
|
Modification made |
| lambda x, order=record: x.pack_parent_line_id.order_id == order | ||
| ) | ||
| if pack_copied_lines: | ||
| pack_copied_lines.unlink() |
There was a problem hiding this comment.
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
|
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 see #244 |
No description provided.