Skip to Content
Menu
This question has been flagged

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
Discard
Related Posts Replies Views Activity
2
Dec 23
12010
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
982