Skip to Content
Menu
This question has been flagged
2129 Rodiniai

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?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 23
14672
0
spal. 23
33
3
spal. 23
788
1
spal. 23
569
1
rugp. 23
2417