diff --git a/sale_properties/README.rst b/sale_properties/README.rst new file mode 100644 index 00000000000..6a7f182c779 --- /dev/null +++ b/sale_properties/README.rst @@ -0,0 +1,86 @@ +=============== +Sale Properties +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:510b794aa1c2ff83d1c81cfd525993589bf5981fc5faa6488a47a919b7ba8fd2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/16.0/sale_properties + :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-16-0/sale-workflow-16-0-sale_properties + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the use of properties in sale (different for each sale team). + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Go to `Sale Order` and create or edit any record. +#. The “Add a Property” option is available (the properties tab). +#. The properties that will be displayed will be different for each sale team. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* KMEE + +Contributors +~~~~~~~~~~~~ + +* `KMEE `_: + + * Luis Felipe Miléo + + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_properties/__init__.py b/sale_properties/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/sale_properties/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_properties/__manifest__.py b/sale_properties/__manifest__.py new file mode 100644 index 00000000000..36a92d5ad05 --- /dev/null +++ b/sale_properties/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Sale Properties", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "KMEE,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "depends": [ + "sale", + ], + "data": [ + "views/sale_order.xml", + ], +} diff --git a/sale_properties/models/__init__.py b/sale_properties/models/__init__.py new file mode 100644 index 00000000000..326207d35ec --- /dev/null +++ b/sale_properties/models/__init__.py @@ -0,0 +1,2 @@ +from . import sale_order +from . import crm_team diff --git a/sale_properties/models/crm_team.py b/sale_properties/models/crm_team.py new file mode 100644 index 00000000000..c2d3b267f21 --- /dev/null +++ b/sale_properties/models/crm_team.py @@ -0,0 +1,11 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class CrmOrder(models.Model): + + _inherit = "crm.team" + + sale_properties_definition = fields.PropertiesDefinition("Sale Properties") diff --git a/sale_properties/models/sale_order.py b/sale_properties/models/sale_order.py new file mode 100644 index 00000000000..218e1a6b432 --- /dev/null +++ b/sale_properties/models/sale_order.py @@ -0,0 +1,11 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class SaleOrder(models.Model): + + _inherit = "sale.order" + + properties = fields.Properties(definition="team_id.sale_properties_definition") diff --git a/sale_properties/readme/CONTRIBUTORS.rst b/sale_properties/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..24b5520ab65 --- /dev/null +++ b/sale_properties/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `KMEE `_: + + * Luis Felipe Miléo + diff --git a/sale_properties/readme/DESCRIPTION.rst b/sale_properties/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..c875bc6f892 --- /dev/null +++ b/sale_properties/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds the use of properties in sale (different for each sale team). diff --git a/sale_properties/readme/USAGE.rst b/sale_properties/readme/USAGE.rst new file mode 100644 index 00000000000..3b08908d942 --- /dev/null +++ b/sale_properties/readme/USAGE.rst @@ -0,0 +1,3 @@ +#. Go to `Sale Order` and create or edit any record. +#. The “Add a Property” option is available (the properties tab). +#. The properties that will be displayed will be different for each sale team. diff --git a/sale_properties/static/description/icon.png b/sale_properties/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_properties/static/description/icon.png differ diff --git a/sale_properties/static/description/index.html b/sale_properties/static/description/index.html new file mode 100644 index 00000000000..320fa36ffeb --- /dev/null +++ b/sale_properties/static/description/index.html @@ -0,0 +1,432 @@ + + + + + +Sale Properties + + + +
+

Sale Properties

+ + +

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

+

This module adds the use of properties in sale (different for each sale team).

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to Sale Order and create or edit any record.
  2. +
  3. The “Add a Property” option is available (the properties tab).
  4. +
  5. The properties that will be displayed will be different for each sale team.
  6. +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • KMEE
  • +
+
+
+

Contributors

+
    +
  • KMEE:
      +
    • Luis Felipe Miléo
    • +
    +
  • +
+
+
+

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.

+

This module is part of the OCA/sale-workflow project on GitHub.

+

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

+
+
+
+ + diff --git a/sale_properties/views/sale_order.xml b/sale_properties/views/sale_order.xml new file mode 100644 index 00000000000..f0988e32580 --- /dev/null +++ b/sale_properties/views/sale_order.xml @@ -0,0 +1,27 @@ + + + + + + sale.order + + + + +
+ +
+
+
+
+
+ + + +
diff --git a/setup/sale_properties/odoo/addons/sale_properties b/setup/sale_properties/odoo/addons/sale_properties new file mode 120000 index 00000000000..94a035828bc --- /dev/null +++ b/setup/sale_properties/odoo/addons/sale_properties @@ -0,0 +1 @@ +../../../../sale_properties \ No newline at end of file diff --git a/setup/sale_properties/setup.py b/setup/sale_properties/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/sale_properties/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)