summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/form_relational_widgets.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-10-17 11:28:02 +0200
committerJeremy Kersten <jke@odoo.com>2016-10-17 17:32:42 +0200
commit74e1d6940da7b5f0cc8fe4b2ba60d0bb81990ba5 (patch)
treef786b7e36afcb3784181f6b262e6b7ae2546840c /addons/web/static/src/js/views/form_relational_widgets.js
parent5da0ae9b0498e829744487e72d870639b021729f (diff)
[FIX] website_blog: fix depends for post_date
Before this commit, create a blog post since the backend raise an error because the post_date is False. It should never arrive, since it is a compute field that is the publish date or fallback on the create_date. But because set post_date, change the published_date, the depend from publish date cannot be triggered again since it change the post_date. So _set_post_date don't trigger _compute_post_date. And call it manually will make 'max recursion depth python'. The 'hack' to update publish date, without retrigger the _compute_post_date and set post_date manually, is to use the _write method that don't trigger all depends fields. Courtesy of @rco-odoo This commit closes #13829
Diffstat (limited to 'addons/web/static/src/js/views/form_relational_widgets.js')
0 files changed, 0 insertions, 0 deletions