These changes are made as a result of simplifying attrs and 'states' in views. However, they should have remained in a separate commit. When applying the script making the xml changes (used later for the migration script), the script checked the definition of the python fields in order to convert the information into a python expression. Therefore, this commit is not applied when the script is applied to xml changes. During this attribute deletion pre-existing errors were found. Part of the code was using the boolean values of 'states' and another part of the code was not. The behavior could therefore be different (in cases where readonly on the field had the same value as the ballan in 'states'). Following the deletion of 'states' and without the application of the view migration, the js tests (tower) were no longer functional. Tests using the Form view suffered the same effect. There are few tests that had to be adapted, including two tests in business accounting (updated by the accounting team). A test for column_invisible did not work. Test checking if the test system triggers an error if we try to write on an invisible field. It turns out that Form was testing on the value of invisible but not taking into account if the column was invisible. The test system fix is applied separately because there were a lot of tests that were incorrect. Part-of: odoo/odoo#104741
1.8 KiB
1.8 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_test_base_import_char | base.import.tests.models.char | model_base_import_char | base.group_user | 1 | 1 | 1 | 1 |
| 3 | access_test_base_import_char_required | base.import.tests.models.char.required | model_base_import_char_required | base.group_user | 1 | 1 | 1 | 1 |
| 4 | access_test_base_import_char_readonly | base.import.tests.models.char.readonly | model_base_import_char_readonly | base.group_user | 1 | 1 | 1 | 1 |
| 5 | access_test_base_import_char_noreadonly | base.import.tests.models.char.noreadonly | model_base_import_char_noreadonly | base.group_user | 1 | 1 | 1 | 1 |
| 6 | access_test_base_import_char_stillreadonly | base.import.tests.models.char.stillreadonly | model_base_import_char_stillreadonly | base.group_user | 1 | 1 | 1 | 1 |
| 7 | access_test_base_import_m2o | base.import.tests.models.m2o | model_base_import_m2o | base.group_user | 1 | 1 | 1 | 1 |
| 8 | access_test_base_import_m2o_related | base.import.tests.models.m2o.related | model_base_import_m2o_related | base.group_user | 1 | 1 | 1 | 1 |
| 9 | access_test_base_import_m2o_required | base.import.tests.models.m2o.required | model_base_import_m2o_required | base.group_user | 1 | 1 | 1 | 1 |
| 10 | access_test_base_import_m2o_required_related | base.import.tests.models.m2o.required.related | model_base_import_m2o_required_related | base.group_user | 1 | 1 | 1 | 1 |
| 11 | access_test_base_import_o2m | base.import.tests.models.o2m | model_base_import_o2m | base.group_user | 1 | 1 | 1 | 1 |
| 12 | access_test_base_import_o2m_child | base.import.tests.models.o2m.child | model_base_import_o2m_child | base.group_user | 1 | 1 | 1 | 1 |
| 13 | access_test_base_import_float | base.import.tests.models.float | model_base_import_float | base.group_user | 1 | 1 | 1 | 1 |
| 14 | access_test_base_import_preview | base.import.tests.models.preview | model_base_import_preview | base.group_user | 1 | 1 | 1 | 1 |
| 15 | access_test_base_import_complex | access_test_base_import_complex | model_base_import_complex | base.group_user | 1 | 0 | 0 | 0 |