Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3216 Vues


 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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
nov. 24
1599
5
juil. 24
92857
1
déc. 23
3026
2
mars 23
3497
1
nov. 22
6664