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