Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2119 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 23
14664
0
říj 23
33
3
říj 23
788
1
říj 23
569
1
srp 23
2406