How to validate error message if some field is empty or uncheck etc ? is there any built-in function tag am using required in xml view but not working ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
I tried but not working am using on the xml??
from odoo import fields, models, api, _from odoo.exceptions import UserError
class SchoolProfile(models.Model): _name = "school.profile"
name = fields.Many2one("school.profile", string="School Name", required=True)
did you upgrade the module after making the changes in xml?
yesi did but still not working
Hi,
The following ways allow you to make a field required: either updating in Python or XML.
<field name="employee_id" required="1"/>
OR
employee_id = fields.Many2one('hr.employee', string='Employee', required=1)
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
أكتوبر 24
|
1478 | ||
|
0
يوليو 24
|
1239 | ||
|
0
نوفمبر 23
|
1432 | ||
|
0
سبتمبر 23
|
2062 | ||
Odoo Server Error RPC_ERROR
تم الحل
|
|
1
نوفمبر 22
|
4139 |
yes i did but still not working