コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3212 ビュー


 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

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
1596
5
7月 24
92855
1
12月 23
3022
2
3月 23
3495
1
11月 22
6661