diff options
| author | Jigar Patel <jat@openerp.com> | 2019-04-19 07:16:59 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2019-04-19 10:39:16 +0000 |
| commit | 6404233bb090c808a9bb211d85cdcdab1d0d2092 (patch) | |
| tree | 30518fb0aeca08e6eb040cbf68d49ccbd5529e38 /addons/website_form/models/models.py | |
| parent | e834de3d1070654968be8ebc22175aae6e1cdc68 (diff) | |
[IMP] wesbite_form: add mechanism to allow default atttibutes to form
That way, it is possible to add the template, fields and success page to
different type of form.
Next commits will use what has been done in this commit.
task-32212
Diffstat (limited to 'addons/website_form/models/models.py')
| -rw-r--r-- | addons/website_form/models/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_form/models/models.py b/addons/website_form/models/models.py index 1256ac4935c..d4ad5c7d401 100644 --- a/addons/website_form/models/models.py +++ b/addons/website_form/models/models.py @@ -29,6 +29,7 @@ class website_form_model(models.Model): website_form_access = fields.Boolean('Allowed to use in forms', help='Enable the form builder feature for this model.') website_form_default_field_id = fields.Many2one('ir.model.fields', 'Field for custom form data', domain="[('model', '=', model), ('ttype', '=', 'text')]", help="Specify the field which will contain meta and custom form fields datas.") website_form_label = fields.Char("Label for form action", help="Form action label. Ex: crm.lead could be 'Send an e-mail' and project.issue could be 'Create an Issue'.") + website_form_key = fields.Char(help='Used in FormBuilder Registry') def _get_form_writable_fields(self): """ |
