From 30cf7bc798ddede8e610001146f4a76352aa582f Mon Sep 17 00:00:00 2001 From: wan Date: Tue, 6 Aug 2019 07:02:07 +0000 Subject: [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) --- addons/web/static/src/js/fields/relational_fields.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'addons/web/static/src/js/fields/relational_fields.js') 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($('