Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

custom title of form view for custom module

By
Zadeek
on 9/16/14, 12:26 PM 868 views

hello,

I have created a new module and for some reason i am unable to change the form title as shown in the figure Screenshot.

Can anyone help me with this?

4

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 9/16/14, 1:27 PM

Hello Zadeek,

It is quite simple. There is a rule in openerp that your each object should have one "name"  field. If not you should define any field as your name field in "_rec_name".

Syntax:

class mail_alias(osv.Model):
    _name = 'my.object'
    _rec_name = 'my_field'

_rec_name: Name of the field in which the name of every resource is stored. Default value: ‘name’. Note: by default, the name_get method simply returns the content of this field.

In short, you just have to either define "name" field or "_rec_name" in your object.

See _rec_name for more information.

thanks that helped but if i wanted a string like in salesorder so001 how can i acheive that..

Zadeek
on 9/17/14, 12:32 AM

Here is your answer to generate sequence: www.odoo.com/forum/help-1/question/how-to-implement-sequences-8830.

Sudhir Arya (SA)
on 9/17/14, 12:55 AM

Thanks that helped a lot.

Zadeek
on 9/17/14, 1:41 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/16/14, 12:26 PM
Seen: 868 times
Last updated: 3/16/15, 8:10 AM