diff options
| author | Damien Bouvy <dbo@odoo.com> | 2020-01-20 09:18:00 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2020-01-21 10:00:55 +0000 |
| commit | 2f900d4f1ca74c49a7a3db8d2c024c0d79ce662f (patch) | |
| tree | fc7a246bea118979d19f551c8ff34265cd632395 /addons | |
| parent | e3ad9c8976293220e6ebfc6c7028cffb5dc8ae23 (diff) | |
[FIX] account, base: Creating contacts from their parent or setting their parent
Bug in 13.0 regarding company_id field of partners when creating them from
their parent contact or when setting their parent.
The field 'company_id' of res.partner is set by an onchange on 'parent_id'
to that of it's parent; unfortunately the field is readonly if parent_id
is set and not set to force_save.
Furthermore, creating a child partner from the main one (in the 'Contact'
tab of the main partner form view) does not follow the same behaviour
(company_id is unset in that case, meaning that children don't have
the same company as their parent).
Since the company_id is already set by an onchange when we change 'parent_id'
and set to readonly in that case, I assume the expected behaviour is actually
that children partners should have the same company as their parent by default.
Fine tuning of 7b49f5836c0f4a491631d27acb74ddd0106c86b1
opw:2176384,2167106
closes odoo/odoo#43621
X-original-commit: 92737f21acf9b044df99e111fceffc08e05abe65
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions
