تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4014 أدوات العرض

I have a multi company instance so I can select on what company I am left from the user on the right side of the menu. Normally when I generate an report that has a header it shows the company logo and address of the selected company.

But from time to time it generates reports with the data of a different company than the selected?! I can't reproduce it that's the biggest problem.

Any one know why this happens?

And is there a way to use a stored company id for the header, so it doesn't matter what company is selected at the time of report generation?   

الصورة الرمزية
إهمال

I have the same problem.How did you solve this?

الكاتب

created my own layout and before calling header template I added <t t-if="not o and doc">

<t t-set="o" t-value="doc"/>

</t>

<t t-if="my_company">

<t t-set="company" t-value="my_company.sudo()"></t>

</t>

<t t-if="o and 'company_id' in o and not my_company">

<t t-set="company" t-value="o.company_id.sudo()"></t>

</t>

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 18
2469
2
أكتوبر 23
2604
0
ديسمبر 18
2714
1
ديسمبر 18
2895
1
يناير 18
5915