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.
Related
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.
Title says it all. I want to create a custom prestashop page, but I don't know how.
What I actually want to do: create a button that opens a custom page. I can't find anything useful in the internet so I came here to ask for help. Could someone explain me how to do that?
There are many ways to add a new page, it depending in your needs.
By a CMS page, you can add the content you need in the HTML editor, like the product description: http://doc.prestashop.com/display/PS16/CMS+-+Managing+Static+Content
By a front controller from a module: https://devdocs.prestashop.com/1.7/modules/concepts/controllers/front-controllers/
By creating a new page, here my explanation: Prestashop custom page with own template
The point 1 is the most easy way for a common user, the rest of the points require advanced knowledge.
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.
I'm new to OpenERP and not really getting how to do this.
What I need is a new field in the purchase requisition form called “project”. A user should be able to select to which project a quotation belongs. Then if the requisition is accepted and a quotation is formed this field should also be loaded to that form (with the correct project, that was selected on the requisition).
I’ve been reading a lot on the internet, but either can’t find the answer or I just don’t understand it.
I read some stuff about needing to create your own module to customize the forms, and found some step to step explanations. But then I still don’t get how to link the fields.
So if someone could give me an answer on how to do this, or direct me to an (easy to understand) explanation. That would be great.
yes you should make a custom module for this. you will find enough tutorials on how to do that on the internet (e.g. http://www.pixelite.co.nz/article/adding-additional-fields-using-custom-module-openerp-7).
in this custom module you have to extend the model purchase.order with one new field, call it like project_id. it will be a many2one type of field and so called other object (relation) will be either project.project or project.task.
after that you have to extend the form view (and maybe the tree view) of purchase.order (xml_id: purchase.purchase_order_form). just add your field where you want to have it ;-)
now get it done :-P i hope i could've helped you :-)
edited:
Ok, you if you got Admin rights on the OpenERP System you can try it the in-system-way. just open the models menu unter settings -> technical -> database structure
search for purchase.order and open the model form view. now edit the record and add a new field like (scroll down and click "add new item"):
now you have to create a new view, to extend the original one. go to settings -> technical -> user interface -> views.
create a new one like this:
that's it. if you open a purchase order, you will see the project field right under the supplier reference.
I need to add a new page inside manufacture order which shows the tree view of bom of the main product.Something like the image below
Does anyone have idea about it?I need it in 6.0.3
If you are using new web client i.e. 6.1+ this feature you are asking that "add a new page inside manufacture order which shows the tree view of bom" Does not works,
Pure Solution is use GTK client or Go Implement the missing feature in web client.
or What you can do is yo can provide some Right hand side short cut act windows which will open the new view which is expected by you.
and IF I am not missing anything then this matches with your older post : how to group one2many list view inside another model in openerp 6.1? ;)
Thank You