Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7103 มุมมอง

I want to change the name of the columns to customize my software.

Anyone have an idea how to proceed?

Thanks

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Do you really want to change the name of the columns or want them to be presented to your users in french? If so, what you want is to translate your module. To do so, you can follow the steps pointed here: http://stackoverflow.com/questions/11556502/how-to-translate-an-openerp-module

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Well, In order to change the name of columns there is 2 way.

1.

You can inherit the column in your module and change the name. For example in Sale Order screen, there is column named "Date" now if you want to change that name to "Order Date" then you need to inherit that class in your module and just write following line,

'date_order': fields.date('Order Date', required=True, readonly=True, select=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),

So when you update the module, This name will replaced on every place where this column taken.

2.

Inherit the View/XML file and just add new attribute "string" and give new name. So in this way, only at once place the name will be replaced. At other place the name will remain old. 

Hope this helps,

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
4206
Columns tree แก้ไขแล้ว
1
ส.ค. 21
1532
Colimn invisible แก้ไขแล้ว
1
พ.ย. 19
2822
1
เม.ย. 25
885
0
มี.ค. 25
749