Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2148 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 23
14701
0
thg 10 23
33
3
thg 10 23
788
1
thg 10 23
569
1
thg 8 23
2440