diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-01-07 13:37:34 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-01-07 14:45:48 +0000 |
| commit | 7943b71af39bdd5eeae2dcf84c8faf8aa56a2232 (patch) | |
| tree | 428e7cef0985418ce5ad7d2960963707bd31bee7 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | e582500c4bd316711d55948d0cb820bd7f71d34a (diff) | |
[FIX] base(_address_extended): correctly update company street information at write
Currently when writing on street field of company model, its sub-fields
(notably street_name, street_number and street_number2) are not correctly
computed again in cache.
Indeed address sub fields have no direct trigger as it depends on its
partner_id and its partner_id children (see ``res_partner.address_get()`` and
``res_company._compute_address()``).
When writing on address fields from the company record, we then invalidate
all address fields cache in order to force their computation.
This commit adds a new tool method giving the list of fields coming from the
address partner to copy upon the company.
Task ID 2158302
PR #42678
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
