how to modify luntbuild mail notification template? - automation

We are using luntbuild-1.6.2 for build automation. We would like to add a couple of variables in the email notification sent via luntbuild like subversion location etc.
Is it possible to modify the email template for luntbuild?

After reading the manual once again I was able to locate the files where the template resides.
Simple edit
<luntbuild installation path>/templates/email/simple-build.vm
file and you can customize the template using a set of predefined variables.

Related

Modify product labels xml in Odoo

I’m having several issues when trying to modify the default template of product labels. I need to add some new fields to the existing template that generates the document of product labels (and to design in with proper dimensions).
I am not able to find the xml template to modify it because I can’t find the file. This is a topic I have been researching deeply through the internet during the lasts days and all my attempts have been unsuccessful.
On the Internet, it is said that the product labels are generated using the product/report/product-label.xml and product_label.xsl:
https://www.odoo.com/es_ES/forum/ayuda-1/question/product-label-prints-only-one-variant-attribute-74684
The issue is that I can’t files these files in my Odoo installation folder (tested with both Windows and Ubuntu). These are my folder contents in Ubuntu usr/lib/python3/dist-packages/odoo/addons/product/report:
Should I create the xml and xsl files?
If so, how can I reference them? I have already tried to modify the xml file to try if the options for rendering the report change and nothing’s happens...
Here is the xml that I have been modifying (looks like it is an index of the different available reports but I haven’t found any official documentation regarding this) (note that I’ve added a number to each report title to see if something changes):
And the select options are still the same, as it can be seen in the following screenshot.
Am I’m missing something? It looks like these templates are located somewhere else and I’m editing these files without success (and restarting the Odoo server doesn’t work either...).
I'm using Odoo v12.
Thank you for your help!
<report> tag in odoo is actually shortcut of ir.action.report model record creation, qweb-pdf or qweb-html type of report needs a qweb template to render the report output, which is mentioned in name and file properties in the report tag.
After changing the files in a odoo module, if that module is already installed before change, you have to update the module. You can update from Apps menu of odoo web panel. For example, in this case, you are making change in product module which is named Products & Pricelists in odoo Apps. After making change, update that module and you will find the changes effective. Also, if you are adding new XML file, you have to add respective file name in __manifest.py__, or have to import in __init.py__ if you are adding new python file in the module.

Set "Notes" in Device Info via MQTT on Cumulocity

While registring a new Machine with static templates via MQTT I couldn't find a way to put something into the "Notes" Field at Device Profile in the Device Info.
Is there a template or another way to put some additional Information in that Textbox?
There is no static template for setting the notes but you can create your own inventory PUT template. The fragment for this text box is simply c8y_Notes which is a string.
To use the template you would send:
123,<serialOfDevice>,"My device notes"
I recommend to use quotes for longer strings to handle line breaks etc. correctly.

Custom widget in thingworx

Could any body let me know how to create custom widget in thingworx.
I don't have any idea how to create custom widget.
Please help me.
I have to build drag drop custom widget and we can use that custom widget with other widget. e.g with tree widget,... etc.
I would recommend reading the official Extension Package Development Guide:
However, the best way to start making a new widget is to take an existing widget that does something like you want, and modify it. Built in widgets exist at
TomcatRoot\webapps\Thingworx\Common\thingworx\widgets
Here's a very brief guide to getting started with that. If you were to want to copy Textbox:
Open the metadata.xml and change the "TextBox" to "MyWidget".
There are two sections in this file. The "ExtensionPackage" section holds metadata for the pacakge (version, vendor, etc.)
The second section , "Widgets" defines the widget files. Change the name of all these files to use your name e.g. MyWidget.ide.js Don’t forget to change name in the “Widget” xml tag too.
Rename all necessary folder and files, replacing "TextBox" with "MyWidget"
Open the both .js files and change the definition in each to reflect "MyWidget"
In the ide file, change the icon path "widgetIconUrl" and the "name" property.
Select the "ui" folder and the metadata.xml file and package them both into a new zip file. This file should import into Thingworx.
I would suggest searching for or asking this question in the PTC IoT Community, which is much more active for Thingworx developers than StackExchange.
UPDATE: The latest documentation for ThingWorx 9 Extension Package Development Guide can be found here

How to add a custom footer to pdfs created by Liferay DocumentConversionUtil (and open office)

I am trying to add a custom footer to pdfs created from docx files on my liferay6.2 installation.
Specifically I have linked up open office, and I am successfully converting the documents from docx to pdf to embed them in my portal, but I want to add a 'pdf created on ' message as a footer.
I am open to doing this through liferay/java or through a setting in open office, but I can't find a way to do either at this time.
Thanks,
Joe
You will need to implement your own OpenOfficeDocumentConverter. The current implementation does this:
XComponent document = loadDocument(inputUrl, loadProperties);
refreshDocument(document);
storeDocument(document, outputUrl, storeProperties);
You could overwrite refreshDocument and do what you would like to do with the document (check the UNO API to find out how to change the document to add the footer).
Unfortunately you can't inject your converter with the spring configuration or portal.properties. Either you create an ext-plugin and replace the whole OpenOfficeDocumentConverter with your own implementation. Or you set DocumentConversionUtil._documentConverter using reflection to your extension.

How to set a custom location as SuggestedStartLocation of filepicker/folderpicker

As windows store apps runs in so called sand-boxed environment,I decided to use folderpicker to get access to files.
I wanted to show the user his %localappdata% folder when file/folder picker is launched(C:\Users\Admin\AppData\Local)
I couldn't find a way to do this or to set any custom location ("C\testFolder") instead of through setting predefined PickerLocationId enumeration.
Any help would be really appreciated.
It is not possible. WinRT doesn't have any provision to set ANY folder as SuggestedStartLocation.