File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from odoo_test_helper import FakeModelLoader
4
4
5
- from odoo .tests .common import SavepointCase
5
+ from odoo .tests .common import TransactionCase
6
6
7
7
8
- class TestDepositSlip (SavepointCase ):
8
+ class TestDepositSlip (TransactionCase ):
9
9
@classmethod
10
10
def setUpClass (cls ):
11
11
super ().setUpClass ()
@@ -28,7 +28,13 @@ def setUpClass(cls):
28
28
cls .delivery_order = cls .env .ref ("stock.outgoing_shipment_main_warehouse4" )
29
29
cls .delivery_order .write ({"carrier_id" : cls .carrier .id })
30
30
31
+ @classmethod
32
+ def tearDownClass (cls ):
33
+ cls .loader .restore_registry ()
34
+ super ().tearDownClass ()
35
+
31
36
def test_delivery_slip_creation (self ):
37
+ self .delivery_order .move_line_ids .qty_done = 16
32
38
self .delivery_order ._action_done ()
33
39
wizard = self .env ["delivery.deposit.wizard" ].create (
34
40
{
Original file line number Diff line number Diff line change 47
47
<record id =" view_deposit_slip_tree" model =" ir.ui.view" >
48
48
<field name =" model" >deposit.slip</field >
49
49
<field name =" arch" type =" xml" >
50
- <tree string = " Deposit " >
50
+ <tree >
51
51
<field name =" name" />
52
52
<field name =" delivery_type" />
53
53
<field name =" create_date" />
You can’t perform that action at this time.
0 commit comments