Skip to Content
Menu
This question has been flagged
1 Reply
2222 Views


 ir\.ui\.view"\ id="view_partner_form_custom">
\ \ \ \ view\.partner\.form\.custom\ \ \ \ \ \ \ \
\ \ \ \ res\.partner\ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \
\ \ \ \ \ \ \ \ \ \ \
\ \ \ \ \ \ \
\
\ ir\.ui\.view">\
\ \ \ \ res.partner.tree
res.partner













Patients
ir.actions.act_window
res.partner
kanban,tree,form,activity




the tree view is fine but the form view is showing all the fields in res_partner plus the new fields under the orginal page


the tree view is fine but the form view is showing all the fields in res_partner plus the new fields under the orginal page

Avatar
Discard
Best Answer

Hi,

The code added along with the question seems missing due to the issue in the odoo forum.

As i understood, you are looking to create a new menu and on clicking it you need to show a tree and form view of the res.partner model.

As you need to show new form and tree, first step is to create a new tree view and form view(not inherit and add field to original view).

For creating new tree view and form view, see: 

1. Form View: https://www.youtube.com/watch?v=v0Qn-HKtir8&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO&index=6

2. Tree View: https://www.youtube.com/watch?v=7hc3WxxWqKs&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO&index=7


Then you have to create a menu and its action and also has to specify the newly created view's id in the menu action.

To specify the views in the menu action, you can refer this sample:



Delivery Packages
product.packaging
[('product_id', '=', False)]


Also see this: https://www.youtube.com/watch?v=-2EAt9nN4o0

 
 


Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
97
5
Jul 24
86747
1
Dec 23
1807
2
Mar 23
1634
1
Nov 22
4585