[FIX] base: currency: add missing dependance to compute function of 'rate' field

This commit is contained in:
Olivier Colson
2018-04-27 10:47:52 +02:00
parent 517fb99926
commit edc955d28d
+1
View File
@@ -34,6 +34,7 @@ class Currency(models.Model):
]
@api.multi
@api.depends('rate_ids.rate')
def _compute_current_rate(self):
date = self._context.get('date') or fields.Datetime.now()
company_id = self._context.get('company_id') or self.env['res.users']._get_company().id