跳至内容
菜单
此问题已终结
2634 查看

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)

形象
丢弃
相关帖文 回复 查看 活动
2
7月 24
2555
1
6月 24
5020
1
10月 23
10702
1
10月 23
98
1
8月 23
2193