-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] agreement_sale : Migration to 16.0
- Loading branch information
1 parent
8e6549f
commit 5e0ddb5
Showing
20 changed files
with
956 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
============== | ||
Agreement Sale | ||
============== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:9c904ce6dd46beaa401dbc02c3b668edfa7718f85dac19c48f8bb05226693abd | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Fagreement_sale-lightgray.png?logo=github | ||
:target: https://github.com/OCA/agreement_sale/tree/16.0/agreement_sale | ||
:alt: OCA/agreement_sale | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/agreement_sale-16-0/agreement_sale-16-0-agreement_sale | ||
: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/agreement_sale&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds *Agreement* field to Sales Orders | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
Features to evaluate before implementation | ||
|
||
* add smart button on agreement to access implied sales | ||
* add module agreement_account: agreement_sale'll depends on it | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/agreement_sale/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/agreement_sale/issues/new?body=module:%20agreement_sale%0Aversion:%2016.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 | ||
~~~~~~~ | ||
|
||
* Akretion | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Alexis de Lattre <alexis.delattre@akretion.com> | ||
|
||
* `Binhex <https://www.binhex.cloud>`_: | ||
|
||
* Adasat Torres de León <a.torres@binhex.cloud> | ||
|
||
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. | ||
|
||
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px | ||
:target: https://github.com/alexis-via | ||
:alt: alexis-via | ||
.. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px | ||
:target: https://github.com/bealdav | ||
:alt: bealdav | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-alexis-via| |maintainer-bealdav| | ||
|
||
This module is part of the `OCA/agreement_sale <https://github.com/OCA/agreement_sale/tree/16.0/agreement_sale>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Agreement Sale", | ||
"summary": "Agreement on sales", | ||
"version": "16.0.1.0.0", | ||
"category": "Contract", | ||
"author": "Akretion, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/agreement", | ||
"license": "AGPL-3", | ||
"depends": ["sale_management", "agreement"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"views/agreement.xml", | ||
"views/sale_order.xml", | ||
"views/res_config_settings.xml", | ||
], | ||
"development_status": "Beta", | ||
"maintainers": ["alexis-via", "bealdav"], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * agreement_sale | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.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: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_id | ||
msgid "Agreement" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_type_id | ||
msgid "Agreement Type" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Agreement types" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Agreements" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__display_name | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Have a special kind of agreements which act as templates" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__id | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings____last_update | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Manage agreements by types" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_sale_order | ||
msgid "Sales Order" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_template | ||
msgid "Use agreement template" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_type | ||
msgid "Use agreement types" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * agreement_sale | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2022-02-06 20:59+0000\n" | ||
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n" | ||
"Language-Team: none\n" | ||
"Language: es_AR\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 4.3.2\n" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_id | ||
msgid "Agreement" | ||
msgstr "Acuerdo" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_type_id | ||
msgid "Agreement Type" | ||
msgstr "Tipo de Acuerdo" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Agreement types" | ||
msgstr "Tipos de acuerdo" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Agreements" | ||
msgstr "Acuerdos" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "Configurar Ajustes" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__display_name | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__display_name | ||
msgid "Display Name" | ||
msgstr "Mostrar Nombre" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Have a special kind of agreements which act as templates" | ||
msgstr "Tiene un tipo especial de acuerdos que actúan como plantillas" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__id | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__id | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings____last_update | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última Modificación el" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Manage agreements by types" | ||
msgstr "Gestionar acuerdos por tipos" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_sale_order | ||
msgid "Sales Order" | ||
msgstr "Pedido de Venta" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_template | ||
msgid "Use agreement template" | ||
msgstr "Usar una plantilla de acuerdo" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_type | ||
msgid "Use agreement types" | ||
msgstr "Usa tipos de acuerdo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * agreement_sale | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2019-09-04 18:23+0000\n" | ||
"Last-Translator: 黎伟杰 <674416404@qq.com>\n" | ||
"Language-Team: none\n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Generator: Weblate 3.8\n" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_id | ||
msgid "Agreement" | ||
msgstr "协议" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_sale_order__agreement_type_id | ||
#, fuzzy | ||
#| msgid "Agreement" | ||
msgid "Agreement Type" | ||
msgstr "协议" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
#, fuzzy | ||
#| msgid "Agreement" | ||
msgid "Agreement types" | ||
msgstr "协议" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
#, fuzzy | ||
#| msgid "Agreement" | ||
msgid "Agreements" | ||
msgstr "协议" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Have a special kind of agreements which act as templates" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model_terms:ir.ui.view,arch_db:agreement_sale.res_config_settings_view_form | ||
msgid "Manage agreements by types" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model,name:agreement_sale.model_sale_order | ||
msgid "Sale Order" | ||
msgstr "销售订单" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_template | ||
msgid "Use agreement template" | ||
msgstr "" | ||
|
||
#. module: agreement_sale | ||
#: model:ir.model.fields,field_description:agreement_sale.field_res_config_settings__group_use_agreement_type | ||
msgid "Use agreement types" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import sale | ||
from . import res_config_settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = "res.config.settings" | ||
|
||
group_use_agreement_type = fields.Boolean( | ||
"Use agreement types", implied_group="agreement.group_use_agreement_type" | ||
) | ||
group_use_agreement_template = fields.Boolean( | ||
"Use agreement template", implied_group="agreement.group_use_agreement_template" | ||
) |
Oops, something went wrong.