Skip to content
Snippets Groups Projects
Commit 9f00eddb authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[FIX] stock_account: Fix stock_account_data_post_install.yml remaining old api calls

parent 1eac2bbe
Branches
Tags
No related merge requests found
......@@ -11,7 +11,7 @@
#Check if property exists for stock account journal exists
PropertyObj = self.env['ir.property']
properties = PropertyObj.search([('name', '=', 'property_stock_journal'), ('company_id', '=', company_id)])
AccountJournal = self.pool.get('account.journal')
AccountJournal = self.env['account.journal']
#If not, check if you can find a journal that is already there with the same name, otherwise create one
if not properties:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment