summaryrefslogtreecommitdiff
path: root/odoo/addons/base/tests/test_ir_actions.py
diff options
context:
space:
mode:
authormreficent <miquel.raich@eficent.com>2018-09-28 14:40:23 +0000
committerThibault Delavallée <tde@odoo.com>2018-10-19 09:13:06 +0000
commit77e5e8b7ffb7752cf4777e1abe32d614d8c29efd (patch)
tree7ab974c499a5ee586b94228c3706b28c263663fa /odoo/addons/base/tests/test_ir_actions.py
parentfb7ac56d65a0d4c634a4c9387bf25bbc229d5caa (diff)
[REF] base: rename ir.server.object.lines type field to evaluation_type
Purpose of this commit is to rename type column to something matching the the real business use of the field. That way it is easier to find and grep in the code. It also lessens potential conflicts with type build-in python function. It also lessens conflicts when using the field in JS as type is a build-in attribute. Renaming type column is a long-living issue. We choose to do it at the beginning of the v13 development to catch errors as soon as possible. This commit is linked to task ID 1896245. It is also a subpart of community PR #27599.
Diffstat (limited to 'odoo/addons/base/tests/test_ir_actions.py')
-rw-r--r--odoo/addons/base/tests/test_ir_actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/tests/test_ir_actions.py b/odoo/addons/base/tests/test_ir_actions.py
index d3b8f44aba7..865cca5e43a 100644
--- a/odoo/addons/base/tests/test_ir_actions.py
+++ b/odoo/addons/base/tests/test_ir_actions.py
@@ -105,8 +105,8 @@ class TestServerActions(TestServerActionsBase):
'crud_model_id': self.res_country_model.id,
'link_field_id': False,
'fields_lines': [(5,),
- (0, 0, {'col1': self.res_country_name_field.id, 'value': 'record.name', 'type': 'equation'}),
- (0, 0, {'col1': self.res_country_code_field.id, 'value': 'record.name[0:2]', 'type': 'equation'})],
+ (0, 0, {'col1': self.res_country_name_field.id, 'value': 'record.name', 'evaluation_type': 'equation'}),
+ (0, 0, {'col1': self.res_country_code_field.id, 'value': 'record.name[0:2]', 'evaluation_type': 'equation'})],
})
run_res = self.action.with_context(self.context).run()
self.assertFalse(run_res, 'ir_actions_server: create record action correctly finished should return False')