Comment 13 for bug 1013636

Revision history for this message
Lorenzo Battistini (elbati) wrote : Re: [Bug 1013636] Re: [6.1, trunk] One2many widget does not honour being 'required'

On 07/21/2012 01:53 PM, Antony Lesuisse (OpenERP) wrote:
> This is a feature request according to our policy. And yet, not a very
> useful one, as in most case, you want users to be able to save draft
> versions of a document without lines. If you really need this behaviour
> you may override write().

Hello Antony,
particular behaviors can be certainly handled by write method. These
will be implementation choices.
But if developer sets the field to be *required=True* (as per Stefan's
example of *ir.model* model: *'field_id':
fields.one2many('ir.model.fields', 'model_id', 'Fields', required=True)*
), why should the user be able to create a model without fields?

--
Lorenzo Battistini