Invalid composed field farm_materials.category_id in domain of ([('categ_id', '=', farm_materials.category_id)])
ValueError: Invalid composed field materials.category_id in domain of ([('categ_id', '=', materials.category_id)])
No Not that way.
you have to use the "parent" key on a right side of the domain. Not 'farm_materials' or 'materials'.
please take the reference from here :