This question has been flagged

Hi, 

 I'm working on this view but odoo rised me the error that is on the title. and I don't know why. 

 how could I fix it? I have made lots of research and in all of them 'ir.model.fields' own the attribute 'formbuilder_whitelist'. 

 please help

​(using odoo 12)


<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="todo_app.model_todo_task" model="ir.model">
<field name="website_form_access">True</field>
<field name="website_form_label">Add a To-Do</field>
</record>
<record id="menu_todo" model="website.menu">
<field name="name">Todo</field>
<field name="url">/todos</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">50</field>
</record>
<function model="ir.model.fields" name="formbuilder_whitelist">
<value>todo.task</value>
<value eval="['name','user_id','date_deadline']"/>
</function>

</odoo>
Avatar
Discard
Best Answer

Please check if you depended on website and website_form in your __manifest__

Avatar
Discard

I know is an old question Lol, but someone else might need it.

With this recommendation, I was able to fix the error, thank you!