Skip to content

Commit 3748406

Browse files
authored
Merge pull request #34 from prilk-consulting/feat/matching-dialog-in-parser
fix: make purchase order non-mandatory in matching dialog
2 parents 708c8fe + d64eb5b commit 3748406

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

apt_packages.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
libxml2-dev
2+
libxslt-dev

edocument/edocument/doctype/edocument/edocument.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function show_matching_dialog(frm, matching_data, config) {
135135
function save_matching(frm, dialog, original_data) {
136136
const data = JSON.parse(JSON.stringify(original_data));
137137
const values = dialog.get_values();
138+
if (!values) return; // Validation failed
138139

139140
// Update supplier
140141
if (data.supplier) {

edocument/edocument/profiles/peppol/matcher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@ def _get_dialog_config(matching_data: dict) -> dict:
530530
"fieldname": "purchase_order",
531531
"label": _("Match to Purchase Order"),
532532
"options": "Purchase Order",
533-
"reqd": 1,
534533
"default": po_data.get("matched"),
535534
}
536535
)

0 commit comments

Comments
 (0)