File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 6
6
<field
7
7
name =" email_from"
8
8
>${object.company_id.partner_id.email_formatted|safe}</field >
9
- <field name =" partner_to" >${ user.partner_id.id}</field >
9
+ <field name =" partner_to" >{{ user.partner_id.id } }</field >
10
10
<field name =" body_html" type =" html" >
11
11
<table
12
12
border =" 0"
Original file line number Diff line number Diff line change @@ -14,14 +14,11 @@ def setUp(self):
14
14
15
15
def _print_wizard (self , res ):
16
16
obj = self .env [res ["res_model" ]]
17
- ctx = {
18
- "active_model" : self .print_doc ._name ,
19
- "active_id" : self .print_doc .id ,
20
- }
21
- ctx .update (res ["context" ])
22
17
with Form (
23
18
obj .with_context (
24
- active_model = self .print_doc ._name , active_id = self .print_doc .id
19
+ active_model = self .print_doc ._name ,
20
+ active_id = self .print_doc .id ,
21
+ async_process = res ["context" ].get ("async_process" ),
25
22
)
26
23
) as form :
27
24
form .reference = "{},{}" .format (self .test_rec ._name , self .test_rec .id )
@@ -37,6 +34,7 @@ def test_1_run_now(self):
37
34
38
35
def test_2_run_async (self ):
39
36
"""Run background will return nothing, job started"""
37
+ self .print_doc .write ({"allow_async" : False })
40
38
with self .assertRaises (UserError ):
41
39
self .print_doc .run_async ()
42
40
self .print_doc .write ({"allow_async" : True , "email_notify" : True })
You can’t perform that action at this time.
0 commit comments