Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions sale_order_note_template/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
==========================================
Sale Orders Terms and conditions Templates
==========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d1e58e979b84ddf98ac6d3f3a1f8d477a3222c1c5065725c8cba073424108f83
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_note_template
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_note_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 <https://github.com/OCA/sale-reporting/tree/14.0/sale_comment_template>`__?
------------------------------------------------------------------------------------------------------------------------------

- `base_comment_template <https://github.com/OCA/reporting-engine/tree/14.0/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 <https://github.com/OCA/sale-reporting/tree/14.0/sale_comment_template>`__
depends on
`account_comment_template <https://github.com/OCA/account-invoice-reporting/tree/14.0/account_comment_template>`__
comments are forwards to generated invoices, here we don't really
display sales terms on final invoices
- `base_comment_template <https://github.com/OCA/reporting-engine/tree/14.0/base_comment_template>`__
at the time writing do not support template engine

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

- add a post_init_hook and / or a uninstall_hook to handle correctly the
conversion (Text <--> Html).
- support qweb report templating engine

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_note_template%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Pierre Verkest

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_note_template>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions sale_order_note_template/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions sale_order_note_template/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2020 Pierre Verkest <pierreverkest84@gmail.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Sale Orders Terms and conditions Templates",
"summary": "Add sale orders terms and conditions template that can be "
"used to quickly fullfill sale order terms and conditions",
"category": "Sales/Sales",
"version": "19.0.1.0.0",
"author": "Pierre Verkest,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"depends": ["sale_management"],
"data": [
"security/ir.model.access.csv",
"views/sale_views.xml",
"views/sale_terms_template.xml",
],
"installable": True,
}
99 changes: 99 additions & 0 deletions sale_order_note_template/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_note_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-04-05 11:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.2\n"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__active
msgid "Active"
msgstr "Attivo"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__create_date
msgid "Created on"
msgstr "Creato il"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__id
msgid "ID"
msgstr "ID"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__name
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_form
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_search
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_tree
msgid "Name"
msgstr "Nome"

#. module: sale_order_note_template
#: model:ir.model,name:sale_order_note_template.model_sale_terms_template
msgid "Sale terms template"
msgstr "Modello team vendite"

#. module: sale_order_note_template
#: model:ir.model,name:sale_order_note_template.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: sale_order_note_template
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_order_form_terms_template
msgid "Terms and Conditions"
msgstr "Termini e condizioni"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_order__note
msgid "Terms and conditions"
msgstr "Termini e condizioni"

#. module: sale_order_note_template
#: model:ir.ui.menu,name:sale_order_note_template.menu_sale_terms_template
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_form
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_search
msgid "Terms and conditions Templates"
msgstr "Modelli termini e condizioni"

#. module: sale_order_note_template
#: model:ir.actions.act_window,name:sale_order_note_template.action_sale_terms_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_order__terms_template_id
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_order_form_terms_template
msgid "Terms and conditions template"
msgstr "Modello termini e condizioni"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__text
msgid "Terms template"
msgstr "Modelli termini"
96 changes: 96 additions & 0 deletions sale_order_note_template/i18n/sale_order_note_template.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_note_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__active
msgid "Active"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__create_uid
msgid "Created by"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__create_date
msgid "Created on"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__display_name
msgid "Display Name"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__id
msgid "ID"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__write_uid
msgid "Last Updated by"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__write_date
msgid "Last Updated on"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__name
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_form
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_search
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_tree
msgid "Name"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model,name:sale_order_note_template.model_sale_terms_template
msgid "Sale terms template"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model,name:sale_order_note_template.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_order_note_template
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_order_form_terms_template
msgid "Terms and Conditions"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_order__note
msgid "Terms and conditions"
msgstr ""

#. module: sale_order_note_template
#: model:ir.ui.menu,name:sale_order_note_template.menu_sale_terms_template
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_form
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_sale_terms_template_search
msgid "Terms and conditions Templates"
msgstr ""

#. module: sale_order_note_template
#: model:ir.actions.act_window,name:sale_order_note_template.action_sale_terms_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_order__terms_template_id
#: model_terms:ir.ui.view,arch_db:sale_order_note_template.view_order_form_terms_template
msgid "Terms and conditions template"
msgstr ""

#. module: sale_order_note_template
#: model:ir.model.fields,field_description:sale_order_note_template.field_sale_terms_template__text
msgid "Terms template"
msgstr ""
Loading
Loading