vous pouvez utiliser ce formulaire de documentation Odoo: Odoo documentation
champ One2Many; la valeur d'un tel champ est le jeu d'enregistrements de tous les enregistrements dans comodel_name de telle sorte que le champ inverse_name est égal à l'enregistrement en cours. vous pouvez utiliser ces paramètres:
comodel_name -- name of the target model (string)
inverse_name -- name of the inverse Many2one field in comodel_name (string)
domain -- an optional domain to set on candidate values on the client side (domain or string)
context -- an optional context to use on the client side when handling that field (dictionary)
auto_join -- whether JOINs are generated upon search through that field (boolean, by default False)
limit -- optional limit to use upon read (integer)
si vous avez besoin Toa utiliser domaine comme celui-ci:
field.One2many(comodel_name="model_name", inverse_name="inverse_field_name", string=None, domain=[('filed_name_in_comodel', 'operators', 'Value')])