Skip to content
Snippets Groups Projects
Commit 66da3a87 authored by migodoo's avatar migodoo
Browse files

[fix] install from scratch

parent e97b50e6
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ class AccountInvoice(models.Model):
@api.model
def _default_arescop_group_id(self):
if self.env.user.company_id == self.env.ref('cgscop_account_arescop.company_arescop'):
if self.env.user.company_id == self.env.ref('cgscop_account_arescop.company_arescop', False):
return self.env.user.arescop_group_id.id
arescop_group_id = fields.Many2one(
......
......@@ -9,7 +9,7 @@ class Product(models.Model):
@api.model
def _default_arescop_group_id(self):
if self.env.user.company_id == self.env.ref('cgscop_account_arescop.company_arescop'):
if self.env.user.company_id == self.env.ref('cgscop_account_arescop.company_arescop', False):
return self.env.user.arescop_group_id.id
arescop_group_id = fields.Many2one(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment