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

I need to only edit the field name of "Internal Reference" in product to 

"Customer Artwork code/Internal reference"

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

There is more than one way to do it. Some easier, some better. In each case, you must enable "developer mode" first. To do that, go to Settings / Dashboard, and look for "enable developer mode" link somewhere on the right.

  • The harder is to create a module with code from Giusy.

  • Easier is to customize the translation, finding and editing the label via Settings/Translations/Translated terms.

  • You can also customize the form view by inserting a help string. But there is a bunch of inherited view in product form and the right one is a bit hard to find. Click on the bug icon at the top right of the screen, then on Open View. In the search box, type "product". Then click on the "product.product.form" (I guess it is the one you want) then bug icon again and "Edit Form View".

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

Hi!!

You must enter:

_inherit = 'product.product'

default_code = fields.Char('Customer Artwork code/Internal reference', index=True)
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Add Label up of form แก้ไขแล้ว
1
ธ.ค. 19
9384
1
พ.ย. 19
5208
1
ธ.ค. 16
8089
how to create dynamic field labels? แก้ไขแล้ว
2
ธ.ค. 23
20421
2
ต.ค. 24
1841