@fctc/widget-logic 4.7.0 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/dist/widget.js +3 -2
- package/dist/widget.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5349,7 +5349,8 @@ var many2oneFieldController = (props) => {
|
|
|
5349
5349
|
xNode,
|
|
5350
5350
|
isForm,
|
|
5351
5351
|
widget,
|
|
5352
|
-
in_list_view
|
|
5352
|
+
in_list_view,
|
|
5353
|
+
isEditTable
|
|
5353
5354
|
} = props;
|
|
5354
5355
|
const { env } = (0, provider_exports.useEnv)();
|
|
5355
5356
|
const { action, user } = useAppProvider();
|
|
@@ -5436,7 +5437,7 @@ var many2oneFieldController = (props) => {
|
|
|
5436
5437
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
5437
5438
|
setTempSelectedOption(null);
|
|
5438
5439
|
} else if (propValue) {
|
|
5439
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5440
|
+
if (isForm && !isEditTable && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5440
5441
|
fetchGetDetail.mutate(
|
|
5441
5442
|
{
|
|
5442
5443
|
model: optionsObject?.model,
|
package/dist/index.mjs
CHANGED
|
@@ -5444,7 +5444,8 @@ var many2oneFieldController = (props) => {
|
|
|
5444
5444
|
xNode,
|
|
5445
5445
|
isForm,
|
|
5446
5446
|
widget,
|
|
5447
|
-
in_list_view
|
|
5447
|
+
in_list_view,
|
|
5448
|
+
isEditTable
|
|
5448
5449
|
} = props;
|
|
5449
5450
|
const { env } = (0, provider_exports.useEnv)();
|
|
5450
5451
|
const { action, user } = useAppProvider();
|
|
@@ -5531,7 +5532,7 @@ var many2oneFieldController = (props) => {
|
|
|
5531
5532
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
5532
5533
|
setTempSelectedOption(null);
|
|
5533
5534
|
} else if (propValue) {
|
|
5534
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5535
|
+
if (isForm && !isEditTable && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
5535
5536
|
fetchGetDetail.mutate(
|
|
5536
5537
|
{
|
|
5537
5538
|
model: optionsObject?.model,
|
package/dist/widget.js
CHANGED
|
@@ -4575,7 +4575,8 @@ var many2oneFieldController = (props) => {
|
|
|
4575
4575
|
xNode,
|
|
4576
4576
|
isForm,
|
|
4577
4577
|
widget,
|
|
4578
|
-
in_list_view
|
|
4578
|
+
in_list_view,
|
|
4579
|
+
isEditTable
|
|
4579
4580
|
} = props;
|
|
4580
4581
|
const { env } = (0, provider_exports.useEnv)();
|
|
4581
4582
|
const { action, user } = useAppProvider();
|
|
@@ -4662,7 +4663,7 @@ var many2oneFieldController = (props) => {
|
|
|
4662
4663
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
4663
4664
|
setTempSelectedOption(null);
|
|
4664
4665
|
} else if (propValue) {
|
|
4665
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4666
|
+
if (isForm && !isEditTable && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4666
4667
|
fetchGetDetail.mutate(
|
|
4667
4668
|
{
|
|
4668
4669
|
model: optionsObject?.model,
|
package/dist/widget.mjs
CHANGED
|
@@ -4647,7 +4647,8 @@ var many2oneFieldController = (props) => {
|
|
|
4647
4647
|
xNode,
|
|
4648
4648
|
isForm,
|
|
4649
4649
|
widget,
|
|
4650
|
-
in_list_view
|
|
4650
|
+
in_list_view,
|
|
4651
|
+
isEditTable
|
|
4651
4652
|
} = props;
|
|
4652
4653
|
const { env } = (0, provider_exports.useEnv)();
|
|
4653
4654
|
const { action, user } = useAppProvider();
|
|
@@ -4734,7 +4735,7 @@ var many2oneFieldController = (props) => {
|
|
|
4734
4735
|
methods?.setValue(name, null, { shouldDirty: true });
|
|
4735
4736
|
setTempSelectedOption(null);
|
|
4736
4737
|
} else if (propValue) {
|
|
4737
|
-
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4738
|
+
if (isForm && !isEditTable && optionsObject?.service && optionsObject?.model && !propValue?.display_name && !in_list_view) {
|
|
4738
4739
|
fetchGetDetail.mutate(
|
|
4739
4740
|
{
|
|
4740
4741
|
model: optionsObject?.model,
|