diff --git a/pms_stock/README.rst b/pms_stock/README.rst new file mode 100644 index 000000000..d9ed2d75a --- /dev/null +++ b/pms_stock/README.rst @@ -0,0 +1,81 @@ +=========== +PMS - Stock +=========== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fpms-lightgray.png?logo=github + :target: https://github.com/OCA/pms/tree/14.0/pms_stock + :alt: OCA/pms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pms-14-0/pms-14-0-pms_stock + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/293/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to manage the content of a property. + +**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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Hardik-OSI Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Hardik-OSI + +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-Hardik-OSI| image:: https://github.com/Hardik-OSI.png?size=40px + :target: https://github.com/Hardik-OSI + :alt: Hardik-OSI + +Current `maintainer `__: + +|maintainer-Hardik-OSI| + +This module is part of the `OCA/pms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pms_stock/__init__.py b/pms_stock/__init__.py new file mode 100644 index 000000000..02179fb04 --- /dev/null +++ b/pms_stock/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import models diff --git a/pms_stock/__manifest__.py b/pms_stock/__manifest__.py new file mode 100644 index 000000000..73305718a --- /dev/null +++ b/pms_stock/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2022 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "PMS - Stock", + "summary": "Manage the content of a property.", + "version": "14.0.1.0.0", + "category": "stock", + "website": "https://github.com/OCA/pms", + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "maintainers": ["Hardik-OSI"], + "license": "AGPL-3", + "depends": ["pms_base", "stock"], + "data": ["views/pms_property.xml"], +} diff --git a/pms_stock/models/__init__.py b/pms_stock/models/__init__.py new file mode 100644 index 000000000..3e7a41b79 --- /dev/null +++ b/pms_stock/models/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import pms_property diff --git a/pms_stock/models/pms_property.py b/pms_stock/models/pms_property.py new file mode 100644 index 000000000..c114dd735 --- /dev/null +++ b/pms_stock/models/pms_property.py @@ -0,0 +1,9 @@ +# Copyright (c) 2022 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class PmsProperty(models.Model): + _inherit = "pms.property" + + stock_location_id = fields.Many2one("stock.location", string="Inventory Location") diff --git a/pms_stock/readme/CONFIGURATION.rst b/pms_stock/readme/CONFIGURATION.rst new file mode 100644 index 000000000..956bdb46c --- /dev/null +++ b/pms_stock/readme/CONFIGURATION.rst @@ -0,0 +1,4 @@ +* Go to Properties > Master Data > Properties +* Create or edit a property +* Go to the Inventory tab +* Set the stock location diff --git a/pms_stock/readme/CONTRIBUTORS.rst b/pms_stock/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..95b709fe9 --- /dev/null +++ b/pms_stock/readme/CONTRIBUTORS.rst @@ -0,0 +1,9 @@ +* Open Source Integrators + + * Zachary Willhide-James + * Kent Davis + * Maxime Chambreuil + +* Serpent Consulting Services Pvt. Ltd. + + * Hardik Suthar diff --git a/pms_stock/readme/DESCRIPTION.rst b/pms_stock/readme/DESCRIPTION.rst new file mode 100644 index 000000000..3b5ca52ea --- /dev/null +++ b/pms_stock/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows you to manage the content of a property. diff --git a/pms_stock/readme/USAGE.rst b/pms_stock/readme/USAGE.rst new file mode 100644 index 000000000..cc853ea23 --- /dev/null +++ b/pms_stock/readme/USAGE.rst @@ -0,0 +1,3 @@ +* Go to Properties > Master Data > Properties +* Select a property +* Click on "Content" to get the list of products and quantities stored in the property diff --git a/pms_stock/static/description/icon.png b/pms_stock/static/description/icon.png new file mode 100644 index 000000000..a81dd64c3 Binary files /dev/null and b/pms_stock/static/description/icon.png differ diff --git a/pms_stock/views/pms_property.xml b/pms_stock/views/pms_property.xml new file mode 100644 index 000000000..e2cfc0ec3 --- /dev/null +++ b/pms_stock/views/pms_property.xml @@ -0,0 +1,41 @@ + + + + + {'search_default_productgroup': 1} + [('location_id', 'child_of', stock_location_id)] + Content + stock.quant + + + + pms.property.form.pms.stock + pms.property + + 99999 + + + + + + + + + + + + +