创建一个char字段 设置默认值即可,默认值代码如下: biggest = env['hr.employee'].search([],order='x_lsh desc',limit=1) if biggest: biggest_s = int(biggest.x_lsh) result =
else: result =