summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-04-25 13:47:41 +0000
committerNicolas Martinelli <nim@odoo.com>2019-05-14 06:55:04 +0000
commitc92b0ce3036dde24b638bb3fb5dd89d7afbd759f (patch)
tree97a0a150427025cb3f462fecc182e4e4431e5ca0 /addons/web/static/src/js
parent476a53bbf0c28a97caabff4ac2950df3132dd743 (diff)
[FIX] stock_account: COGS and reconciliation
Commit 98ee15977a3d9d84d made the Stock Interim accounts reconciliable, and introduced auto-reconciliation of related entries. This has the advantage to clean-up entries in these accounts. However, since these accounts are reconciliable, the entries will show up in the manual reconciliation widget (expected) and the bank reconciliation widget (not expected). There are 2 cases where it causes issues: - after migration from v11, the entries were not reconciliced. Although this will be fixed in the near future, it is too late for already migrated databases - using MRP. A list of components i costing Xi might be used to create a finished product of cost Y != sum(Xi). Indeed, the routing cost has to be taken into account. In this case, the entries are not fully reconcilied. The result is that the bank reconciliation widget ends up with an growing number of unreconcilied lines, and in the end making it impossible to use. In order to work around the issue, we prevent any account used as a stock interim account to be included in the bank reconciliation widget. For performance reasons, we directly search the `ir.property` table for the corresponding accounts instead of filtering AML thanks to `excluded_ids`. Closes #32611 opw-1963025 opw-1967462 closes odoo/odoo#32957 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions