Ir al contenido
Menú
Se marcó esta pregunta

Original Code:

class name= "product.template"

currency_id = fields.Many2one(
        'res.currency', 'Currency', compute='_compute_currency_id')

I just want to inherit currency_id from product_template class. You can see from the picture.

class product_price_currency(models.Model):
        _inherit = 'product.template'
        
    currency_id = fields.Many2one('res.currency', 'Currency', required=True)

as you see i just deleted compute function and it should work fine without calling compute function but it does not work. still call compute function. I could not find where is the problem. I hope someone can help me.

Thank you.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 24
40803
1
nov 23
10064
2
ene 23
9258
1
may 20
3534
2
jul 19
5872