create_uid = fields.Many2one('res.users')
yasser= fields.Char(string='success', compute='create_user')
def create_user(self):
user = self.env.user.name
odoo = 'OdooBot'
for rec in self:
if user == odoo:
rec.yasser = 'test'
else:
rec.yasser = user
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
245
أدوات العرض
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل