Hi,
The issue occurs because the priority field in Odoo’s CRM model is a selection field that expects specific coded values (such as '0', '1', '2', '3') rather than plain text labels like “Low” or “High.” When your custom XML form sends these labels directly, Odoo doesn’t recognize them and moves the data to the Internal Notes section instead of saving it to the proper field. The Website Builder form, on the other hand, works correctly because it automatically uses the internal codes expected by the CRM model.
To fix this, you can either modify your form to send the correct internal codes by defining the <select> options with values like 0, 1, 2, and 3, or you can add logic in your custom controller to translate user-friendly text into the correct codes before creating the CRM record. For example, you can map “Low” to '0', “Normal” to '1', “High” to '2', and so on.
In summary, your form works except for the priority field because it passes text instead of internal values. Using the proper selection values or preprocessing the input in your controller ensures that the priority is correctly stored in the CRM record rather than appearing as additional notes.
Hope it helps