mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_packaging_calculator: black, isort, prettier
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
../../../../stock_packaging_calculator
|
||||||
6
setup/stock_packaging_calculator/setup.py
Normal file
6
setup/stock_packaging_calculator/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
@@ -65,7 +65,9 @@ class Product(models.Model):
|
|||||||
"""
|
"""
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
return self._product_qty_by_packaging(
|
return self._product_qty_by_packaging(
|
||||||
self._ordered_packaging(), prod_qty, with_contained=with_contained,
|
self._ordered_packaging(),
|
||||||
|
prod_qty,
|
||||||
|
with_contained=with_contained,
|
||||||
)
|
)
|
||||||
|
|
||||||
def _ordered_packaging(self):
|
def _ordered_packaging(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user