콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3236 화면

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
2705
1
2월 24
2463
3
11월 23
3803
1
9월 23
3309
3
8월 25
2316