summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-03-29 10:08:22 +0200
committerNicolas Martinelli <nim@odoo.com>2017-03-29 12:57:52 +0200
commit989d7068e9fc210350cc4531e8f757364363d40d (patch)
tree87af24c84beac541fba95f48267169f9cab592e6 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parenta4bc731f041559283afd5a1d11f34e7547c11bb5 (diff)
[FIX] account_asset: multi-currency depreciation
- Create an asset category with a journal of type "Purchase" or "Miscellaneous". - Create an asset in a currency different from the company currency - Validate and post the first entry. The error "The amount expressed in the secondary currency must be positive..." is raised. The sign is determined by the journal type. However, in case of an asset depreciation or a deferred revenue, the amount is always positive. The amount is negative in case of an asset created from a refund invoice (see commit c844534f8ac9). There is actually no need of a `sign` variable. In case amount is positive: - first move is a credit, therefore `amount_currency` is negative - second move is a debit, therefore `amount_currency` is positive In case amoutn is negative: - first move is a debit, therefore `amount_currency` is positive - second move is a credit, therefore `amount_currency` is negative opw-725358
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions