Hi,
I have create a model with the code below:
from openerp import models, fields, api
class shop(models.Model):
_name = 'training02.shop'
name = fields.Char(string='Shop Name', required=True)
address = fields.Text(string='Address')
@api.one
def do_shop(self):
# The code that get login user
# ......
return True
I want to get login user in the function "do_shop".
Are there anyone can give me some advises?
Thanks.