summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-06-12 12:16:16 +0200
committerGitHub <noreply@github.com>2017-06-12 12:16:16 +0200
commitc257daf310978f54991c1ca6cd936f0948108931 (patch)
treedff4eb11285add747c64b4534146935070d68f28 /addons/web/static/src/js/views/basic/basic_model.js
parent5952c394e5e917a6a5f9c0780dd23198c26fbef3 (diff)
[FIX] account: import does not set partner_type
When creating an account.payment via the form view, an onchange sets the partner_type based on the payment_type (which has a contextual default) and the field is view-required. When importing however if the user does not specify a partner_type (which they are not specifically told about) the payments will be created with no partner_type and thus classified as "internal payments" and will not appear in either the Sales > Payments or the Purchases > Payments, confusing them and making them think the import has failed despite having correctly validated and raised no errors. Add a default_partner_type matching each action's domain (and default_payment_type) such that the imported payments are correctly classified by default. OPW-746479 fixes #17388 closes #17497
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions