Odoo report error (translate_doc....) - report

I've modified a report in Odoo and am trying to display some data when I print an invoice. Currently I am having a problem with a field which I've created myself. I'm trying to call the field as below:
<span t-field="company.payment_methods"/>
however when I try and print the report I get the error message:
QWebException: "'NoneType' object has no attribute '_fields'" while evaluating
"translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.report_invoice_document')"
Any help getting around this error? If I take out that field then I don't get the same error and it just prints normally
Thanks

Related

How to use Poco::Net::MediaType

I need to be able to create a multipart mail message including images.
I found this suggestion Sending HTML code in a mail using Poco library but when I try this with VS2015/Windows/C++
Poco::Net::MediaType mediaType("multipart", "related");
I get
Error C2440 'initializing': cannot convert from 'initializer list' to 'int' AdvancedEmailer
Error C2079 'mediaType' uses undefined class 'Poco::Net::MediaType' AdvancedEmailer
I've looked at https://pocoproject.org/docs/Poco.Net.MailMessage.html but I can't figure out what's wrong
whats the correct usage for Poco::Net::MediaType

datagrid "Sorry an error occurred" when adding a new column

I have a datagrid that is working but when I add another simple column, I the the "Sorry an error occurred" error message. I've tried it for a couple of fields I have on the view and even reverted it back to what I had before. It's still giving me this error. I'd include code but I don't know what to include. Does anyone know this issue?

Unexpected token Error while creating view that uses pivot

I'm not able to create view in oracle through a select query that uses PIVOT function
It gives the following error.I'm not able to understand what's the problem.Please help
Refer to the image at the following address for error snapshot.The error can be seen at
following address"https://www.dropbox.com/s/sq98mvfourobo7w/Error.PNG"
I can't see your item from work (dropbox is blocked), but I ran across this issue using the create view wizard in sql developer: it would throw out an error for an unexpected token ! PIVOT.
The workaround was to simply use CREATE OR REPLACE FORCE VIEW from the SQL worksheet and avoid the wizard.

Unable to get rendered content error in SDL Tridion

I would like to know the scenarios in which "Unable to get rendered content" error might occur in SDL Tridion. We use VBScript for templating and I get a few scenarios as listed below in my event logs. But I am not able to make head or tail of it.
Scenario 1:
Unable to get rendered content of Page (tcm:48-215280-64).
Error 5 occurred while rendering the Component Presentation (SMS gruppe:Artikkel):
Invalid procedure call or argument: 'RemoveChild' (source:
.RemoveChild .selectSingleNode("tcm).
Scenario 2:
Unable to get rendered content of Component (tcm:57-215271).
No data found. [ETA_ITEMS, U]
Cannot insert the value NULL into column 'ITEM_ID', table 'Tridion_cm_2011.dbo.ITEM_ASSOCIATIONS'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Scenario 3:
Unable to get rendered content of Page (tcm:52-213774-64).
Error 1017 occurred while rendering the Page: Expected 'Then' (source:
If Rendermode() != "PreviewDynamic" Then).
Scenario 4:
Unable to retrieve rendered data from Component Presentation.
Error 3004 occurred while rendering the Component Presentation (Nytt dagstilbud iPhone 4S:Artikkel):
Write to file failed. (source:
.SaveToFile strTempFile, conSaveCreateOverWrite).
Scenario 5:
Unable to get rendered content of Page (tcm:48-215164-64).
Error 3004 occurred while rendering the Component Presentation (Ring inn julen med Comoyo:Artikkel):
Write to file failed. (source:
.SaveToFile strTempFile, conSaveCreateOverWrite).
Scenario 6:
Unable to get rendered content of Page (tcm:48-215164-64).
Invalid value for property 'BinaryContent'. Unable to open uploaded file: C:\Windows\TEMP\tcm-48-215158square940.jpg.
It would be helpful if any of you could give me any clue as of where the problem might possibly be so that I could have a lead. Thanks a lot in advance!
Scenario 1 looks like a VBScript syntax error, so most likely a typo in your template code. Scenario 2 looks a bit more problematic, because its a database error. Scenario 3, 4, 5 and 6 all look like standard VBScript syntax errors again.
Some examples, Scenario 3:
If Rendermode() != "PreviewDynamic" Then
Has a syntax error and it mentions Expected 'Then' so we know the error is somewhere before the Then statement. Taking a closer look, you have parentesis behind the variable RenderMode, which is incorrect, it should be:
If RenderMode != "PreviewDynamic" Then

Pass data from one report to other report using "SUBMIT"

I have to pass the user name from one report to another report in ABAP.
I am using the following code.
SUBMIT zpgm_to WITH fld_pgm2 eq fld_pgm1 .
'zpgm_to ' is the report to where i have to pass the value.
'fld_pgm2' is the field in report zpgm_to .
'fld_pgm1' is the field in report zpgm_from which contains the value to be passed.
While i am using debugging i found that the value is not passing to the zpgm_to report.
I could not find where i had done the mistake. If anyone cross this issue before, pls do the needful.
I can' t see a problem in your example code.
If you have a typo in fld_pgm2 and you use an undefined parameter, the syntax check does not report an error.
Please try the extended syntax check:
Program->Check->Extended Syntax Check
Check if External program interfaces is checked.
Run the check. If there is a typo, you get an error ___ is not a parameter or a select option in report ___
Check the definition of fld_pgm2. it must define as PARAMETER ,not Data.

Resources