changeset 85b12def3651 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=85b12def3651
description:
Hide link on new record
There is no point to make search_count call for a record with negative
id as
the result is always empty.
issue11707
review411721003
diffstat:
src/view/form.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 6bbf7d85b46e -r 85b12def3651 src/view/form.js
--- a/src/view/form.js Sun Sep 18 12:24:04 2022 +0200
+++ b/src/view/form.js Sun Sep 18 12:27:39 2022 +0200
@@ -977,6 +977,10 @@
context = {},
pyson_ctx = {};
if (record) {
+ if (record.id < 0) {
+ this.hide();
+ return;
+ }
data = {
model: record.model.name,
id: record.id,