-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Unittests base_delivery_carrier_label: Separate github test run
For dependents addons
- Loading branch information
1 parent
1ec5420
commit e81b8cf
Showing
10 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Delivery Package Fees | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:1bd03bdc59edfe4e2046329326afe107e8738bee72bd01862cae29fadd798647 | ||
!! source digest: sha256:2a7faf7ca4a955b3296dc72b61d0a72871437d1a453ce7677128fb30aaef8335 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -79,6 +79,7 @@ Contributors | |
~~~~~~~~~~~~ | ||
|
||
* Guewen Baconnier <[email protected]> | ||
* Michael Tietz (MT Software) <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* Guewen Baconnier <[email protected]> | ||
* Michael Tietz (MT Software) <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright 2020 Camptocamp | ||
# Copyright 2024 Michael Tietz (MT Software) <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.tests.common import Form, SavepointCase | ||
|
@@ -322,7 +323,7 @@ def test_package_no_package(self): | |
self.assertEqual(picking.state, "assigned") | ||
picking.move_line_ids[0].qty_done = 10.0 | ||
picking.move_line_ids[1].qty_done = 10.0 | ||
picking.with_context(set_default_package=False)._action_done() | ||
picking._action_done() | ||
self.assertEqual(picking.state, "done") | ||
|
||
self.assertRecordValues( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Stock Picking Package Number | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:3ed5adf0029e78322866727bc33ad34c20aeca25abb3ddf4604e85cd60d13d8c | ||
!! source digest: sha256:ff9990b646408ab222fbcb027456d78cccc6319f52302959c9e7cae8965931fc | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -89,6 +89,8 @@ Contributors | |
|
||
* Ángel García de la Chica Herrera <[email protected]> | ||
|
||
* Michael Tietz (MT Software) <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ | |
* `Sygel <https://www.sygel.es>`_: | ||
|
||
* Ángel García de la Chica Herrera <[email protected]> | ||
|
||
* Michael Tietz (MT Software) <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright 2023 Ángel García de la Chica Herrera <[email protected]> | ||
# Copyright 2024 Michael Tietz (MT Software) <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import api, fields, models | ||
|
@@ -24,7 +25,4 @@ def _compute_ask_number_of_packages(self): | |
def process(self): | ||
if self.number_of_packages: | ||
self.pick_ids.write({"number_of_packages": self.number_of_packages}) | ||
# put context key for avoiding `base_delivery_carrier_label` auto-packaging feature | ||
return super( | ||
StockBackorderConfirmation, self.with_context(set_default_package=False) | ||
).process() | ||
return super().process() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright 2020 Tecnativa - David Vidal | ||
# Copyright 2024 Michael Tietz (MT Software) <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import api, fields, models | ||
|
||
|
@@ -23,7 +24,4 @@ def _compute_ask_number_of_packages(self): | |
def process(self): | ||
if self.number_of_packages: | ||
self.pick_ids.write({"number_of_packages": self.number_of_packages}) | ||
# put context key for avoiding `base_delivery_carrier_label` auto-packaging feature | ||
return super( | ||
StockImmediateTransfer, self.with_context(set_default_package=False) | ||
).process() | ||
return super().process() |