Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3096 Vistas

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.

Avatar
Descartar
Mejor respuesta

Try to inherit the product model or use delegation.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
abr 18
5228
2
may 25
3797
0
nov 24
1087
1
ago 24
1829
4
jun 24
7735