mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
issue11810.diff [sao] Make domain with None value for xxx2Many fields stringable
This commit is contained in:
parent
70cf6088e8
commit
d1137b26a0
24
sao_issue11810.diff
Normal file
24
sao_issue11810.diff
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
diff --git a/sao/src/common.js b/sao/src/common.js
|
||||||
|
index f1354013..16d263d1 100644
|
||||||
|
--- a/sao/src/common.js
|
||||||
|
+++ b/sao/src/common.js
|
||||||
|
@@ -1183,17 +1183,8 @@
|
||||||
|
if (~['many2one', 'one2one', 'one2many', 'many2many']
|
||||||
|
.indexOf(field.type)) {
|
||||||
|
var test = function(value) {
|
||||||
|
- if (field.type == 'many2one') {
|
||||||
|
- if ((typeof value != 'string') &&
|
||||||
|
- (value !== null)) {
|
||||||
|
- return false;
|
||||||
|
- }
|
||||||
|
- } else {
|
||||||
|
- if (typeof value != 'string') {
|
||||||
|
- return false;
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- return true;
|
||||||
|
+ return ((typeof value == 'string') ||
|
||||||
|
+ (value === null));
|
||||||
|
};
|
||||||
|
if (value instanceof Array) {
|
||||||
|
return value.every(test);
|
3
series
3
series
|
@ -37,6 +37,7 @@ account_asset_update_asset.diff # [account_asset] decimals when updata asset #04
|
||||||
sao_colors.diff # [sao] Use the same colors as 5.4 version
|
sao_colors.diff # [sao] Use the same colors as 5.4 version
|
||||||
sao_remove_email.diff # [sao] Removes the email button from the toolbar
|
sao_remove_email.diff # [sao] Removes the email button from the toolbar
|
||||||
issue11526.diff # [sao] Form scroll with o2m with lots of columns
|
issue11526.diff # [sao] Form scroll with o2m with lots of columns
|
||||||
|
sao_issue11810.diff # [sao] Make domain with None value for xxx2Many fields stringable
|
||||||
|
|
||||||
commission_menu_group.diff # [commission] Creates ir.ui.menu-res.group record for commission menu and group
|
commission_menu_group.diff # [commission] Creates ir.ui.menu-res.group record for commission menu and group
|
||||||
|
|
||||||
|
@ -65,4 +66,4 @@ issue11745.diff # [stock] Moves of internal shipment are not valid when switchin
|
||||||
|
|
||||||
issue11750.diff # [stock] 'create' method execution frozen or extremly slow
|
issue11750.diff # [stock] 'create' method execution frozen or extremly slow
|
||||||
|
|
||||||
allow_none_list_price.diff # [sale_price_list] allow set none as price list in a sale with tax_included=True product_price_list
|
allow_none_list_price.diff # [sale_price_list] allow set none as price list in a sale with tax_included=True product_price_list
|
||||||
|
|
Loading…
Reference in a new issue