diff options
| author | Jérémy Hennecart <jeh@odoo.com> | 2020-08-27 06:55:31 +0000 |
|---|---|---|
| committer | Jérémy Hennecart <jeh@odoo.com> | 2020-08-31 14:16:31 +0000 |
| commit | acbc97bfe290ef3c7b8f7a1160266e49485099ae (patch) | |
| tree | 3e597b63a35b79f123cbe58a0010cfce32dd6d37 /addons/website_google_map | |
| parent | b1efd7965a3b185b95bd30beca3d1b7f08165c8a (diff) | |
[FIX] website_crm: fix compute on default
Now, compute's methods are executed on default, which leads to a crash
when these methods try to use the actual records but there isn't one
yet (e.g. at the creation of a record).
- Fix the traceback raised when creating a lead because of the
visitor_page_count method when self.ids is empty on default compute.
- Since the default_get() and the first_onchange() are also now combined,
we need to adapt the syntax of the default get for the field opportunity_ids,
replacing the array of ids by the command syntax '[(6, 0, ids)]'.
task-2325629
Diffstat (limited to 'addons/website_google_map')
0 files changed, 0 insertions, 0 deletions
