mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_available: black, isort, prettier
This commit is contained in:
1
setup/stock_available/odoo/addons/stock_available
Symbolic link
1
setup/stock_available/odoo/addons/stock_available
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../stock_available
|
||||
6
setup/stock_available/setup.py
Normal file
6
setup/stock_available/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user