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

Hey, Odoo Wizards,

Could anyone tell me if creating the reference field in the customer creation automated and locked for the end user is possible without coding?

Thanks.

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

Could I get more details, like what should be the value of reference field.

You can go to edit form in customer form and set readonly="1"

for automation you can reference the following video

https://youtu.be/6pAx_g6-FkQ

Here you can select the model as contact. and trigger will be "on save"

and python code will be record.update({'ref': 'your_value'})

Ảnh đại diện
Huỷ bỏ
Tác giả

the value of the reference field for the first customer should be C00001 then increased +1 when creating a new customer, I want the value of the reference field to auto-increased based on the value of the reference field for the last customer created.
Thanks Sreejith Sasidharan for your help.