Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2581 Vizualizări

When I create a new Approval Type, there is an option in the form, also called Approval Type, with a tool-tip which reads 'Allows you to define which documents you would like to create once the request has been approved'.

How can I modify the selection? Currently the only option i have is 'Create RFQ's'


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can customize the selection options by extending the ApprovalCategory model. By using Python code like the one provided below, you can add additional choices to the existing ones. For instance, if you wish to include another option, you can incorporate the following code snippet:

class ApprovalCategory(models.Model):

    _inherit = 'approval.category'


    approval_type = fields.Selection(selection_add=[('purchase', 'Create RFQ\'s')])


Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
aug. 25
2636
1
mai 25
2655
1
apr. 25
3648
1
apr. 25
4505
1
apr. 25
1974