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
5942 Widoki

Hi,

I have just now installed all required modules for webkit following the port in this forum to make the webkit run:

I receive below message when I try to open the sale order report generated by webkit.

callable_(context, args, *kwargs) File "memory:0x7f1ab8239f90", line 36, in render_body File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e) AttributeError: "Field 'address' does not exist in object 'browse_record(res.partner, 1)'"

I have searched on the internet and found out that the address field is removed from the partner in openERP7 .Is this error message related to that one ?

Is related webkit module available for openERP 7 ?

Awatar
Odrzuć
Najlepsza odpowiedź

We spent a while wondering this as well, and at least for us the problem was caused by the default header that the sale order webkit report is using.

The "Base Reports Portrait Header" header (provided by base_headers_webkit module) makes a reference to ${company.partner_id.address}, which seems to cause the issue.

As a workaround you can pick base_headers_webkit's header "Base Minimum Portrait Header" which does not include the address field. Not a perfect workaround, but at least you can get past the error and start to work on the actual reports.

You can replace the header by opening sale_order_webkit/sale_report.xml and changing the webkit_header parameter from webkit_header="base_headers_webkit.base_reports_portrait_header" to webkit_header="base_headers_webkit.base_minimum_reports_portrait_header"

The root cause is still somewhere else, though, since on another 7.0 installation also the default headers worked fine.

Awatar
Odrzuć
Autor

Thanks for your extensive reply

Najlepsza odpowiedź

Or you can create your own 'address' entity in the header file. Just use each of address fields exclusively, like:

${company.partner_id.street or ''|entity} ${company.partner_id.zip or ''|entity} ${company.partner_id.city or ''|entity} t: ${company.partner_id.phone or ''|entity} m: ${company.partner_id.email or ''|entity}

Of course you have put these in tr,td html's tags.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 24
2219
11
gru 21
16162
12
kwi 16
18340
1
mar 15
6380
1
mar 15
4034