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
d5251553c5
commit
f17ab4aa81
2 changed files with 26 additions and 0 deletions
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);
|
2
series
2
series
|
@ -23,6 +23,8 @@ 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_issue11810.diff # [sao] Make domain with None value for xxx2Many fields stringable
|
||||
|
||||
worker_logger.diff #[trytond] Move exception handling into transaction to keep the database name
|
||||
|
||||
statement_of_account.diff # [account] Cumulate balance of previous fiscal years
|
||||
|
|
Loading…
Reference in a new issue