odoo 中%()d的使用

例如:

源代码中是这样写的

                        <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

posted @ 2020-02-11 01:02  那时一个人  阅读(857)  评论(0编辑  收藏  举报