Thank you both !!
It works perfectly.
On Feb 7, 1:36 pm, Massimo Di Pierro
wrote:
> db.IQWAGFTY.TYUUSR.default=dba.auth_user(auth.user_id).username.upper()
>
> On Feb 7, 1:31 pm, Omi Chiba wrote:
>
>
>
>
>
>
>
> > I want to set username (Not id) to table when the record is created
> > using "imp
db.IQWAGFTY.TYUUSR.default=dba.auth_user(auth.user_id).username.upper()
On Feb 7, 1:31 pm, Omi Chiba wrote:
> I want to set username (Not id) to table when the record is created
> using "import_from_csv_file".
> The following model cause error because when you open the website
> auth.user_id
I usually do this:
default = auth.user.username.upper() if auth.user else None
3 matches
Mail list logo