summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-08-06 07:02:07 +0000
committerwan <wan@odoo.com>2019-12-04 08:37:19 +0000
commit30cf7bc798ddede8e610001146f4a76352aa582f (patch)
treeb7be7f8370a56e20b8b43caec56e861bcf89ef61 /addons/web/static/src/js/fields
parent363959784e7ed86973c03ab91e6b1976456e5104 (diff)
[IMP] account: add account.reconcile.model.line
Task 2046908 Instead of having all the fields duplicated with second_*, we have now a o2m allowing us to * have more than 2 lines * reduce duplicated code * fix bugs and add features at only one place We also remove the computation of writeoff and suggestions from the client side as some code was 4-upled before (twice in in client and twice in server side). The logic is now only at one place. closes odoo/odoo#38119 Related: odoo/enterprise#6324 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
-rw-r--r--addons/web/static/src/js/fields/relational_fields.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js
index ed0bcc3e8c8..61ecb3af1da 100644
--- a/addons/web/static/src/js/fields/relational_fields.js
+++ b/addons/web/static/src/js/fields/relational_fields.js
@@ -2756,6 +2756,13 @@ var FieldSelection = AbstractField.extend({
var required = this.attrs.modifiersValue && this.attrs.modifiersValue.required;
for (var i = 0 ; i < this.values.length ; i++) {
var disabled = required && this.values[i][0] === false;
+ console.log(this.values);
+ console.log(i);
+ console.log(this.values[i])
+ // console.log(this.values[i][0])
+ if (this.values[i] == undefined) {
+ debugger
+ }
this.$el.append($('<option/>', {
value: JSON.stringify(this.values[i][0]),