summaryrefslogtreecommitdiff
path: root/odoo/addons/test_new_api/static/tests
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2018-11-14 13:55:35 +0100
committerYannick Tivisse <yti@odoo.com>2019-01-21 12:33:03 +0100
commit1684ec555dcccfbd4fca9123902065e01a67c057 (patch)
tree00bb60d1b262f17289abac57cd7395029f8018c9 /odoo/addons/test_new_api/static/tests
parent4764a70af7d9e32468a3608efceb4553b01a242a (diff)
[IMP] hr_payroll: Manage multi company on payslips/contracts
Purpose ======= Currently the payroll doens't manage the multi company Specification ============= 1/ Add ir.rules on hr.contract and hr.payslip to prevent users to access a record in another company. 2/ Add ir.rules on hr.payroll.structure to prevent users to access a record for another country. 3/ Remove company_id fields on models that doesn't require it, as hr.salary.rule.category. 4/ Make the accounting fields on the salary rules company dependent. 5/ Specify the country on the salary structures on the l10n_**_hr_payroll modules. 6/ Add demo data and modify the salary package tour. 7/ Make the car_atn and company_car_total_depreciated_costs fields compute_sudo=True, as one car can be assigned on several contract, for different companies Closes #26866 Closes #25231 Closes #24683 Closes #23814
Diffstat (limited to 'odoo/addons/test_new_api/static/tests')
-rw-r--r--odoo/addons/test_new_api/static/tests/x2many.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/odoo/addons/test_new_api/static/tests/x2many.js b/odoo/addons/test_new_api/static/tests/x2many.js
index c12669d17a2..06a804fca9e 100644
--- a/odoo/addons/test_new_api/static/tests/x2many.js
+++ b/odoo/addons/test_new_api/static/tests/x2many.js
@@ -59,7 +59,7 @@ odoo.define('web.test.x2many', function (require) {
trigger: '[data-toggle="tab"]:contains(Participants)'
}, {
content: "click to add participants",
- trigger: '.tab-pane:eq(2).active .o_field_x2many_list_row_add a'
+ trigger: '.o_form_sheet .tab-pane:eq(2).active .o_field_x2many_list_row_add a'
}, {
content: "select Admin",
trigger: 'tr:has(td:containsExact(Mitchell Admin)) .o_list_record_selector input[type="checkbox"]'
@@ -70,7 +70,7 @@ odoo.define('web.test.x2many', function (require) {
}, { // save
content: "save discussion",
trigger: 'button.o_form_button_save',
- extra_trigger: '.tab-pane:eq(2) .o_field_widget tbody tr:has(td:containsExact(Mitchell Admin))',
+ extra_trigger: '.o_form_sheet .tab-pane:eq(2) .o_field_widget tbody tr:has(td:containsExact(Mitchell Admin))',
}, { // edit
content: "edit discussion",
trigger: 'button.o_form_button_edit',
@@ -79,7 +79,7 @@ odoo.define('web.test.x2many', function (require) {
trigger: 'a[role=tab]:first',
}, {
content: "create new message a",
- trigger: '.tab-pane:eq(0) .o_field_x2many_list_row_add a'
+ trigger: '.o_form_sheet .tab-pane:eq(0) .o_field_x2many_list_row_add a'
}, {
content: "insert body a",
trigger: '.modal-body textarea:first',
@@ -330,7 +330,7 @@ odoo.define('web.test.x2many', function (require) {
{
content: "switch to the second form view to test one2many with editable list (toggle menu dropdown)",
- trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
+ trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions), li.o_extra_menu_items a i.fa-plus',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
}, {
content: "switch to the second form view to test one2many with editable list (open submenu)",
@@ -447,7 +447,7 @@ odoo.define('web.test.x2many', function (require) {
{
content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)",
- trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
+ trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions), li.o_extra_menu_items a i.fa-plus',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
}, {
content: "switch to the thied form view to test onchange changing one2many (open submenu)",