Merge pull request #271 from akretion/8.0-fix-create-currency-rate-service

company_id on currency.rate.update.service needs to have a default value
This commit is contained in:
Yannick Vaucher
2015-08-17 15:25:50 +02:00

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(