Ir al contenido
Menú
Se marcó esta pregunta
2115 Vistas

Hi,

I have a price_bruto field and want to freeze it when the invoice is  != draft


class AccountInvoiceLine(models.Model):

    _inherit = "account.invoice.line"


    price_bruto = fields.Float(related='product_id.price_bruto', string="Price bruto", store=True)


Is it posible?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 23
14663
0
oct 23
33
3
oct 23
788
1
oct 23
569
1
ago 23
2406