Is there a way to make the tags field required when creating a new opportunity in the CRM ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
2061
Tampilan
A "work around" to solve this without studio or additional modules could be creating an Automated Action to pop up a warning when creating new opportunities:
code:
if record.stage_id.name == 'New' and not record.tag_ids: raise UserError('Please set a tag for this opportunity.')
You can use attrs to make it readonly on Opportunity state.
attrs="{'required': [('type','=','opportunity')]}"
already did that I want to get an invalid value error when the tags field is empty
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Apr 23
|
1842 | ||
|
1
Mei 25
|
2386 | ||
|
1
Apr 25
|
3422 | ||
|
1
Apr 25
|
4231 | ||
|
1
Apr 25
|
1732 |