Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2991 Visualizzazioni

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'


Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
5
set 25
22683
3
ago 25
3327
1
mag 25
3232
1
apr 25
4161
1
apr 25
5007