[17.0][MIG] sale_product_set: Migration to 17.0#2886
Conversation
45d995c to
8c84448
Compare
|
/ocabot migration sale_product_set |
|
Code LGTM. The failed check needs to be resolved in order to properly test the functionality using the runboat. |
123995a to
42cf473
Compare
The test fails, because product_set is not merged yet and test-requirements is using this PR for it. I rebased it for rebuilding runboat. Feel free to check it |
MohamedOsman7
left a comment
There was a problem hiding this comment.
code & functional review LGTM
42cf473 to
4950f5f
Compare
* when a set is added to a sales order, it passes the unit of measure of the product to the sales order line. Fixes an incompatibility with module sale_margin.
…#543) * [imp] move SO `add set` button to smartbutton header * [fix] sale_product_set: PEP8
Currently translated at 100.0% (22 of 22 strings) Translation: sale-workflow-11.0/sale-workflow-11.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_product_set/es/
Currently translated at 36.1% (13 of 36 strings) Translation: sale-workflow-15.0/sale-workflow-15.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_product_set/it/
Currently translated at 58.3% (21 of 36 strings) Translation: sale-workflow-15.0/sale-workflow-15.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_product_set/sl/
CRogos
left a comment
There was a problem hiding this comment.
The above mentioned behavior is already in Odoo 16.
[UPD] Update sale_product_set.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/ Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/ Translated using Weblate (Spanish) Currently translated at 100.0% (23 of 23 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/es/ [UPD] README.rst
Translated using Weblate (Italian) Currently translated at 100.0% (23 of 23 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/it/ [UPD] Update sale_product_set.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/ Translated using Weblate (Italian) Currently translated at 100.0% (26 of 26 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/it/ Translated using Weblate (Spanish) Currently translated at 100.0% (26 of 26 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/es/
… product_set The reason to move this logic is that there are other modules that extend product_set as for example stock_product_set but at the same time make use of the transient model to define a wizard. For this reason it is better to have the logic available in product_set module and avoid duplicating code or inheriting from sale_product_set and what this implies in their respective dependencies with the only need to extend the transient model. In addition, the transient model is renamed to make it clearer to identify that it is this type of model. TT48100 [UPD] Update sale_product_set.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-16.0/sale-workflow-16.0-sale_product_set Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_product_set/
4950f5f to
f1c8549
Compare
you mean that the lines are not updating is still present in V16? i´ll have a look later on. Here it does now |
|
Yeah I like the idea. But I guess there will be be returning questions why this disappeared 😉 |
maybe, but when changing a major version there are also a lot other changes and the user is used to it. 😉 |
|
True 😉 |
e9fa920 to
ec851a8
Compare
pedrobaeza
left a comment
There was a problem hiding this comment.
You can't put the button as another option of adding lines in the one2many, as the way this is built doesn't allow to do that I'm afraid.
/ocabot merge nobump
|
This PR has the |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at fe16f12. Thanks a lot for contributing to OCA. ❤️ |


standard migration to 17.0