Skip to content

[20.0][MIG] mail_environment: Migration to 20.0 - #310

Open
rven wants to merge 54 commits into
OCA:20.0from
DynAppsNV:20.0-mig-mail_environment
Open

rven wants to merge 54 commits into
OCA:20.0from
DynAppsNV:20.0-mig-mail_environment

Conversation

@rven

@rven rven commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Standard migration to 20.0, no functional change. Depends on #307.

Changes reviewed and tested by me.

Assisted-by: Claude Opus 5.5

jgrandguillaume and others added 30 commits October 5, 2026 11:35
* Move mail_environment in root folder
* Use absolute imports for openerp and new Model classes
* Use cr argument instead of cursor, propagate context
* Update fields, remove deprecated 'method' argument, change 'states'
  otherwise the fields are not readonly (seems that the 'states' of the
  original field is kept.
* Activate the installable flag
* Indentation of the view with 2 spaces
* Remove only the attrs attribute instead of redefining the whole field
* pep8
* crm is not a dependency for mail_environment
* Fix typo in manifest
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
rename *_xml entries in manifest
[MIG] Rename manifest files
Currently translated at 100.0% (6 of 6 strings)

Translation: server-env-12.0/server-env-12.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-12-0/server-env-12-0-mail_environment/pt_BR/
StefanRijnhart and others added 21 commits October 5, 2026 11:35
Fixes

```
while parsing /home/odoo/16.0/addons/mail/views/fetchmail_views.xml:88
Error while validating view near:

                    <separator/>
                    <filter string="SSL" name="ssl" domain="[('is_ssl', '=', True)]" help="If SSL required."/>
                    <separator/>
                    <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
                </search>
Unsearchable field 'is_ssl' in path 'is_ssl' in domain of <filter name="ssl"> ([('is_ssl', '=', True)]))
```

While upgrading --all on a setup with mail_environment installed.
Currently translated at 100.0% (6 of 6 strings)

Translation: server-env-16.0/server-env-16.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-mail_environment/es/
Currently translated at 100.0% (6 of 6 strings)

Translation: server-env-17.0/server-env-17.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-mail_environment/it/
Currently translated at 100.0% (6 of 6 strings)

Translation: server-env-18.0/server-env-18.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-mail_environment/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-18.0/server-env-18.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-mail_environment/
Currently translated at 100.0% (8 of 8 strings)

Translation: server-env-18.0/server-env-18.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-mail_environment/it/
Currently translated at 62.5% (5 of 8 strings)

Translation: server-env-18.0/server-env-18.0-mail_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-mail_environment/fr/
…r.mail_server` model

This field is used to choose the authentication method, and used by core modules
`google_gmail` and `microsoft_outlook`, for example, to define their own
authentication methods.
…cation"

To preserve the value of field "smtp_authentication" if we don't set it from
the environment.
Which may happen to anyone updating the sources of mail_environment for its project.
@OCA-git-bot OCA-git-bot added mod:mail_environment Module mail_environment series:20.0 labels Oct 5, 2026
@rven rven mentioned this pull request Oct 5, 2026
3 tasks
@rven
rven force-pushed the 20.0-mig-mail_environment branch from 8901dc1 to 62245d4 Compare October 5, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.