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:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
232
Переглядів
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація