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

[16.0] [MIG] agreement_serviceprofile: Migration to 16.0 #37

Open
wants to merge 34 commits into
base: 16.0
Choose a base branch
from

Conversation

luisDIXMIT
Copy link

Standard migration.

@etobella

murtuzasaleh and others added 30 commits July 10, 2024 11:33
[UPD] README.rst

[UPD] Update agreement_serviceprofile.pot

Added translation using Weblate (French)

Translated using Weblate (French)

Currently translated at 100.0% (14 of 14 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/fr/
[IMP] Flake8

[IMP] github changes

[IMP] Placeholder in notes remove <p><br></p>

[UPD] Update agreement_serviceprofile.pot

Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/

[UPD] README.rst
- Add stage_type to agreement.stage
- Track stage of service profile
- Add Kanban view for service profiles to the dashboard
- Add product_id field to service profile

[UPD] Update agreement_serviceprofile.pot

[UPD] README.rst

Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/
[UPD] README.rst

[UPD] Update agreement_serviceprofile.pot

Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/

Added translation using Weblate (Chinese (Simplified))

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (23 of 23 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/zh_CN/
[UPD] Update agreement_serviceprofile.pot

Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/

Translated using Weblate (French)

Currently translated at 100.0% (27 of 27 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/fr/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (27 of 27 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/zh_CN/
[UPD] Update agreement_serviceprofile.pot

Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/zh_CN/

Added translation using Weblate (Portuguese (Brazil))

Added translation using Weblate (German)

Added translation using Weblate (Spanish)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/pt_BR/
Added translation using Weblate (Portuguese)

Translated using Weblate (Portuguese)

Currently translated at 91.7% (44 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/pt/

Translated using Weblate (Portuguese)

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/pt/
[UPD] README.rst

[UPD] README.rst

Translated using Weblate (Spanish)

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/es/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/pt_BR/

Translated using Weblate (Spanish)

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/es/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/pt_BR/

Translated using Weblate (French)

Currently translated at 56.2% (27 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/fr/
[IMP] Allow Product Variant Serviceprofile

[IMP] Add Variant To Tree/Form View

[IMP] Boolean First
Co-authored-by: Bhavesh Odedra <[email protected]>

Translated using Weblate (French)

Currently translated at 100.0% (48 of 48 strings)

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/fr/

[UPD] Update agreement_serviceprofile.pot
Update translation files

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

Translation: contract-12.0/contract-12.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/
Currently translated at 100.0% (52 of 52 strings)

Translation: contract-14.0/contract-14.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_serviceprofile/es_AR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_serviceprofile/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_serviceprofile/
Ivorra78 and others added 3 commits July 10, 2024 11:33
Currently translated at 100.0% (51 of 51 strings)

Translation: contract-14.0/contract-14.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_serviceprofile/es/
Currently translated at 100.0% (51 of 51 strings)

Translation: contract-14.0/contract-14.0-agreement_serviceprofile
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_serviceprofile/pt_BR/
@luisDIXMIT luisDIXMIT force-pushed the 16.0-mig-agreement_serviceprofile branch from 266685e to ee6641a Compare July 10, 2024 14:37
@rousseldenis
Copy link
Sponsor Contributor

/ocabot migration agreement_serviceprofile

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Oct 1, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 1, 2024
7 tasks
)

@api.onchange("is_serviceprofile")
def onchange_type(self):
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

type field is computed, so use the compute method instead.

Copy link
Author

Choose a reason for hiding this comment

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

I understand your point, but since in version 16 the _compute_type method makes use of the _detailed_type_mapping method, I have decided to change the behavior so that the detailed_type is set to serviceprofile instead of marking a checkbox indicating it is serviceprofile. This way, the _compute_type method will assign the correct type. WDYT?

Copy link
Author

Choose a reason for hiding this comment

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

)

@api.onchange("is_serviceprofile")
def onchange_type(self):
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Same as above

@luisDIXMIT luisDIXMIT force-pushed the 16.0-mig-agreement_serviceprofile branch 5 times, most recently from 4778f55 to 70108e8 Compare October 3, 2024 11:23
@luisDIXMIT luisDIXMIT force-pushed the 16.0-mig-agreement_serviceprofile branch from 70108e8 to 3ec4d3b Compare October 3, 2024 11:31
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.