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

Hi all,


       I have inherited a new field to stock.move.line as a related field with product table.Even after setting "store=True", the field have no values in the DB.When i removed the "store=True" field, data displayed on screen.But still no data for the field in DB.Any suggestions??



class StockMoveLineInherit(models.Model):


    _inherit = "stock.move.line"


    material_type = fields.Char(string="Material Type", related='product_id.quality_parameter_type', store=True)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
2526
1
thg 6 24
5005
1
thg 10 23
10689
1
thg 10 23
98
1
thg 8 23
2193