odoo 中%()d的使用

时间:2020-02-11 10:17:07   收藏:0   阅读:115

例如:

源代码中是这样写的

                        <button
                            name="%(hospital_management.action_medical_appointments_invoice_wizard)d"
                            string="Create Invoice" type="action" class="oe_highlight" />

经过odoo 编译之后:

                        <button
                            name="318"
                            string="Create Invoice" type="action" class="oe_highlight" />

也就是说会将动作的外部id名称转换为外部id的id

原文:https://www.cnblogs.com/qianxunman/p/12293623.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!