Skip to content

Commit

Permalink
[8.0][FIX] crm_action error default value in company_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
kikopeiro committed Mar 7, 2017
1 parent 9880eca commit 33cc9cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crm_action/__openerp__.py
Expand Up @@ -5,7 +5,9 @@
{
'name': 'CRM Action',
'version': '8.0.1.2.0',
'author': 'Savoir-faire Linux,Odoo Community Association (OCA)',
'author': """Savoir-faire Linux,
Kiko Peiro (www.factorlibre.com),
Odoo Community Association (OCA)""",
'license': 'AGPL-3',
'category': 'CRM',
'summary': 'Adds action management in CRM',
Expand Down
4 changes: 2 additions & 2 deletions crm_action/models/crm_action.py
Expand Up @@ -26,8 +26,8 @@ def check_change(self):

company_id = fields.Many2one(
'res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get(
'crm.action'))
default=lambda self: self.env['res.company'].browse(
self.env['res.company']._company_default_get('crm.action')))

partner_id = fields.Many2one(
'res.partner', string='Customer')
Expand Down

0 comments on commit 33cc9cf

Please sign in to comment.