diff --git a/repair_default_terms_conditions/README.rst b/repair_default_terms_conditions/README.rst new file mode 100644 index 000000000..7633c6bd8 --- /dev/null +++ b/repair_default_terms_conditions/README.rst @@ -0,0 +1,107 @@ +=============================== +Repair Default Terms Conditions +=============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fmanufacture-lightgray.png?logo=github + :target: https://github.com/OCA/manufacture/tree/12.0/repair_default_terms_conditions + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-repair_default_terms_conditions + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/129/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows repair default terms & conditions + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +#. Go to Repair Settings +#. Enable Default Terms & Conditions +#. Set Default Terms & Conditions + +Usage +===== + +To use this module, you need to: + +#. Go do Repair App +#. Create a New Repair Order + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* `Escodoo `_: + + * Marcel Savegnago + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Escodoo + +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-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px + :target: https://github.com/marcelsavegnago + :alt: marcelsavegnago + +Current `maintainer `__: + +|maintainer-marcelsavegnago| + +This module is part of the `OCA/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_default_terms_conditions/__init__.py b/repair_default_terms_conditions/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/repair_default_terms_conditions/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/repair_default_terms_conditions/__manifest__.py b/repair_default_terms_conditions/__manifest__.py new file mode 100644 index 000000000..a4e2fe1a4 --- /dev/null +++ b/repair_default_terms_conditions/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2021 - TODAY, Escodoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Repair Default Terms Conditions', + 'summary': """ + This module allows repair default terms & conditions""", + 'version': '12.0.1.0.0', + 'license': 'AGPL-3', + 'author': 'Escodoo,Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/manufacture', + 'category': 'Manufacturing', + 'maintainers': ['marcelsavegnago'], + 'images': ['static/description/banner.png'], + 'depends': [ + 'base_repair_config', + ], + 'data': [ + 'views/res_config_settings.xml', + ], +} diff --git a/repair_default_terms_conditions/models/__init__.py b/repair_default_terms_conditions/models/__init__.py new file mode 100644 index 000000000..0b150f71c --- /dev/null +++ b/repair_default_terms_conditions/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import res_config_settings diff --git a/repair_default_terms_conditions/models/res_company.py b/repair_default_terms_conditions/models/res_company.py new file mode 100644 index 000000000..4049c0f72 --- /dev/null +++ b/repair_default_terms_conditions/models/res_company.py @@ -0,0 +1,13 @@ +# Copyright 2021 - TODAY, Marcel Savegnago +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResCompany(models.Model): + + _inherit = 'res.company' + + repair_note = fields.Text( + string='Repair Default Terms and Conditions', + translate=True) diff --git a/repair_default_terms_conditions/models/res_config_settings.py b/repair_default_terms_conditions/models/res_config_settings.py new file mode 100644 index 000000000..8aeeb84c6 --- /dev/null +++ b/repair_default_terms_conditions/models/res_config_settings.py @@ -0,0 +1,19 @@ +# Copyright 2021 - TODAY, Marcel Savegnago +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + + _inherit = 'res.config.settings' + + default_quotation_notes = fields.Text( + related='company_id.repair_note', + string="Repair Terms & Conditions", + default_model="repair.order", + readonly=False) + + use_repair_note = fields.Boolean( + string='Use Repair Default Terms & Conditions', + config_parameter='repair.use_repair_note') diff --git a/repair_default_terms_conditions/readme/CONFIGURE.rst b/repair_default_terms_conditions/readme/CONFIGURE.rst new file mode 100644 index 000000000..2e6bddc85 --- /dev/null +++ b/repair_default_terms_conditions/readme/CONFIGURE.rst @@ -0,0 +1,5 @@ +To configure this module, you need to: + +#. Go to Repair Settings +#. Enable Default Terms & Conditions +#. Set Default Terms & Conditions diff --git a/repair_default_terms_conditions/readme/CONTRIBUTORS.rst b/repair_default_terms_conditions/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..ae453a60b --- /dev/null +++ b/repair_default_terms_conditions/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Escodoo `_: + + * Marcel Savegnago diff --git a/repair_default_terms_conditions/readme/CREDITS.rst b/repair_default_terms_conditions/readme/CREDITS.rst new file mode 100644 index 000000000..fcb24d045 --- /dev/null +++ b/repair_default_terms_conditions/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Escodoo diff --git a/repair_default_terms_conditions/readme/DESCRIPTION.rst b/repair_default_terms_conditions/readme/DESCRIPTION.rst new file mode 100644 index 000000000..bb3afeff2 --- /dev/null +++ b/repair_default_terms_conditions/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows repair default terms & conditions diff --git a/repair_default_terms_conditions/readme/USAGE.rst b/repair_default_terms_conditions/readme/USAGE.rst new file mode 100644 index 000000000..6ba846d07 --- /dev/null +++ b/repair_default_terms_conditions/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +#. Go do Repair App +#. Create a New Repair Order diff --git a/repair_default_terms_conditions/static/description/banner.png b/repair_default_terms_conditions/static/description/banner.png new file mode 100644 index 000000000..da4f6de2a Binary files /dev/null and b/repair_default_terms_conditions/static/description/banner.png differ diff --git a/repair_default_terms_conditions/static/description/icon.png b/repair_default_terms_conditions/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/repair_default_terms_conditions/static/description/icon.png differ diff --git a/repair_default_terms_conditions/static/description/index.html b/repair_default_terms_conditions/static/description/index.html new file mode 100644 index 000000000..01b26b6cb --- /dev/null +++ b/repair_default_terms_conditions/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Repair Default Terms Conditions + + + +
+

Repair Default Terms Conditions

+ + +

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

+

This module allows repair default terms & conditions

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go to Repair Settings
  2. +
  3. Enable Default Terms & Conditions
  4. +
  5. Set Default Terms & Conditions
  6. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Go do Repair App
  2. +
  3. Create a New Repair Order
  4. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Escodoo
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

marcelsavegnago

+

This module is part of the OCA/manufacture project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/repair_default_terms_conditions/views/res_config_settings.xml b/repair_default_terms_conditions/views/res_config_settings.xml new file mode 100644 index 000000000..726f154f8 --- /dev/null +++ b/repair_default_terms_conditions/views/res_config_settings.xml @@ -0,0 +1,35 @@ + + + + + + + res.config.settings.form (in repair_default_terms_conditions) + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+ + +