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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
kwi 23
|
1842 | ||
|
1
maj 25
|
2390 | ||
|
1
kwi 25
|
3422 | ||
|
1
kwi 25
|
4231 | ||
|
1
kwi 25
|
1733 |