===========================
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.
- fax field removed from res.partner
- 2to3 on all py files
- add contributor and update README
- use hasclass in place of @class in xpath expr
- improve tests
[FIX] typo and clean README
not firstname
before this commit the following error happen:
name = 'Van-Eyck Jan'
this was converted to
firstname = False
lastname= 'Van-Eyck'
lastname2 = 'Jan'
and it should be like
firstname = 'Jan'
lastname= 'Van-Eyck'
lastname2 = False
Description of the issue/feature this PR addresses:
firstname, lastname and lastname2 fields should only be required if
contact `type` is `contact`. In partner_firstname module this is done
right with `('type', '=', 'contact')` leave in attrs required domain.
But in partner_second_last_name there is no such leave, so if the
contact is an address, the fields are mandatory too.
Current behavior:
Either firstname, lastname or lastname2 are mandatory when a contact is
not a company.
Desired behavior after PR is merged:
firstname, lastname or lastname2 are mandatory when the contact is of
type `contact`