[FIX] account: bad forward port

Field remaining from 9.0 when cherry picking #16236 to #16282
This commit is contained in:
Martin Trigaux
2017-04-06 15:57:03 +02:00
parent f79e2fd318
commit 58918fb826
+1 -3
View File
@@ -1462,9 +1462,7 @@ class AccountPartialReconcile(models.Model):
@api.multi
def _prepare_exchange_diff_move(self, move_date):
self.ensure_one()
res = {'journal_id': self.company_id.currency_exchange_journal_id.id,
'rate_diff_partial_rec_id': self.id,
}
res = {'journal_id': self.company_id.currency_exchange_journal_id.id}
# The move date should be the maximum date between payment and invoice
# (in case of payment in advance). However, we should make sure the
# move date is not recorded after the end of year closing.