diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-12-13 10:02:02 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-12-16 12:03:19 +0000 |
| commit | 7a349da2291781c3e8ae88a08c9b85af6105ef01 (patch) | |
| tree | c7bdfb18c63d822e8a931dd8cb20559b0e7813dd /addons/note/data/res_users_data.xml | |
| parent | a322c5fe22b13971da26b346c6778f710399089e (diff) | |
[IMP] account: remove dynamic domain on payment_method_id on account.payment
Slight semantics change on the behavior of _onchange_journal with
respect to payment_method_id: in the old version, it would be set to
the first method of the new journal if no default had been provided.
However if a default had been provided, a non-default method selected,
then the journal was changed, the method could remain to something
invalid. Instead, check if the method is still valid and if not reset
to either the default (if one was provided) or the journal's first.
It also seems like it'd make sense to update self.amount based on
self.invoices directly (instead of going back to the active_ids) but
TestAccountMovePayment does *not* like that.
Task 2115472
closes odoo/odoo#41868
Related: odoo/enterprise#7260
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/note/data/res_users_data.xml')
0 files changed, 0 insertions, 0 deletions
