[IMP] stock_available: black, isort, prettier

This commit is contained in:
Florian da Costa
2020-12-24 22:19:34 +01:00
parent 993d7fa4be
commit f88df2933e
4 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1 @@
../../../../stock_available

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -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

View File

@@ -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