mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #161 from StefanRijnhart/8.0-invoices_to_receive_closed_fiscalyears
[FIX] Allow receivables from closed fiscal years
This commit is contained in:
@@ -58,7 +58,8 @@ class AccountMoveLine(orm.Model):
|
||||
if not args:
|
||||
return []
|
||||
line_obj = self.pool.get('account.move.line')
|
||||
query = line_obj._query_get(cr, uid, context=context)
|
||||
search_context = dict(context or {}, all_fiscalyear=True)
|
||||
query = line_obj._query_get(cr, uid, context=search_context)
|
||||
where = ' and '.join(map(lambda x: '''(SELECT
|
||||
CASE WHEN l.amount_currency > 0
|
||||
THEN l.amount_currency
|
||||
|
||||
Reference in New Issue
Block a user