mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] [13.0] Migrate base_comment_template from account_invoic_reporting.
This commit is contained in:
committed by
Víctor Martínez
parent
fe1da090d5
commit
2c3e562dde
@@ -1,9 +1,19 @@
|
||||
Add a new model to define templates of comments to print on
|
||||
documents.
|
||||
Add a new mixin class to define templates of comments to print on documents.
|
||||
The comment templates can be defined like make templates, so you can use variables from linked models.
|
||||
|
||||
Two positions are available for the comments:
|
||||
* above document lines
|
||||
* below document lines
|
||||
|
||||
* above document lines (before_lines)
|
||||
* below document lines (after_lines)
|
||||
|
||||
The template are general, and can be attached to any Model and based on some domain defined in the template.
|
||||
You can define one default template per Model and domain, which can be overwritten for any company and partners.
|
||||
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)
|
||||
|
||||
|
||||
This module is the base module for following modules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user