[IMP] stock_whole_kit_constraint: black, isort, prettier

This commit is contained in:
ferran-73
2022-01-26 17:50:43 +01:00
parent 3f119397cb
commit 361a690db5
3 changed files with 10 additions and 2 deletions

View File

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

View File

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

View File

@@ -7,7 +7,8 @@ class StockMove(models.Model):
_inherit = "stock.move"
allow_partial_kit_delivery = fields.Boolean(
compute="_compute_allow_partial_kit_delivery", compute_sudo=True,
compute="_compute_allow_partial_kit_delivery",
compute_sudo=True,
)
@api.depends("product_id.product_tmpl_id.allow_partial_kit_delivery", "state")
@@ -27,7 +28,7 @@ class StockMove(models.Model):
def _check_backorder_moves(self):
"""Check if there are partial deliveries on any set of moves. The
computing is done in the same way the main picking method does it """
computing is done in the same way the main picking method does it"""
quantity_todo = {}
quantity_done = {}
for move in self: