Skip to Content
Menu
This question has been flagged
2 Replies
138 Views

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
Discard

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

Author

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!

Best Answer

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
2
Sep 25
1231
3
Dec 22
3990
2
Dec 24
2756
2
Feb 22
5803
0
May 15
3416