美文网首页
Qweb Template

Qweb Template

作者: 林业荣 | 来源:发表于2020-06-30 16:14 被阅读0次
<template id="portal_back_in_edit_mode" name="Back to edit mode">
    <div t-ignore="true" class="text-center">
        This is a preview of the customer portal. <a t-att-href="backend_url"><i class="fa fa-arrow-right"/> Back to edit mode</a>
    </div>
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"> &#215; </button>
</template>

t-att-href="backend_url"

这是A标签里面的一个变量,可以被赋值
 <t t-set="o_portal_fullwidth_alert" groups="sales_team.group_sale_salesman">
                <t t-call="portal.portal_back_in_edit_mode">#调用模板
                    给模板里面的变量赋值<t t-set="backend_url" t-value="'/web#return_label=Website&amp;model=%s&amp;id=%s&amp;action=%s&amp;view_type=form' % (sale_order._name, sale_order.id, sale_order.env.ref('sale.action_quotations').id)"/>
                </t>
            </t>            
····
# amp 是什么意思? 与的意思

相关文章

  • Qweb Template

    t-att-href="backend_url" 这是A标签里面的一个变量,可以被赋值

  • ODOO的报表

    https://alanhou.org/odoo12-reports-qweb/ QWeb 引擎是odoo报表的默...

  • Qweb

    1、定义模板 t-name只能放在模板文件的最外面,它没有其他参数,但可以使用一个t标签,当使用t标签时它需要有单...

  • odoo QWeb

    模板中的标签统一都是以"t-"开始的。 t-name 用于指明模板的名称 t-extend 用于指明该模板是继承自...

  • Packer.Odoo.10---Chapter 10

    创建一个QWeb 报告视图 生成报告对于业务应用是十分有价值的一个功能。从Odoo8.0开始就是使用内置QWeb报...

  • qweb report introduction

    Before start of introduction, odoo (former openerp) is op...

  • Odoo10开发教程九(报表和WebService)

    报表 报表打印 Odoo 8.0 开始使用新的基于QWeb,Twitter Bootstrap 和 Wkhtmlt...

  • GeekBand-STL 第1周

    template分类: class template,function template template在编译时...

  • QWeb报表简易教程

    正文之前, 先说两件事:一. 强调下odoo (原 openerp) 是开源软件, 源码是最好的老师,关于如何开发...

  • template

    template function template. normal function template. tem...

网友评论

      本文标题:Qweb Template

      本文链接:https://www.haomeiwen.com/subject/imkhfktx.html