Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5297 Lượt xem

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

"Customer Artwork code/Internal reference"

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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".

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi!!

You must enter:

_inherit = 'product.product'

default_code = fields.Char('Customer Artwork code/Internal reference', index=True)
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 19
9318
1
thg 11 19
5140
1
thg 12 16
8017
2
thg 12 23
20328
2
thg 10 24
1723