company_id on currency.rate.update.service needs to have a default value

This commit is contained in:
Alexis de Lattre
2015-07-31 12:19:32 +02:00
parent 46d5f78e66
commit 26a4c8bc60

View File

@@ -212,7 +212,10 @@ class Currency_rate_update_service(models.Model):
string='Currencies to update with '
'this service')
# Link with company
company_id = fields.Many2one('res.company', 'Company')
company_id = fields.Many2one(
'res.company', 'Company',
default=lambda self: self.env['res.company']._company_default_get(
'currency.rate.update.service'))
# Note fileds that will be used as a logger
note = fields.Text('Update logs')
max_delta_days = fields.Integer(