← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 687536] Re: related field doesn't return all results with one2many field

 

Hello Tristan,

   I have checked the issue in 6.0 with latest revisions. fields.realted type="one2many" and "many2many" are having all the records of the related field. So it doesn't seem to be a real problem.
  It can be the case that when you're using a related reference from a one2many field then it will take the reference of the first record only.
  For e.g.
  Case 1 : Reference from O2M
    Sale Order -> Field-Sale Order Lines(O2M)
    Sale Order -> Field-Taxes(M2M related to Sale Order Lines)
  In the above case it will take all the taxes from the first sale order line.

  Case 2 : Reference from M2M
    Sale Order -> Field-Customer(M2O)
    Sale Order -> Field-Address(O2M related to Customer)
    Sale Order -> Field-Category(M2M related to Customer)
  In this case all the addresses and categories of the particular Customer will be there in the related O2M and M2M fields.

Thanks

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/687536

Title:
  related field doesn't return all results with one2many field

Status in OpenObject Server:
  Invalid

Bug description:
  The current related field implementation only follows the first item of one2many or many2many field if it is not the last specified field.  This can mean that not all expected items are returned.

Branch to be linked that follows all items in these fields if the related field type is set to one2many or many2many.





References