@@ -20,11 +20,11 @@ def test_apply_options(self):
2020 )
2121 self .assertEqual (
2222 self ._eval_node_options (form_doc .xpath ("//field[@name='parent_id']" )[0 ]),
23- {"create " : False , "create_edit " : False },
23+ {"no_quick_create " : True , "no_create_edit " : True },
2424 )
2525 self .assertEqual (
2626 self ._eval_node_options (form_doc .xpath ("//field[@name='category_id']" )[0 ]),
27- {"create " : False , "create_edit " : False },
27+ {"no_quick_create " : True , "no_create_edit " : True },
2828 )
2929
3030 # Create options, check view has been updated
@@ -55,19 +55,19 @@ def test_apply_options(self):
5555 form_doc = self ._get_test_view_parsed ()
5656 self .assertEqual (
5757 self ._eval_node_options (form_doc .xpath ("//field[@name='title']" )[0 ]),
58- {"create " : True , "create_edit " : True },
58+ {"no_quick_create " : False , "no_create_edit " : False },
5959 )
6060 self .assertEqual (
6161 self ._eval_node_options (form_doc .xpath ("//field[@name='parent_id']" )[0 ]),
6262 # These remain the same because the options are defined w/ 'set_true':
6363 # but the node already contains them, so no override is applied
64- {"create " : False , "create_edit " : False },
64+ {"no_quick_create " : True , "no_create_edit " : True },
6565 )
6666 self .assertEqual (
6767 self ._eval_node_options (form_doc .xpath ("//field[@name='category_id']" )[0 ]),
6868 # These change values because the options are defined w/ 'force_true':
6969 # options' values are overridden even if the node already contains them
70- {"create " : True , "create_edit " : True },
70+ {"no_quick_create " : False , "no_create_edit " : False },
7171 )
7272
7373 # Update options on ``res.partner.parent_id``, check its node has been updated
@@ -77,7 +77,7 @@ def test_apply_options(self):
7777 form_doc = self ._get_test_view_parsed ()
7878 self .assertEqual (
7979 self ._eval_node_options (form_doc .xpath ("//field[@name='parent_id']" )[0 ]),
80- {"create " : True , "create_edit " : True },
80+ {"no_quick_create " : False , "no_create_edit " : False },
8181 )
8282
8383 def test_m2x_option_name (self ):
0 commit comments