How can I copy a Quality Worksheet's template design in Odoo 16? - odoo

I want to create a server action "Duplicate" that will copy a selected Quality Worksheet and its template design. I know how to create server actions, but I'm not sure if its possible to write its python code that will copy the template design.
So far I've been able to create a server action that will copy a selected row and create a new Quality Worksheet entry, but it has the default, blank template design

Related

Updating linked table in Google Slides API

I see that there's a method for updating a linked Chart in a Slide (RefreshSheetsChartRequest), but in my presentation I have Tables pasted in from Google Sheets that are linked to data in a spreadsheet. I can update these manually by clicking the update buttons in the Slides UI, but is there a way to use the API to update all the linked tables in a sheet programmatically?
The feature request for refresh()'ing tables has been sitting for about 20 months now. Nevertheless, I found this workaround from the feature request on the issuetracker page:
"If anyone is reading this who wants the feature, one solution is to create a "table chart" in your sheet, from your existing table (that you were trying to link/update). It doesn't allow you to copy and paste from Sheets to Slides, but within Slides if you go to Insert -> Chart -> From Spreadsheet, then choose your sheet and chart (table). You can then use app scripts to automatically update it, as you can with a chart." - From ad...#lovecrafts.com
Hope this helps !

Restricted Permissions

So I'm using Tableau 10 and Tableau server. I don't have direct control over the server side of things. But I have full control over the tableau dashboard.
My Issue:
Users need to download the data from workbooks. When they go to one particular workbook the option to download the data is not available:
They can however download it using the tool tips - but to download the entire data set in one go, they'd need to use the option button above.
Tableau server settings:
These look like they are fine. I also have another workbook in this area and that one does not experience this problem.
I am "Publisher" and my boss is "Owner" - she can see it but I can't. All of this suggests it's a workbook setting?! But where?!?
Users need to download the data from workbooks. When they go to one particular workbook the option to download the data is not avaliable:
They can however download it using the tool tips - but to download the entire data set in one go, they'd need to use the option button above.
Tableau server settings:
These look like they are fine. I also have another workbook in this area and that one does not experience this problem.
I am "Publisher" and my boss is "Owner" - she can see it but I can't. All of this suggests it's a workbook setting?! But where?!?
Once a user clicks into a sheet of your dashboard, the Data or Crosstab selections of the Download button will be activated. It is greyed out on dashboards because there could be multiple sheets.
One trick is to make a dedicated download sheet and upload it with the rest of your dashboard. If you upload just a sheet, then all selections on the Download button are available without the user needing to click into anything.
On a published dashboard, if you click on a worksheet on the dashboard, the download links become available. This will avoid the need to upload the worksheet separately.

Linking two dashboards based on a table selection in Qlikview

In the past, I have used Tableau, another Data Visualization tool just like Qlikview where I could link a selection on a table or graph (or really an worksheet on a dashboard) to another dashboard by setting a source and destination dashboard/sheet. I did this using 'Action Filters'.
I am trying to do the same thing in Qlikview where I want to link two dashboards and transfer the selection in the source dashboard as a filter to the destination dashboard. Any idea if this is possible? And if yes, how can I implement this?
If you are using a trigger, say, on a button which opens a new QlikView Document, there are options to transfer state. This will carry over your current selection criteria. However, the fields in the destination document must have the same name.
See button properties -> Actions -> Add -> Action type external: Open QlikView Document. You will return to the Actions tab with options available to the newly added action.
Try to solve it with the data-model behind these two dashboard. If they use the same data resp. the data-tables are connected this works out of the box in QlikView because of the so called associative data-model in QlikView.
No need to connect the dashboards manually, zero configuration ...

Please let me know feasibility using Excel and VBA programming and suggest solution approach

We have following requirement to be done via excel and VBA programming. Please check and let me know if it feasible to do so and if not what way would be best to do it.
There would be excel spreadsheet say excel 2007/2010 with 2 tabs.
1st tab contains normal excel data
In 2nd tab user can enter a particular value and then click on a button in same tab. Is it possibly to have a button in excel tab and can it raise events like windows/web applications?
Now if button can be kept in excel and it can raise button click event then on such an event we need to create xml files. Is it possible to create xml files adhering to schema using excel &/or VBA programming
You need to activate the developer tab (from backstage go to Options and check the visibility of this tab) to get access to normal windows controls, like buttons and drop-down lists etc. You can easily place those in Excel sheets and write event handlers: the controls support the full range of events, including OnClick, OnMouseEnter etc...
You can write custom text files directly from VBA, but you can't validate those. The usual way to do so is just to concatenate small XML blocks into a bigger file, so XML output is more like a normal text output. But it works fine and as long as you do not need to perform something really complicated it is also ok.
EDIT: You can easily add references to custom COM objects (.dll or .ocx) and use them directly in your VBA code. One very helpful suggestion (see the comment below) is to use the MS XML library.
To add a reference just open the code editor (Alt + F11) and then go to Options -> References. Most of the references you need will be already in the list and you just have to check them, but you can also add your own custom libraries by clicking on Browse.

Excel VBA - Run macro on Application open

I've got this Design Template I want to apply to the application by default whenever it's opened. But a document needs to be open in order to apply a Design template. So I have to target some handlers whenever a new or existing workbook is opened/created.
So which approach can I take here?
I think you can use the Workbook_open event. It sounded like that would be sufficient for the behavior that you want, but since you want your macros to be global, you might need to make them into an add in for them.
The add-in approach is best for applying to existing workbooks.
If you're looking to have a standard design template applied to each new workbook, though, I suggest you create a template.
To do this:
Create a new empty workbook
Apply the design template
Save the file as Book.xlt (for Excel 2003; Book.xltx for versions 2007, 2010) in the following folder: %appdata%\Microsoft\Excel\XLSTART\
Each time you create a new workbook (by opening Excel or hitting the "New" button), it'll be generated from this template file.