← Back to team overview

openerp-india team mailing list archive

[Bug 1075915] Re: on orm _validate calling any constraint method without context param

 

Not only that.

There are a lot of validations where the validation of one field is
dependant on what is entered on other fields.  If the context were
passed, it would be possible to fill those fields in the write or create
methods.

Example: date_from must be less than or equal to date_to.

It would be even better if the contraint method would automatically
receive all values entered in an extra parameter.

-- 
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/1075915

Title:
  on orm _validate calling any constraint method without context param

Status in OpenERP Server:
  New

Bug description:
  Hello

  Please see osv/orm.py line 1447. _validate method calling constraint
  method without any context parameter.

  It's mostly seems okay. But some constraint method has raising
  exceptions (warning messages).

  If it doesn't pass context parameter then error messages cannot be
  translated ever.

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


References