odoo 形式的动态 URL
Dynamic URL in odoo form
如何在 odoo formview
中创建动态 link
例如
静态文本=http://maps.chef-debiscuit.com/map.php?sheetID=
动态文本 = 记录 ID
(解决方案)http://maps.chef-debiscuit.com/map.php?sheetID=32
目前我只有
<a href="http://maps.chef-debiscuit.com/map.php?sheetID=" target="_blank">View on Map</a>
0) 创建新的计算字段 x_url
1) 复制 ID -> 字段 x_copy_id
2) 将x_copy_id转换为字符串
3) 将静态文本与 IDCOPY 合并
for record in self:
IDCOPY = str(record['x_copy_id'])
record['x_url']='http:///maps.chef-debiscuit.com/map.php?sheetID='+IDCOPY
如何在 odoo formview
中创建动态 link例如 静态文本=http://maps.chef-debiscuit.com/map.php?sheetID=
动态文本 = 记录 ID
(解决方案)http://maps.chef-debiscuit.com/map.php?sheetID=32
目前我只有
<a href="http://maps.chef-debiscuit.com/map.php?sheetID=" target="_blank">View on Map</a>
0) 创建新的计算字段 x_url
1) 复制 ID -> 字段 x_copy_id
2) 将x_copy_id转换为字符串
3) 将静态文本与 IDCOPY 合并
for record in self:
IDCOPY = str(record['x_copy_id'])
record['x_url']='http:///maps.chef-debiscuit.com/map.php?sheetID='+IDCOPY