Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
180 Widoki

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?

Awatar
Odrzuć

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

Autor

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!

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 25
1240
3
gru 22
3999
2
gru 24
2766
2
lut 22
5812
0
maj 15
3418