Odoo中文网|Odoo实施培训

 找回密码
 立即注册
搜索
热搜: Odoo OpenERP 实施
查看: 7370|回复: 0
打印 上一主题 下一主题

t-if 渲染条件

[复制链接]

68

主题

96

帖子

456

积分

中级会员

Rank: 3Rank: 3

积分
456
跳转到指定楼层
楼主
发表于 2018-7-23 17:07:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
需要实现的功能:
选择哪一个选项,哪个选项的框变成黑色
代码如下:
<p>入岗方式:<t t-if="o.entry_way == 'official'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'official'">□</t> 正式职工     <t t-if="o.entry_way == 'intern'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'intern'">□</t> 实习生</p>
<p>                  <t t-if="o.entry_way == 'other'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'other'">□</t> 其他(请说明)<font style="text-decoration:underline"><span t-field="o.other_explain"/></font></p>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|技术支持|开发手册|Odoo中文网-远鼎旗下odoo培训网站 ( 苏ICP备15039516号 )

GMT+8, 2024-5-7 02:12 , Processed in 0.011631 second(s), 10 queries , Xcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表