Skip to Content
Menú
This question has been flagged
2107 Vistes

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
Related Posts Respostes Vistes Activitat
2
de des. 23
14656
0
d’oct. 23
33
3
d’oct. 23
788
1
d’oct. 23
569
1
d’ag. 23
2405