Sale Orders Terms and conditions Templates
sale_order_note_template · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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?
- base_comment_template is for managing comments not terms, it would probably see as mess for users to mixed terms and comments.
- sale_comment_template depends on account_comment_template comments are forwards to generated invoices, here we don't really display sales terms on final invoices
- base_comment_template at the time writing do not support template engine
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
noteHtml -
terms_template_idMany2one → sale.terms_templatestring='Terms and conditions template' args: 'sale.terms_template'
No public methods.
New fields (3)
-
activeBooleandefault=True -
nameCharrequired=True -
textHtmlstring='Terms template'translate=True
-
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…