odoo field 设置匿名函数domain

网友投稿 839 2022-10-24

odoo field 设置匿名函数domain

odoo field 设置匿名函数domain

示例如下:

transfer_account_id = fields.Many2one('account.account', domain=lambda self: [('reconcile', '=', True), ('user_type_id.id', '=', self.env.ref('account.data_account_type_current_assets').id), ('deprecated', '=', False)], string="Inter-Banks Transfer Account", help="Intermediary account used when moving money from a liquidity account to another")

懂得,原来世界如此简单!

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:一个Android项目级快速开发框架
下一篇:fuel-机器学习的数据管道框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~