← Back to team overview

openerp-india team mailing list archive

[Bug 891592] Re: Context not passed to _constraints functions

 

Constraints should only depends on the actual data. If you call the
constraints multiple times on the same data it must always give the same
result and therefore cannot be influenced by context.

** Changed in: openobject-server
       Status: New => Invalid

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

Title:
  Context not passed to _constraints functions

Status in OpenERP Server:
  Invalid

Bug description:
  Hi,

  the context parameter is not passed to functions listed in the
  _constraints on the model.

  Note that a number of constraints functions (maybe all) in the base
  module do take the context argument.

  A common use case is where users are to be held to certain guidelines,
  while dirty data needs to be imported as is.

  Cheers,
  Stefan.

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


References