diff --git a/apt_packages.txt b/apt_packages.txt new file mode 100644 index 0000000..3e83da4 --- /dev/null +++ b/apt_packages.txt @@ -0,0 +1,2 @@ +libxml2-dev +libxslt-dev diff --git a/edocument/edocument/doctype/edocument/edocument.js b/edocument/edocument/doctype/edocument/edocument.js index 965509f..331f112 100644 --- a/edocument/edocument/doctype/edocument/edocument.js +++ b/edocument/edocument/doctype/edocument/edocument.js @@ -135,6 +135,7 @@ function show_matching_dialog(frm, matching_data, config) { function save_matching(frm, dialog, original_data) { const data = JSON.parse(JSON.stringify(original_data)); const values = dialog.get_values(); + if (!values) return; // Validation failed // Update supplier if (data.supplier) { diff --git a/edocument/edocument/profiles/peppol/matcher.py b/edocument/edocument/profiles/peppol/matcher.py index 14ee282..eb90d08 100644 --- a/edocument/edocument/profiles/peppol/matcher.py +++ b/edocument/edocument/profiles/peppol/matcher.py @@ -530,7 +530,6 @@ def _get_dialog_config(matching_data: dict) -> dict: "fieldname": "purchase_order", "label": _("Match to Purchase Order"), "options": "Purchase Order", - "reqd": 1, "default": po_data.get("matched"), } )