Skip to content

Commit 0f554d3

Browse files
clementmbrflorian-dacosta
authored andcommittedJan 29, 2024
[FIX] remove depreciated tree string attribute
[FIX] test delivery_carrier_deposit
1 parent f778fbe commit 0f554d3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
 

‎delivery_carrier_deposit/tests/test_deposit_slip.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from odoo_test_helper import FakeModelLoader
44

5-
from odoo.tests.common import SavepointCase
5+
from odoo.tests.common import TransactionCase
66

77

8-
class TestDepositSlip(SavepointCase):
8+
class TestDepositSlip(TransactionCase):
99
@classmethod
1010
def setUpClass(cls):
1111
super().setUpClass()
@@ -28,7 +28,13 @@ def setUpClass(cls):
2828
cls.delivery_order = cls.env.ref("stock.outgoing_shipment_main_warehouse4")
2929
cls.delivery_order.write({"carrier_id": cls.carrier.id})
3030

31+
@classmethod
32+
def tearDownClass(cls):
33+
cls.loader.restore_registry()
34+
super().tearDownClass()
35+
3136
def test_delivery_slip_creation(self):
37+
self.delivery_order.move_line_ids.qty_done = 16
3238
self.delivery_order._action_done()
3339
wizard = self.env["delivery.deposit.wizard"].create(
3440
{

‎delivery_carrier_deposit/views/deposit_slip_view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<record id="view_deposit_slip_tree" model="ir.ui.view">
4848
<field name="model">deposit.slip</field>
4949
<field name="arch" type="xml">
50-
<tree string="Deposit">
50+
<tree>
5151
<field name="name" />
5252
<field name="delivery_type" />
5353
<field name="create_date" />

0 commit comments

Comments
 (0)
Please sign in to comment.