hello, i need help for this problem in odoo 14.
i created a widget button to save data from pop up form to display inside the .
but everytime i clicked the widget button i created and i checked the console, the values of the checkbox and radio button is always return false and undefined.
here is the code of widget (deret_value & mesin_produksi_id is radio button)
_onClickButton: function () {
var self = this;
var deret_value = this.$('input[name="deret_value"]:checked').val();
var mesin_produksi_id = this.$('input[name="mesin_produksi_id"]:checked').val();
var putus_lusi = this.$('#putusLusi').is(":checked");
var putus_pakan =this.$('input[data-field="putus_pakan"]').is(":checked");
var bendera_merah =this.$('input[data-field="bendera_merah"]').is(":checked");
var ambrol =this.$('input[data-field="ambrol"]').is(":checked");
var dedel =this.$('input[data-field="dedel"]').is(":checked");
var hb =this.$('input[data-field="hb"]').is(":checked");
var naik_beam =this.$('input[data-field="naik_beam"]').is(":checked");
var oh =this.$('input[data-field="oh"]').is(":checked");
var preventif =this.$('input[data-field="preventif"]').is(":checked");
var lain_lain =this.$('textarea[data-field="lain_lain"]').val();
and here is the xml code