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

Good Evening All,


ii have create a custom moduel in odoo 16 named product master and have created a tree and form views.once created the products in the form view it shows the like this 

Product Master/product.master,1


what is the problem and how can i remove the moduel name and the number in odoo 16 

アバター
破棄
最善の回答

Hey Vignesh,

Hope you are doing well.

When you are creating new model you should define '_rec_name'. 
_rec_name: It is intended to define the record value used to display. By default it is assumed by convention that you have a field named 'name' in your model.

Please find code in comment. 

hope this can help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

アバター
破棄

Here is sample code:

class CustomClass(models.Model):
_name = 'cutsom.model'
_description = 'Custom Module'
_rec_name = 'field_name'

最善の回答

Please refer this video for better understanding rec_name concept

https://www.youtube.com/watch?v=d_cyPsVc7vg

アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 24
2728
1
2月 24
2481
3
11月 23
3828
1
9月 23
3322
3
8月 25
2374