← Back to team overview

openerp-india team mailing list archive

[Bug 1119140] [NEW] Domains don't work with related O2M.

 

Public bug reported:

If apply the domain to related field with type O2M, then it don't work!
For example:

'picking_id': fields.many2one('stock.picking', 'Picking List', readonly=True, ondelete="restrict",
            help="This is the Internal Picking List that brings the finished product to the production plan"),
'available_product': fields.related('picking_id', 'move_lines', type='one2many', relation="stock.move", string='Available Products',
            domain=[('state','in', ('assigned'))], readonly=True),

Field 'available_product' will show all product moves, but expected only
with 'state=assigned'.

** 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/1119140

Title:
  Domains don't work with related O2M.

Status in OpenERP Server:
  New

Bug description:
  If apply the domain to related field with type O2M, then it don't work!
  For example:

  'picking_id': fields.many2one('stock.picking', 'Picking List', readonly=True, ondelete="restrict",
              help="This is the Internal Picking List that brings the finished product to the production plan"),
  'available_product': fields.related('picking_id', 'move_lines', type='one2many', relation="stock.move", string='Available Products',
              domain=[('state','in', ('assigned'))], readonly=True),

  Field 'available_product' will show all product moves, but expected
  only with 'state=assigned'.

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


Follow ups

References