However, manipulating the DOM directly using jQuery might not be the recommended approach in Odoo, as Odoo follows a more declarative approach using QWeb templates.
To change the label of a checkbox in Odoo, you should override the specific QWeb template associated with the view. In your case, you want to change the label of a checkbox in the price_report.xml file.
Here's an example of how you can override the label using Odoo JavaScript and QWeb:
odoo.define('your_module.custom_price_report', function (require) {
"use strict";
var core = require('web.core');
var FieldOne2Many = require('web.FieldOne2Many');
var QWeb = core.qweb;
FieldOne2Many.include({
_renderEdit: function () {
this._super.apply(this, arguments);
// Override the label text
this.$('.o_field_many2manytags_checkbox label').text('New Label');
},
});
});
In this example, we are using the FieldOne2Many widget to override the rendering behavior of a One2Many field. We are using the _renderEdit method to change the label text.
Please replace 'your_module.custom_price_report' with the actual module name you are using. Also, make sure to adjust the selector according to the structure of your checkbox label.
Remember to check the Odoo version and the structure of the template in your specific version, as they might vary. Additionally, always test changes in a safe environment before applying them to a production system.