mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
company_id on currency.rate.update.service needs to have a default value
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user