Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2766 Переглядів


 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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лист. 24
808
5
лип. 24
90454
1
груд. 23
2411
2
бер. 23
2678
1
лист. 22
5851