Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] sale_commercial_partner: Migration to 18.0 #3415

Closed

Conversation

BertVGroenendael
Copy link

No description provided.

alexis-via and others added 30 commits November 20, 2024 08:56
…, sale_order_import_ubl, sale_order_import_csv, sale_order_ubl, sale_commercial_partner
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
[UPD] Update sale_commercial_partner.pot
[UPD] README.rst

[UPD] Update sale_commercial_partner.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_commercial_partner/

[UPD] README.rst
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_commercial_partner/zh_CN/
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_commercial_partner/pt_BR/
[UPD] Update sale_commercial_partner.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner/
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner/es/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_commercial_partner/
[UPD] Update sale_commercial_partner.pot
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_commercial_partner/nl/
Currently translated at 100.0% (5 of 5 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_commercial_partner/ca/
Currently translated at 40.0% (2 of 5 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_commercial_partner/fr_FR/
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_commercial_partner/fr/
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_commercial_partner/de/
Currently translated at 100.0% (2 of 2 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_commercial_partner/es_MX/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_commercial_partner
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_commercial_partner/
@BertVGroenendael BertVGroenendael force-pushed the 18.0-mig-sale_commercial_partner branch 2 times, most recently from 2ed36c7 to b691c55 Compare November 20, 2024 08:42
@BertVGroenendael BertVGroenendael force-pushed the 18.0-mig-sale_commercial_partner branch from b691c55 to 6e0dad0 Compare November 20, 2024 08:54
@BertVGroenendael BertVGroenendael mentioned this pull request Nov 20, 2024
61 tasks
@LucasTran380381
Copy link

LucasTran380381 commented Dec 2, 2024

Pls squash odoo bot commit



class TestSaleCommercialPartner(common.TransactionCase):
def setUp(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test! Can you refactor to use @classmethod setUpClass(cls)?

<field name="commercial_partner_id" invisible="1" />
</field>
</field>
</record>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommend to removed ( not need to add invisible field)

This comment was marked as outdated.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In odoo18, domain field will automatically added invisible field that mean no need to declared invisible field to use it in domain

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for clarifying! I tested this successfully, using the field in domain and invisible attributes. Found the implementation in odoo/odoo#137031. I'll add it to the OCA's 18.0 migration guidelines.

Just curious, do you know if this is documented anywhere?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No documentation, recommend dev using odoo-module-migrator and follow guidelines.

@rousseldenis
Copy link
Contributor

/ocabot migration sale_commercial_partner

@rousseldenis
Copy link
Contributor

@BertVGroenendael Could you attend @StefanRijnhart comment ?

@LucasTran380381
Copy link

LucasTran380381 commented Dec 16, 2024

Since this PR has been inactive for 2 weeks, I've started working on related PRs based on this approach
#3504 @rousseldenis @StefanRijnhart

@StefanRijnhart
Copy link
Member

Closing in favor of #3504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.