Skip to Content
Menu
This question has been flagged
1 Reply
2512 Views

Is there any way to put into website template Selection field (fields.Selecton) of some model or dropdown selection of some model records ?

Avatar
Discard
Author Best Answer

It is turned out that you can add field using editor. Also all fields is in black list for website posting by default. To remove it from blacklist you will need to do stuff like this:

<function model="ir.model.fields" name="formbuilder_whitelist">
            <value>crm.lead</value>
            <value eval="[
                'contact_name',
                'description',
                'email_from',
                'name',
                'partner_name',
                'phone',
            ]"/>
        </function>
Avatar
Discard