diff --git a/setup/stock_available/odoo/addons/stock_available b/setup/stock_available/odoo/addons/stock_available new file mode 120000 index 000000000..1baa26697 --- /dev/null +++ b/setup/stock_available/odoo/addons/stock_available @@ -0,0 +1 @@ +../../../../stock_available \ No newline at end of file diff --git a/setup/stock_available/setup.py b/setup/stock_available/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_available/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_available/models/product_product.py b/stock_available/models/product_product.py index 7a4d4ce3f..3304f4883 100644 --- a/stock_available/models/product_product.py +++ b/stock_available/models/product_product.py @@ -9,7 +9,7 @@ from odoo.addons.stock.models.product import OPERATORS class ProductProduct(models.Model): - """ Add a field for the stock available to promise. + """Add a field for the stock available to promise. Useful implementations need to be installed through the Settings menu or by installing one of the modules stock_available_* """ @@ -60,7 +60,7 @@ class ProductProduct(models.Model): @api.model def _search_immediately_usable_qty(self, operator, value): - """ Search function for the immediately_usable_qty field. + """Search function for the immediately_usable_qty field. The search is quite similar to the Odoo search about quantity available (addons/stock/models/product.py,253; _search_product_quantity function) :param operator: str diff --git a/stock_available/models/product_template.py b/stock_available/models/product_template.py index 893b7aa74..949cf9496 100644 --- a/stock_available/models/product_template.py +++ b/stock_available/models/product_template.py @@ -69,7 +69,7 @@ class ProductTemplate(models.Model): @api.model def _search_immediately_usable_qty(self, operator, value): - """ Search function for the immediately_usable_qty field. + """Search function for the immediately_usable_qty field. The search is quite similar to the Odoo search about quantity available (addons/stock/models/product.py,253; _search_product_quantity function) :param operator: str