summaryrefslogtreecommitdiff
path: root/addons/project/tests/test_project_base.py
diff options
context:
space:
mode:
authorRémy Baranx (bar) <bar@odoo.com>2020-02-12 12:37:58 +0000
committerYannick Tivisse <yti@odoo.com>2020-06-23 08:57:08 +0000
commit972e097dbe7cdc7afdae722391692f9b3bf063b8 (patch)
tree045692a9fbb2c4a051e55b9d5cc72b080715f39f /addons/project/tests/test_project_base.py
parentcd4e854e417cec1ae489a068f7bd362edaed789f (diff)
[IMP] project: convert onchange to stored-editable computed fields.
The 'stage_id' field is now a stored-editable computed field. The 'company_id' has been converted to a stored-editable computed field. The modification of the 'partner_id' field in the onchange method has been moved and merged into the _compute_partner_id method. Remove the empty 'onchange' method from the project.task model and also remove this method call from the sale_timesheet module, which inherits from the project.task model. Adapt the _compute_partner_id to retrieve exactly the behaviour before the onchange method deletion. Update code and tests of the task/subtask partner_id management after discussion with Alexandra to clarify the behavior. Add the 'multi_edit' attribute to tree views.
Diffstat (limited to 'addons/project/tests/test_project_base.py')
-rw-r--r--addons/project/tests/test_project_base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/project/tests/test_project_base.py b/addons/project/tests/test_project_base.py
index c38f72561a2..72350b1af20 100644
--- a/addons/project/tests/test_project_base.py
+++ b/addons/project/tests/test_project_base.py
@@ -19,6 +19,9 @@ class TestProjectCommon(SavepointCase):
cls.partner_2 = cls.env['res.partner'].create({
'name': 'Valid Poilvache',
'email': 'valid.other@gmail.com'})
+ cls.partner_3 = cls.env['res.partner'].create({
+ 'name': 'Valid Poilboeuf',
+ 'email': 'valid.poilboeuf@gmail.com'})
# Test users to use through the various tests
Users = cls.env['res.users'].with_context({'no_reset_password': True})