Join with a unique currency rate
issue11255 review435291004 (grafted from c2f056739e4856f2530b491653dfe8e5a8cb0461) --HG-- branch : 6.0
This commit is contained in:
1 parent
5829e87f38
commit
5ab2840944
1 file changed
+2
-2
@@ -93,7 +93,7 @@ class Abstract(ModelSQL, ModelView):
|
||||
condition=(move.currency == currency_rate.currency)
|
||||
& (currency_rate.start_date <= move.effective_date)
|
||||
& ((currency_rate.end_date == Null)
|
||||
| (currency_rate.end_date >= move.effective_date))
|
||||
| (currency_rate.end_date > move.effective_date))
|
||||
)
|
||||
.join(company,
|
||||
condition=move.company == company.id)
|
||||
@@ -103,7 +103,7 @@ class Abstract(ModelSQL, ModelView):
|
||||
condition=(company.currency == currency_rate_company.currency)
|
||||
& (currency_rate_company.start_date <= move.effective_date)
|
||||
& ((currency_rate_company.end_date == Null)
|
||||
| (currency_rate_company.end_date >= move.effective_date))
|
||||
| (currency_rate_company.end_date > move.effective_date))
|
||||
)
|
||||
.join(from_location,
|
||||
condition=(move.from_location == from_location.id))
|
||||
|
||||
Reference in new issue
Block a user