Where does Odoo save the contents of My Dashboard - odoo

I need to know where Odoo saves the views that will be shown in (My Dashboard) when we click (Add to My Dashboard).
I looked in the table scheme and I could only find one related table: board_create
which is used to save the custom dashboards the user creates.
But I only want to find out where the contents (the views not the data) of the default Dashboard are saved in the database.

In OpenERP 7 and 8 you can find the view for dashboard in 'ir_ui_view_custom' table.
The view will be saved inside 'arch' column.
From OpenERP web interface this is will happened when you click 'add to my dashboard'
Javascript will invoke 'add_dashboard'
Javascript will make rpc request using '/board/add_to_dashboard' to openerp server
Openerp server will invoke "add_to_dashboard" function
Openerp server will save the view inside 'ir_ui_view_custom' table
Openerp use these files to process 'add to my dashboard'
/OpenErp7/addons/board/static/src/js/dashboard.js
/OpenErp7/src/main/openerp/addons/board/controllers.py
I hope this help.

Related

Prestashop module development: How can we save data from product page?

I'm here for help from those who have real experience in Prestashop module development.
I got stucked while saving data from the product page where I've created the field through the module via hookDisplayAdminProductsExtra.
And I didn't get an idea to save new field data from the admin product page.
So, please help if anyone has a solution for this.
Thank You.
Add a form in your hook returned TPL,
so that you can retrieve and save your custom data in DB by registering and triggering "actionProductUpdate" in the module (this hook is called when a product is saved) by using Tools::getValue() inside the hook on your POST data.
Other solution would be to save data in AJAX with a dedicated AdminController - You can insert a custom button in your TPL + an additional JS file (you can include it with hookBackofficeHeader) to trigger the AJAX call.
You can see more about AdminController in official devdocs.

how to configure two sap fiori tiles target same application but each displaying different view of application as home page

I have created a custom fiori application and deployed it to abap repository.Now I have to create two tiles.
1.one for displaying the record.
2.other for creating the new record.
Both the pages(display and new) are created in different views in same application.
can I set the first page in first tile and second page in second tile as home page while launching,without creating the same copy of project again.
Another option is to have 2 differents target mapping parameters on the tiles and use this.getOwnerComponent().getComponentData().startupParameters to retrieve them.
This way you can read the parameter and choose what to do.
However as suggested by user6177399 the guidelines for edit and display view would not suggest that.

DNN : communicate with another module

I am new to DNN. So please guide me for my this query.
My requirement is to display one user list page and that will contain one link called 'Edit'. On click of that link it's detail should be displayed.
For this, I have created one module which contains one user control called 'UserList' which is displaying list of users. Now for detail page
Should I create new module? If yes then how to communicate with that module from that 'Edit' link?
If there is any another way to have both view in same module?
Please guide me what to do in requirement?
Thanks in advance.

Openerp 7 access right layout

i have created security access for the user's. after creating i got the view like below image.
By giving permissions in .csv file like 1, 1, 1, 1 as shown in below image.
My Question is this permissions should be bring to front end. the admin can give access rights/permissions to the different users. Can we bring that permissions to front end?
Admin will directly file access like this.
And can we change the layout like below image.
How can i do this.
Thanks in advance
Your problem will be easily Solved using Creating the Controller in ODOO 8.0
You must have to Follow the Below steps for creating your layout As you want.
Create the new model class (in the form of object) in your module.
the class contain the login of get the detail of ir.model.access (which is base object of odoo)
Create the View file For displaying the your layout in the form of web page
the view file use the bootstrap classes for designing your web page layout.
the view file use as the rendering the detail of ir.model.access object
hear the Layout is based on Qweb Template as well as the web page menu for displaying your data in your webpage
Finally run the controller in your browser and see the detail of your access rights in the form of webpage

Querystring filter for PerformancePoint

Keep in my I am using Dashboard Designer, SharePoint 2010 and PerformancePoint Server 2010.
I have a dashboard homepage showing a KPI for sales, by brand. I added a custom property "View detailed report" on my KPI. When I click on that, I want to be able to go to a second dashboard page featuring 5 scorecards and 2 reports for my sales, by brand. The brand needs to be a filter.
Obviously, what I wanted to do is to tell my second page on which brand to filter by using a querystring parameter, something like ?BrandFilter=[Brand].[X].[Y] ...
But, in Dashboard Designer, you cannot (?) have querystring based parameters. I know I can do it directly in SharePoint (with the corresponding web part), but then when I deploy my dashboard again, I lose custom changes I do to my pages.
I tried to create a custom transform for scorecards that would read the querystring and add PageFilters, but I faced two problems:
1. I cannot access the HttpContext from there (of couse!)
2. That would not do it for reports.
What should I do? Drop Dashboard Designer and work directly in SharePoint? I wish there is a solution with Dashboard Designer!
Thanks!
I found a way to do that. I customized my scorecard generation (using C#) and added a javascript method to my master page to handle all the links that are clicked. When I click on a link in a scorecard, I get the parameter from the current URL and update a filter inside the page with that. I can share more details on request...