[FIX] account: default journal on payment shouldn't be misc
This was fixed by https://github.com/odoo/odoo/commit/8327b67cf5498a1d9d133ec02f0e7619c4ce26d1 but somehow lost in the forward port I suppose
This commit is contained in:
@@ -146,7 +146,7 @@ class account_abstract_payment(models.AbstractModel):
|
||||
def _compute_journal_domain_and_types(self):
|
||||
journal_type = ['bank', 'cash']
|
||||
domain = []
|
||||
if self.currency_id.is_zero(self.amount):
|
||||
if self.currency_id.is_zero(self.amount) and self.has_invoices:
|
||||
# In case of payment with 0 amount, allow to select a journal of type 'general' like
|
||||
# 'Miscellaneous Operations' and set this journal by default.
|
||||
journal_type = ['general']
|
||||
|
||||
Reference in New Issue
Block a user