Server IP : 127.0.0.2 / Your IP : 3.141.164.124 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/web/doc/ |
Upload File : |
Notes on the usage of the Form View as a sub-widget =================================================== Undocumented stuff ------------------ * ``initial_mode`` *option* defines the starting mode of the form view, one of ``view`` and ``edit`` (?). Default value is ``view`` (non-editable form). * ``embedded_view`` *attribute* has to be set separately when providing a view directly, no option available for that usage. * View arch **must** contain node with ``@class="oe_form_container"``, otherwise everything will break without any info * Root element of view arch not being ``form`` may or may not work correctly, no idea. * Freeform views => ``@version="7.0"`` * Form is not entirely loaded (some widgets may not appear) unless ``on_record_loaded`` is called (or ``do_show``, which itself calls ``on_record_loaded``). * "Empty" form => ``on_button_new`` (...), or manually call ``default_get`` + ``on_record_loaded`` * Form fields default to width: 100%, padding, !important margin, can be reached via ``.oe_form_field`` * Form *will* render buttons and a pager, offers options to locate both outside of form itself (``$buttons`` and ``$pager``), providing empty jquery objects (``$()``) seems to stop displaying both but not sure if there are deleterious side-effects. Other options: * Pass in ``$(document.createDocumentFragment)`` to ensure it's a DOM-compatible tree completely outside of the actual DOM. * ??? * readonly fields probably don't have a background, beware if need of overlay * What is the difference between ``readonly`` and ``effective_readonly``? * No facilities for DOM events handling/delegations e.g. handling keyup/keydown/keypress from a form fields into the form's user. * Also no way to reverse from a DOM node (e.g. DOMEvent#target) back to a form view field easily