Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

We get the following errors when we try to invoice our Woocommerce orders.


Incompatible companies on records: - 'Draft Invoice (* 7790) (126648)' belongs to company 'Wakeboss' and 'Journal' (journal_id: 'Customer Invoices') belongs to another company. 


Does anyone have any idea what this is about?  We do have multicompany in Odoo.  When looking at the Customer Invoices journal, it is in the name of the company using Woocommerce.  However, the other company obviously has the same journal.

Avatar
Buang
Jawaban Terbai

Hello,

What is your Odoo version?

And do you have access to the Odoo .py files?


It looks like the company verification is done with the function:

_check_company()

in the file (for odoo 17):

odoo/models.py


If you have Odoo installed locally it is possible to temporarily modify the files to make it provide more info about the error.


Or if you have access to the database maybe it is possible to get more info. If you know the record id.


Also if you have access to the files you can hire someone to check the files of the Woocommerce connector module.

To find the place where it assigns the "journal_id".

(If you cannot get the official support from Emiro)


Stanislav


Avatar
Buang
Jawaban Terbai

Hi,


The message indicates that the 'Draft Invoice (* 7790) (126648)' belongs to the company 'Wakeboss,' while the 'Journal' with journal_id 'Customer Invoices' belongs to another company.

To address this issue, you want to review the data and ensure that records such as invoices and journals are consistently associated with the correct companies.

1. Go to Accounting -> Invoice -> Select that invoice

2. Check the journals -> Ensure the journal belongs to the company 'Wakeboss'

3. Choose the journals of the company 'Wakeboss'

Hope it helps

Avatar
Buang
Penulis

The problem is we are trying to create the invoice. Most SO's invoice just fine. These asre only the invoices created coming from Woocommerce. We use the Woocommerce connector application from Emipro. This is the only one Odoo recommends, and I can't get support from either company. I was told by Odoo support that once the Emipro "Common Connector Library" was uninstalled in staging, they could invoice the sales order. When I look at the Journal, it belongs to the company I am using for Woocommerce. The other company does have a journal with the same name, but it belongs specifically to the other company.

How do I figure out the exact ID of a journal to see which one it is trying to use?

I do not even understand how

Post Terkait Replies Tampilan Aktivitas
0
Mar 22
2742
2
Feb 23
6060
1
Jul 21
7656
1
Jul 21
4099
2
Mar 24
1769