index.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Menus
  2. =====
  3. HTML Embed Forms
  4. ----------------
  5. Child of "Settings" menu, parent menu of all other eHTML menus
  6. Create Forms
  7. ------------
  8. Child of "HTML Embed Forms" menu, place to create HTML forms
  9. Inserted Form Data
  10. ------------------
  11. Child of "HTML Embed Forms" menu, history of all form submissions
  12. Models / Fields
  13. ===============
  14. ehtml.formgen(An individual Form)
  15. ---------------------------------
  16. Permissions
  17. ^^^^^^^^^^^
  18. **Administration / Settings (base.group_system)**: Read, Write, Create and Delete
  19. Fields
  20. ^^^^^^
  21. **Form Name (name)**: Human meaningful name for the form
  22. **Model (model_id)**: The model which the form is based around
  23. **HTML Fields (fields_ids)**: The list of Odoo fields in the HTML form
  24. **Embed Code (output_html)**: The output HTML designed to be copied and pasted into an external site
  25. **Required Fields (required_fields)**: Human readable list of fields that are required for that model
  26. **Default Values (defaults_values)**: List of fields and a corresponding default value which is set when the record is created
  27. **Return URL (return_url)**: After the form is submitted the user is redirected to this URL
  28. **Form Type (form_type)**: The format of the outputted HTML, Odoo or native
  29. ehtml.fieldentry(A field in the form)
  30. -------------------------------------
  31. Permissions
  32. ^^^^^^^^^^^
  33. **Administration / Settings (base.group_system)**: Read, Write, Create and Delete
  34. Fields
  35. ^^^^^^
  36. **Sequence (sequence)**: Drag and drop field order
  37. **HTML Form (html_id)**: ID pointing back to the HTML form
  38. **Model (model_id)**: The model ID of the field hidden from user sight
  39. **Related Model (model)**: The model name of the field hidden from user sight
  40. **Form Field (field_id)**: The Odoo field this form field inserts data into
  41. **Field Label (field_label)**: Human readable label for the field on the website
  42. **HTML Field Name (html_name)**: The HTML name of the field handy for autocomplete e.g auto fill email/mobile
  43. **HTML Field Type (html_field_type)**: The type of HTML input to use for this type of field
  44. ehtml.fielddefault (Stores the default values for each form)
  45. ------------------------------------------------------------
  46. Permissions
  47. ^^^^^^^^^^^
  48. **Administration / Settings (base.group_system)**: Read, Write, Create and Delete
  49. Fields
  50. ^^^^^^
  51. **HTML Form (html_id)**: ID pointing back to the HTML form
  52. **Model (model_id)**: Model ID, hidden from user
  53. **Model Name (model)**: Model Name, hidden from user
  54. **Form Fields (field_id)**: The Odoo field your settings a default value for
  55. **Default Value (default_value)**: The value that is set for this Odoo field when the record is inserted
  56. ehtml.history (Stores all inserted records)
  57. -------------------------------------------
  58. Permissions
  59. ^^^^^^^^^^^
  60. **Administration / Settings (base.group_system)**: Read
  61. Fields
  62. ^^^^^^
  63. **HTML Form (html_id)**: ID pointing back to the HTML form
  64. **Reference URL (ref_url)**: The URL this form waas submitted from
  65. **Record ID (record_id)**: The ID of the inserted record
  66. **Form Name (form_name)**: No Idea...
  67. **HTML Fields (insert_data)**: List of data that was inserted with this submission
  68. ehtml.fieldinsert (History of the field data that was inserted)
  69. ---------------------------------------------------------------
  70. Permissions
  71. ^^^^^^^^^^^
  72. **Administration / Settings (base.group_system)**: Read
  73. Fields
  74. ^^^^^^
  75. **HTML Form (html_id)**: ID pointing back to the HTML form history
  76. **Field (field_id)**: The field that data was inserted into
  77. **Insert Value (insert_value)**: The value inserted
  78. Security
  79. ========
  80. Administration / Settings (base.group_system)
  81. ---------------------------------------------
  82. **ehtml.formgen**: Read, Write, Create and Delete
  83. **ehtml.fieldentry**: Read, Write, Create and Delete
  84. **ehtml.fielddefault**: Read, Write, Create and Delete
  85. **ehtml.history**: Read
  86. **ehtml.fieldinsert**: Read