Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 4 views 0 HTTP endpoints

Description

This module add sale terms and conditions templates and change existing terms and conditions (sale_order.note) field type from Text to Html.

Users will be able to select terms and conditions template to fulfill terms and conditions likes in mail composer users can configure their template using jinja2.

How this module differ from sale_comment_template?

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
view_order_form_terms_template sale_order_note_templatesale.order.form sale.order form Inherits sale.view_order_form
view_sale_terms_template_form sale.terms_template.form sale.terms_template form New
view_sale_terms_template_search sale.terms_template.search sale.terms_template search New
view_sale_terms_template_tree sale.terms_template.list sale.terms_template list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (2)
  • note Html
  • terms_template_id Many2one → sale.terms_template
    string='Terms and conditions template' args: 'sale.terms_template'
Public methods (0)

No public methods.

New fields (3)
  • active Boolean
    default=True
  • name Char
    required=True
  • text Html
    string='Terms template' translate=True
Public methods (1)
  • get_value(self, sale_order, add_context=None, post_process=True)
    Get sales terms from template. Like in mail composer `text` template can use jinja or qweb syntax. if `partner_id` is provide, it will retreive it's lang to use the right translation. Then template is populated with model/res_id attributes according jinja/qweb instructions. :param sale_order: recordset (browsed) sale order :param add_context: context forwarded to the templating engine :param post_process: what ever to use `post_process` from the templating engine. If `True` urls are transform to absolute urls

Loading…

Loading…

Loading…

Loading…