mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] base_comment_template: update readme files
Change deprecated t-raw to t-out. Rename invoice_comment_template to account_comment_template
This commit is contained in:
committed by
Maksym Yankin
parent
6eafe44d09
commit
e92f94b97c
@@ -12,12 +12,12 @@ It has a priority field (smaller number = higher priority)
|
||||
|
||||
In existing reports, if you add this line will get the comment template if you created one like
|
||||
|
||||
* <span t-raw="o.get_comment_template('position',company_id=o.company_id, partner_id=o.parnter_id )"/> ( or without any parameter)
|
||||
* <span t-out="o.get_comment_template('position',company_id=o.company_id, partner_id=o.parnter_id )"/> ( or without any parameter)
|
||||
|
||||
|
||||
This module is the base module for following modules:
|
||||
|
||||
* sale_comment_template
|
||||
* purchase_comment_template
|
||||
* invoice_comment_template
|
||||
* account_comment_template
|
||||
* stock_picking_comment_template
|
||||
|
||||
@@ -17,13 +17,13 @@ The template is a html field which will be rendered just like a mail template, s
|
||||
Change the report related to the model from configuration and add a statement like:
|
||||
|
||||
<t t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')" t-as="comment_template_top">
|
||||
<div t-raw="o.render_comment(comment_template_top)" />
|
||||
<div t-out="o.render_comment(comment_template_top)" />
|
||||
|
||||
</t>
|
||||
|
||||
|
||||
<t t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')" t-as="comment_template_bottom">
|
||||
<div t-raw="o.render_comment(comment_template_bottom)" />
|
||||
<div t-out="o.render_comment(comment_template_bottom)" />
|
||||
|
||||
</t>
|
||||
|
||||
@@ -39,6 +39,6 @@ mail.render.mixin with parameters:
|
||||
so you could use it :
|
||||
|
||||
<t t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')" t-as="comment_template_top">
|
||||
<div t-raw="o.render_comment(comment_template_top, engine='qweb', add_context={my dict}, postprocess=True)" />
|
||||
<div t-out="o.render_comment(comment_template_top, engine='qweb', add_context={my dict}, postprocess=True)" />
|
||||
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user