summaryrefslogtreecommitdiff
path: root/doc/reference/javascript.rst
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-08-19 21:52:37 +0200
committerSimon Lejeune <sle@openerp.com>2016-08-22 15:19:05 +0200
commite9b649b555ac772ad68e4d069266627cca65252f (patch)
tree25a0e55cb6cfa2a892dae7b3d9281da631bd702f /doc/reference/javascript.rst
parent4407dad1747673e3d8e4a758c93f5a0d4928d756 (diff)
[FIX] website, website_slides: slug of a non-existing record
When you execute the slug method on a virtual record (not yet saved, virtualid/newid) the slugs obviously fails as it needs an id and a display_name. This issue happens when there's a depends on a function field using the slug method: just after the create and during the onchanges, they'll raise. This patch makes the slug method returns None in these case, anyway the depends are re-triggered after the write and at this time they have an id and everything is working fine.
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions