diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js
index 311bea5d403..003f1a768d8 100644
--- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js
+++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js
@@ -55,7 +55,7 @@ var StatementRenderer = Widget.extend(FieldManagerMixin, {
{mode: 'edit'});
self.name.appendTo(self.$('.statement_name_edition')).then(function () {
- self.name.$el.addClass('o_form_required');
+ self.name.$el.addClass('o_required_modifier');
});
self.$('.statement_name').text(self._initialState.bank_statement_id.display_name);
});
@@ -458,7 +458,7 @@ var LineRenderer = Widget.extend(FieldManagerMixin, {
self.$('.create').append($create);
function addRequiredStyle(widget) {
- widget.$el.addClass('o_form_required');
+ widget.$el.addClass('o_required_modifier');
}
});
},
diff --git a/addons/account/static/src/xml/account_payment.xml b/addons/account/static/src/xml/account_payment.xml
index 61b2e50b5bc..a8c3c5e6896 100644
--- a/addons/account/static/src/xml/account_payment.xml
+++ b/addons/account/static/src/xml/account_payment.xml
@@ -25,7 +25,7 @@
- Paid on
+ Paid on
|
diff --git a/addons/account/static/tests/account_payment_field_tests.js b/addons/account/static/tests/account_payment_field_tests.js
index b0b6aff3052..1bbeaf6d352 100644
--- a/addons/account/static/tests/account_payment_field_tests.js
+++ b/addons/account/static/tests/account_payment_field_tests.js
@@ -62,20 +62,20 @@ QUnit.module('account', {
},
});
- assert.strictEqual(form.$('.o_form_field[name="payments_widget"]').text().replace(/[\s\n\r]+/g, ' '),
+ assert.strictEqual(form.$('.o_field_widget[name="payments_widget"]').text().replace(/[\s\n\r]+/g, ' '),
" Paid on 04/25/2017 $ 555.00 ",
"should display payment information");
- form.$('.o_form_field[name="outstanding_credits_debits_widget"] .outstanding_credit_assign').trigger('click');
+ form.$('.o_field_widget[name="outstanding_credits_debits_widget"] .outstanding_credit_assign').trigger('click');
- assert.strictEqual(form.$('.o_form_field[name="outstanding_credits_debits_widget"]').text().replace(/[\s\n\r]+/g, ' '),
+ assert.strictEqual(form.$('.o_field_widget[name="outstanding_credits_debits_widget"]').text().replace(/[\s\n\r]+/g, ' '),
" Outstanding credits Add INV/2017/0004 $ 100.00 ",
"should display outstanding information");
- form.$('.o_form_field[name="payments_widget"] .js_payment_info').trigger('focus');
+ form.$('.o_field_widget[name="payments_widget"] .js_payment_info').trigger('focus');
form.$('.popover .js_open_payment').trigger('click');
- form.$('.o_form_field[name="payments_widget"] .js_payment_info').trigger('focus');
+ form.$('.o_field_widget[name="payments_widget"] .js_payment_info').trigger('focus');
form.$('.popover .js_unreconcile_payment').trigger('click');
form.destroy();
diff --git a/addons/account/static/tests/reconciliation_tests.js b/addons/account/static/tests/reconciliation_tests.js
index 293baaf5480..b44c82d6b80 100644
--- a/addons/account/static/tests/reconciliation_tests.js
+++ b/addons/account/static/tests/reconciliation_tests.js
@@ -512,7 +512,7 @@ QUnit.module('account', {
assert.strictEqual(widget.$('.create').length, 1, "should have 'create' panel");
assert.strictEqual(widget.$('thead').text().replace(/[\n\r\s]+/g, ' '), " 101401 2017-01-01 SAJ/2014/002 and SAJ/2014/003 $ 1,175.00 ", "should display the line information");
- assert.ok(widget.$('caption .o_form_field.o_form_field_many2one').length, "should display the many2one with to select a partner");
+ assert.ok(widget.$('caption .o_field_many2one').length, "should display the many2one with to select a partner");
assert.strictEqual(clientAction.$('[data-mode="inactive"]').length, 3, "should be as 'inactive' mode by default");
assert.strictEqual(widget.$el.data('mode'), 'match', "the first one should automatically switch to match mode");
@@ -540,12 +540,12 @@ QUnit.module('account', {
var widget = clientAction.widgets[0];
- assert.strictEqual(widget.$('.o_form_input_dropdown input').val(), "Agrolait", "the partner many2one should display agrolait");
- assert.strictEqual(clientAction.widgets[2].$('.o_form_input_dropdown input').val(), "Camptocamp", "the partner many2one should display Camptocamp");
+ assert.strictEqual(widget.$('.o_input_dropdown input').val(), "Agrolait", "the partner many2one should display agrolait");
+ assert.strictEqual(clientAction.widgets[2].$('.o_input_dropdown input').val(), "Camptocamp", "the partner many2one should display Camptocamp");
widget.$('.accounting_view tfoot td:first').trigger('click');
- assert.strictEqual(widget.$('.create .o_form_input').length, 6,
+ assert.strictEqual(widget.$('.create .o_input').length, 6,
"create panel should display 5 fields (account_id, tax_id, analytic_account_id, label, amount)");
- assert.strictEqual(widget.$('.create .create_account_id .o_form_required, .create .create_label .o_form_required, .create .create_amount .o_form_required').length, 3,
+ assert.strictEqual(widget.$('.create .create_account_id .o_required_modifier, .create .create_label .o_required_modifier, .create .create_amount .o_required_modifier').length, 3,
"account_id, label and amount should be required fields");
assert.strictEqual(widget.$('.create .create_label input').val(), 'SAJ/2014/002 and SAJ/2014/003',
"should use the name of the reconciliation line for the default label value");
diff --git a/addons/barcodes/static/src/js/barcode_form_view.js b/addons/barcodes/static/src/js/barcode_form_view.js
index 2d74e6db8bb..678b23444a8 100644
--- a/addons/barcodes/static/src/js/barcode_form_view.js
+++ b/addons/barcodes/static/src/js/barcode_form_view.js
@@ -312,7 +312,7 @@ FormRenderer.include({
var commands = {};
commands.barcode = function () {return $.when();};
commands['O-BTN.' + node.attrs.barcode_trigger] = function () {
- if (!$button.hasClass('o_form_invisible')) {
+ if (!$button.hasClass('o_invisible_modifier')) {
$button.click();
}
return $.when();
diff --git a/addons/board/static/src/less/dashboard.less b/addons/board/static/src/less/dashboard.less
index 36f0727c0ac..72131e2fa2e 100644
--- a/addons/board/static/src/less/dashboard.less
+++ b/addons/board/static/src/less/dashboard.less
@@ -111,7 +111,7 @@
}
// Override border of many2manytags defined for form_views
- .o_kanban_view .o_kanban_record .oe_kanban_list_many2many .o_form_field_many2manytags {
+ .o_kanban_view .o_kanban_record .oe_kanban_list_many2many .o_field_many2manytags {
border: none;
}
}
diff --git a/addons/calendar/static/tests/calendar_tests.js b/addons/calendar/static/tests/calendar_tests.js
index ad7f9fd141c..bf2326ce848 100644
--- a/addons/calendar/static/tests/calendar_tests.js
+++ b/addons/calendar/static/tests/calendar_tests.js
@@ -62,16 +62,16 @@ QUnit.module('calendar', {
},
});
- assert.ok(form.$('.o_form_field[name="partner_ids"]').hasClass('o_form_field_many2manytags'));
- assert.strictEqual(form.$('.o_form_field[name="partner_ids"] > span').length, 2,
+ assert.ok(form.$('.o_field_widget[name="partner_ids"]').hasClass('o_field_many2manytags'));
+ assert.strictEqual(form.$('.o_field_widget[name="partner_ids"] > span').length, 2,
"there should be 2 tags");
- assert.strictEqual(form.$('.o_form_field[name="partner_ids"] > span:first').text().trim(), "Jesus",
+ assert.strictEqual(form.$('.o_field_widget[name="partner_ids"] > span:first').text().trim(), "Jesus",
"the tag should be correctly named");
- assert.ok(form.$('.o_form_field[name="partner_ids"] > span:first .o_calendar_invitation').hasClass('accepted'),
+ assert.ok(form.$('.o_field_widget[name="partner_ids"] > span:first .o_calendar_invitation').hasClass('accepted'),
"Jesus should attend the meeting");
- assert.strictEqual(form.$('.o_form_field[name="partner_ids"] > span[data-id="2"]').text().trim(), "Mahomet",
+ assert.strictEqual(form.$('.o_field_widget[name="partner_ids"] > span[data-id="2"]').text().trim(), "Mahomet",
"the tag should be correctly named");
- assert.ok(form.$('.o_form_field[name="partner_ids"] > span[data-id="2"] .o_calendar_invitation').hasClass('needsAction'),
+ assert.ok(form.$('.o_field_widget[name="partner_ids"] > span[data-id="2"] .o_calendar_invitation').hasClass('needsAction'),
"Mohamet should still confirm his attendance to the meeting");
form.destroy();
diff --git a/addons/crm/static/src/js/tour.js b/addons/crm/static/src/js/tour.js
index ae2f7169825..271275cc83b 100644
--- a/addons/crm/static/src/js/tour.js
+++ b/addons/crm/static/src/js/tour.js
@@ -45,7 +45,7 @@ tour.register('crm_tour', {
content: _t("Schedule an activity by clicking here"),
position: "bottom"
}, {
- trigger: ".modal-body .o_form_field_many2one",
+ trigger: ".modal-body .o_field_many2one",
extra_trigger: ".o_opportunity_kanban",
content: _t(" You will be able to customize your followup activities. Examples: - introductory email
- call 10 days after
- second call 3 days after, ...
Select a standard activity for now on. "),
position: "bottom",
diff --git a/addons/crm_project_issue/views/crm_lead_views.xml b/addons/crm_project_issue/views/crm_lead_views.xml
index ff92a4d52c3..4ea470237c2 100644
--- a/addons/crm_project_issue/views/crm_lead_views.xml
+++ b/addons/crm_project_issue/views/crm_lead_views.xml
@@ -9,7 +9,7 @@
|