コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2111 ビュー

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?

アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 23
14657
0
10月 23
33
3
10月 23
788
1
10月 23
569
1
8月 23
2405