我的意思是;
名称为&#34的模型; stock.return.picking"有" location_id"领域。
当我点击返回按钮时,我想查看所有location_id。但是location_id有域名:
location_id = fields.Many2one(
comodel_name='stock.location',
string='Return Location',
domain="['|', ('id', '=', original_location_id),'&', ('return_location', '=', True), ('id', 'child_of', parent_location_id)]"
)
如何更改此域名?
答案 0 :(得分:4)
您必须重新定义var coordinatesArr = JSON.parse('#{yourBean.strProperty}');
字段,继承自location_id
模型。你可以这样做:
stock.return.picking