<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/web/static/src/js/views/basic/widget_registry.js, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] web: reimplement custom widgets in basic views</title>
<updated>2017-09-13T12:04:34+00:00</updated>
<author>
<name>Géry Debongnie</name>
<email>ged@odoo.com</email>
</author>
<published>2017-09-13T09:48:02+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=93cf24f73ae79cdfd0346145d0b828ebd1ea07f9'/>
<id>93cf24f73ae79cdfd0346145d0b828ebd1ea07f9</id>
<content type='text'>
With the new views, we lost a (almost unused and undocumented) feature:
the ability to instantiate custom widgets in a form view, not linked to
a particular field.  For example:

&lt;widget type="weekly_timesheet" attrs="{'readonly': [['state', 'not in', ['new', 'draft']]]}"/&gt;

We reintroduce this feature in this commit, with a nice twist: it also
works for the list view and the kanban view.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the new views, we lost a (almost unused and undocumented) feature:
the ability to instantiate custom widgets in a form view, not linked to
a particular field.  For example:

&lt;widget type="weekly_timesheet" attrs="{'readonly': [['state', 'not in', ['new', 'draft']]]}"/&gt;

We reintroduce this feature in this commit, with a nice twist: it also
works for the list view and the kanban view.
</pre>
</div>
</content>
</entry>
</feed>
