İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
215 Görünümler

I have initially registered a company. Then I updated the company name and addresses. But in the reports it is showing the primarily set comapny name and address. Then I see the data of the company it shows that the company_detail field contains the primary data while creating the company. It is not updated.


Can anyone help me to solve this issue?

Avatar
Vazgeç

Which report? What do you see in the Settings --> Users --> Companies Menu for your Company?

Üretici

Wherever the web.external_layout is used the previous informations are showing. And the Settings --> Users --> Companies Menu shows the updated information. But in the company_details html field contains the previous informations.

Hello,
The company_details field in Document Layout is a related field that points to the company’s company_details field. So, when you update the company’s address information, the company_details field remains unchanged.
Hope this is helpful!

En İyi Yanıt

The company details in reports come from the cached company details field, and it is not auto-updated when you edit the company record. To fix it, go to Settings → Companies → [Your Company] → Configure Document Layout, then save to regenerate details. Also, clear any cached report attachments (Technical → Attachments) and reprint the report. This will refresh the updated name and address in all reports.

Avatar
Vazgeç
En İyi Yanıt

Hi,


When company name and address changes aren't reflected in Odoo reports, it's often because reports are pulling data from the company_detail field, which stores a snapshot of the initial company information and isn't automatically updated. To fix this, identify the specific reports affected and access their QWeb views in technical settings. Modify the report's code to pull company name and address from the current company record (e.g., company.name) instead of the company_detail field.


While manually updating the company_detail field is possible, it's generally discouraged due to potential data inconsistencies. A more robust solution involves creating an automated process to update the company_detail field whenever company information changes. After making changes, clear the Odoo cache and thoroughly test the reports. Remember to enable developer mode, back up your database, and check for any custom modules affecting company information.


Hope it helps

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 25
1254
3
Ara 22
4025
2
Ara 24
2784
2
Şub 22
5857
0
May 15
3420