Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2771 มุมมอง

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'


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ก.ย. 25
21271
3
ส.ค. 25
3048
1
พ.ค. 25
2938
1
เม.ย. 25
3921
1
เม.ย. 25
4781