Skip to content
Snippets Groups Projects
Commit def4f514 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

Removed if

parent 7719f9f2
No related branches found
No related tags found
2 merge requests!86Fix partners company,!6614.0 fix migration error and nice to have
......@@ -48,10 +48,9 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel):
},
}.get(account_chart_external_id, False)
if values:
values['property_account_income_categ_id'] = self.env.ref(values['property_account_income_categ_id'])
values['property_account_expense_categ_id'] = self.env.ref(values['property_account_expense_categ_id'])
product_category_company_share.write(values)
values['property_account_income_categ_id'] = self.env.ref(values['property_account_income_categ_id'])
values['property_account_expense_categ_id'] = self.env.ref(values['property_account_expense_categ_id'])
product_category_company_share.write(values)
def create_capital_share_product_template(self):
# We use sudo to be able to copy the product and not needing to be in the main company
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment