← Back to team overview

openerp-india team mailing list archive

[Bug 1088379] [NEW] [7.0] Cannot create a char/text field with 'infinite' size

 

Public bug reported:

Hi,

In the version 7, the 'size' attribute on the char fields are supposed
to be used only if the size must be limited, otherwise, their size is
unlimited (constrained to postgresql limits).

If I want to create a new char field from the OpenERP web client, the
size is mandatory. It should not.

If I want to create a new char field from python, with a 'create' in
self.pool.get('ir.model.fields'), and put 'False' in the 'size'
attribute, the size_gt_zero constraint will be raised.

A related bug: https://bugs.launchpad.net/openobject-server/+bug/1053511
But I'm not totally sure, sorry if I double-report.

Thanks

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1088379

Title:
  [7.0] Cannot create a char/text field with 'infinite' size

Status in OpenERP Server:
  New

Bug description:
  Hi,

  In the version 7, the 'size' attribute on the char fields are supposed
  to be used only if the size must be limited, otherwise, their size is
  unlimited (constrained to postgresql limits).

  If I want to create a new char field from the OpenERP web client, the
  size is mandatory. It should not.

  If I want to create a new char field from python, with a 'create' in
  self.pool.get('ir.model.fields'), and put 'False' in the 'size'
  attribute, the size_gt_zero constraint will be raised.

  A related bug: https://bugs.launchpad.net/openobject-server/+bug/1053511
  But I'm not totally sure, sorry if I double-report.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1088379/+subscriptions


Follow ups

References