diff --git a/oxigen_purchase/README.rst b/oxigen_purchase/README.rst index fe685fe3..89055514 100644 --- a/oxigen_purchase/README.rst +++ b/oxigen_purchase/README.rst @@ -2,13 +2,67 @@ Oxigen Purchase =============== -Customizations to Purchase app for Oxigen. -Add picking reference in PO. +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:1b3ae9fc2a481be3ecc785311b49347a75971949190dee73c64120577c391fd7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-oxigensalud%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/oxigensalud/odoo-addons/tree/14.0/oxigen_purchase + :alt: oxigensalud/odoo-addons + +|badge1| |badge2| |badge3| + +* Customizations to Purchase app for Oxigen. +* Add picking reference in PO. + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* ForgeFlow + Contributors ------------- +~~~~~~~~~~~~ + +* ForgeFlow: + + * Lois Rilo + +* `NuoBiT Solutions S.L. `_: + + * Frank Cespedes + * Eric Antones + +Maintainers +~~~~~~~~~~~ + +This module is part of the `oxigensalud/odoo-addons `_ project on GitHub. -* Lois Rilo +You are welcome to contribute. diff --git a/oxigen_purchase/__manifest__.py b/oxigen_purchase/__manifest__.py index 06a5aea1..543e8a3a 100644 --- a/oxigen_purchase/__manifest__.py +++ b/oxigen_purchase/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Oxigen Purchase", - "summary": "Custumizations for Oxigen in Purchase application", + "summary": "Customizations for Oxigen in Purchase application", "version": "14.0.1.0.0", "author": "ForgeFlow", "website": "https://github.com/oxigensalud/odoo-addons", diff --git a/oxigen_purchase/models/purchase_order.py b/oxigen_purchase/models/purchase_order.py index eb5053e9..abd048fd 100644 --- a/oxigen_purchase/models/purchase_order.py +++ b/oxigen_purchase/models/purchase_order.py @@ -1,4 +1,6 @@ # Copyright 2021 ForgeFlow S.L. +# Copyright NuoBiT Solutions - Frank Cespedes +# Copyright NuoBiT Solutions - Eric Antones # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, models @@ -8,7 +10,11 @@ class PurchaseOrder(models.Model): _inherit = "purchase.order" def request_validation(self): - self._message_auto_subscribe({"user_id": self.env.uid}) + for rec in self: + if not rec.user_id: + rec.user_id = rec.env.uid + else: + rec._message_auto_subscribe({"user_id": rec.env.uid}) return super().request_validation() @api.model diff --git a/oxigen_purchase/readme/CONTRIBUTORS.rst b/oxigen_purchase/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..b1076c4a --- /dev/null +++ b/oxigen_purchase/readme/CONTRIBUTORS.rst @@ -0,0 +1,8 @@ +* ForgeFlow: + + * Lois Rilo + +* `NuoBiT Solutions S.L. `_: + + * Frank Cespedes + * Eric Antones diff --git a/oxigen_purchase/readme/DESCRIPTION.rst b/oxigen_purchase/readme/DESCRIPTION.rst new file mode 100644 index 00000000..3bfd0c5c --- /dev/null +++ b/oxigen_purchase/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +* Customizations to Purchase app for Oxigen. +* Add picking reference in PO. diff --git a/oxigen_purchase/static/description/index.html b/oxigen_purchase/static/description/index.html new file mode 100644 index 00000000..70f24f54 --- /dev/null +++ b/oxigen_purchase/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Oxigen Purchase + + + +
+

Oxigen Purchase

+ + +

Beta License: AGPL-3 oxigensalud/odoo-addons

+
    +
  • Customizations to Purchase app for Oxigen.
  • +
  • Add picking reference in PO.
  • +
+

Table of contents

+ +
+

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

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+
    +
  • ForgeFlow:
  • +
+
+ +
+ +
+
+

Maintainers

+

This module is part of the oxigensalud/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ +