İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3217 Görünümler


 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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 24
1599
5
Tem 24
92857
1
Ara 23
3026
2
Mar 23
3497
1
Kas 22
6665