Thanks for reporting !

it has been improved at lp:~openerp-dev/openobject-server/trunk-
bug-789576-nch

regards,

** Changed in: openobject-server
       Status: In Progress => Fix Committed

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

Title:
  fields.related override: store function persists

Status in OpenERP Server:
  Fix Committed

Bug description:
  Hi,

  when a fields.related is overridden by a regular field, the store
  function is not removed. Values assigned to the field by the users of
  the system get overwritten immediately by the store function of the
  original field definition.

  Here is an example from the HR module:

  'parent_id': fields.related('department_id', 'manager_id',
  relation='hr.employee', string='Manager', type='many2one', store=True,
  select=True, readonly=True, help="It is linked with manager of
  Department"),

  We want to override this definition with
  "fields.many2one('hr.employee', 'Manager')", but any write on this
  field triggers a recalculation based on the related field.

  The problem is in orm.__init__() where the list of a model's store
  functions is populated but never purged.

  Reproducable with openerp-server/6.0 rev. 3435.

  Cheers,
  Stefan.

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to