diff options
| author | wan <wan@odoo.com> | 2021-01-22 11:03:16 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2021-01-22 11:57:05 +0000 |
| commit | 523cfc447bada2617d0e2cce61806aa188bc59b8 (patch) | |
| tree | d99ba76a115b531fe85da5e6dea04857be907c2e /addons/web/static/tests | |
| parent | 8d0c25f359f92533eb25f2990d6e2aceef33b77a (diff) | |
[FIX] account: missing renaming type -> move_type
Following https://github.com/odoo/odoo/commit/d675dbaa4c7174591e0e7c1a3caf3e76877312ce
Also updated tests to be more consistant.
Regex used to find problematic lines:
`\btype\b.*\b(out|in)_(invoice|refund)\b`
closes odoo/odoo#64915
Related: odoo/enterprise#15908
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/web/static/tests')
| -rw-r--r-- | addons/web/static/tests/core/py_utils_tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/tests/core/py_utils_tests.js b/addons/web/static/tests/core/py_utils_tests.js index 11596a64539..e3cec9ede9c 100644 --- a/addons/web/static/tests/core/py_utils_tests.js +++ b/addons/web/static/tests/core/py_utils_tests.js @@ -894,7 +894,7 @@ QUnit.module('core', function () { var result = pyUtils.eval('contexts', [{ "__ref": "compound_context", "__contexts": [ - {"__ref": "context", "__debug": "{'type':parent.move_type}", + {"__ref": "context", "__debug": "{'move_type':parent.move_type}", "__id": "462b9dbed42f"} ], "__eval_context": { @@ -902,7 +902,7 @@ QUnit.module('core', function () { "__contexts": [{ "__ref": "compound_context", "__contexts": [ - {"__ref": "context", "__debug": "{'type': move_type}", + {"__ref": "context", "__debug": "{'move_type': move_type}", "__id": "16a04ed5a194"} ], "__eval_context": { @@ -967,7 +967,7 @@ QUnit.module('core', function () { } }]); - assert.deepEqual(result, {type: 'out_invoice'}); + assert.deepEqual(result, {move_type: 'out_invoice'}); }); QUnit.test('return-input-value', function (assert) { |
