Skip to content
Extraits de code Groupes Projets
Valider 7413430e rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[FIX] error export without wizard

parent 60f8c6ff
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -14,7 +14,10 @@ odoo.define("afac_partner.DataExport", function (require) {
A flag (checkbox) afac is checked
*/
_exportData(exportedFields, exportFormat, idsToExport) {
const afac = this.$("#o-export-afac-project");
let afac = null;
if (this.$el) {
afac = this.$("#o-export-afac-project");
}
if (afac && afac.is(":checked")) {
if (_.isEmpty(exportedFields)) {
Dialog.alert(this, _t("Please select fields to export..."));
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter