Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2495 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 25
2448
1
abr 25
3469
1
abr 25
4298
1
abr 25
1779
4
mar 25
6885