As coordinates in partner are float, they are affected by the rounding problem we
all know, so sometimes (depending on the Python interpreter used) the generated URL
contains extra digits. Example:
39.158370000000005 instead of 39.15837
so with this change on the test, we make it resilient to this problem.
Backport from v13
- Remove stuff related to `active_lang_count`, which doesn't exist in v12.
- Properly pass parent lang to children. Workaround https://github.com/odoo/odoo/issues/53738.
@Tecnativa TT24503
===========================
Manage language in contacts
===========================
Odoo by default propagate language field to the created contacts from their
form, but it doesn't allow to change it once created.
This module fills this gap, and also provides other facilities for the
contact language management:
* Put the language of the parent company when the contact doesn't have a
language and this parent company is assigned.
* When the company changes the language, it fills with the same language all
the contacts that don't have any.
Usage
=====
Go to any partner that is a company and has contacts. Click on one contact
and you will be able to edit the language.
This module extends the functionality of the partners form
and to allow you to click on a button and open the full contact form
while watching a company form.
@Tecnativa TT24492 TT24498
Two cases are not covered:
- If the partner with duplicated VAT is inactive
- If there are specific contact record rules that hides some of the results for
that user.
We cover both with this modification.
portal's tests set an invalid email address, `c@c`, that's rejected
by the current version of partner_email_check. If partner_email_check
is installed before portal's tests run then they fail.
To solve this, skip email validation if tests are running, unless a
key in the context is set to make the checks run anyway. That lets
tests in other addons opt in to the checks as well.
The previous update to partner_email_check didn't bump the version
number, so do that now.
- partner_email_check now uses email-validator instead of
validate_email
- Email addresses are normalized
- There is a setting to enforce uniqueness of partner email addresses
- There is a setting to check whether emails are
deliverable (i.e. whether the domain resolves)