I have this model :
class Consumption(models.Model):
_name = 'billing.consumption'
client = fields.Many2one(comodel_name='res.partner')
duration = fields.Integer()
price = fields.Float()
total = fields.Float()
and I want create a product for each consumption.