Skip to Content
Menu
This question has been flagged
4 Replies
20607 Views

I'm working with Odoo CE 10.0
I have multiple companies

I have created chart of accounts.

I create a sale order.
I create an invoice.

The creation failes:
Cannot find a chart of accounts for this company, You should configure it.
As I already created several charts of account for the company for every possible type in the drop down list, I don't know what causes the model to not be able to read the chart of account. Traceback shows the error happens in:
File "/usr/lib/python2.7/dist-packages/odoo/addons/account/models/account_invoice.py", line 478, in _onchange_partner_id
rec_account = p.property_account_receivable_id

            pay_account = p.property_account_payable_id

            if not rec_account and not pay_account:

                action = self.env.ref('account.action_account_config')

              msg = _('Cannot find a chart of accounts for this company, You should configure it. \nPlease go to Account Configuration.').

Guess it's another bug. Any idea how to fix it or any workaround or what I'm doing wrong? Thanks in advance.

Avatar
Discard
Author

Bump!

Author Best Answer

Here is how I fixed it:
We are using multi-company mode.

I went to Accounting> Configuration> Settings> Install More chart templates

Installed a chart template.

executed query:
select * from account_chart_template

To get installed template ID. Couldn't find any other way to get that.

executed query:
update res_company set chart_template_id = <ID i got from previous step>

Went to the sale order.

Clicked on customer name.
Clicked Edit

Accounting Tab

Selected something for Account Receivable

Selected something for Account Payable

Saved the customer.

Went to the product in sale order.

Clicked on product name until it opened product in background. Closed the dialog and in the opened product page clicked Edit.

Invoicing Tab

Selected something for Income Account

Selected something for Customer Taxes

Now invoicing works!

Avatar
Discard
Best Answer

hello 

i think my friend @Fans is right

  
try this 
Select the partner you needs to set up, click "Edit" button and in accounting tab set Account Receivable and Account Payable.

Avatar
Discard
Best Answer

Hello.

The fields Account Receivable and Account Payable are company depended fields.

Therefore you needs to set up this field for every allowed company.

----------

If you use multi-company mode you have to set "Allowed Companies" in Settings -> Users -> Administrator 

In this field you have to fill all companies allowed for Administrator.

After that you will be able to change company by selecting in top-right corner of the screen.

Select the partner you needs to set up, click "Edit" button and in accounting tab set Account Receivable and Account Payable.

After that select another company in top menu and again set Account Receivable and Account Payable. You needs to repeat this operation for all companies from allowed companies list.

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
28
1
Nov 22
2260
1
Sep 18
2244
1
Aug 18
3625
0
Nov 24
41