The package creation was done even before the call of the 'choose.delivery.package' wizard, so the 'Discard' button of the wizard was useless. This commit fix this behaviour by creating the package only when the "put_in_pack" action is called from the wizard. The default weight is thus no more based on the default package but on the picking related to the package. The method 'manage_package', 'default_stock_quant_package_id', 'self._default_delivery_packaging_id' were removed since they are no more relevant. The method 'check_destinations' was refactored to '_pre_put_in_pack_hook' to avoid confusion related to its misleading name TaskID: 1924875 closes odoo/odoo#30324 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
6 lines
199 B
Python
6 lines
199 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing detailsself.
|
|
|
|
from . import test_delivery_cost, test_delivery_stock_move
|
|
from . import test_packing_delivery
|