summaryrefslogtreecommitdiff
path: root/addons/website_google_map/controllers/__init__.py
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-04-27 09:09:47 +0200
committerGéry Debongnie <ged@odoo.com>2017-04-27 22:00:20 +0200
commit627da0503bae048a5ad9905a798d951a3be1a611 (patch)
tree26d0ac7304fd432f9b53a0160f45a1b58280f04f /addons/website_google_map/controllers/__init__.py
parentbac3eeb9e5ba156bb61b2c49eacb073331d31624 (diff)
[FIX] web: fix two issues when discarding records
This commit actually fixes a few problems: 1. the _visitChildren method in the basic model was not following the changes, only the data, so it was not correct (for example, the isDirty method was wrong for relational data, when no other change was done) 2. new records could not be discarded, because they had no data in their data key. What we do here is to add a savePoint, so it is safe to restore them (it caused a crash) 3. the save method was not properly following children when it was called with the option savePoint=true 4. when the user tried to discard a form view, in an action with only a form view, it was redirected to the previous url (via the history_back action), instead of simply discarding the current form view
Diffstat (limited to 'addons/website_google_map/controllers/__init__.py')
0 files changed, 0 insertions, 0 deletions