八个计算字段的代码如下:
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_socialsecurity']=871
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_societylocaitoncity']=341
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_contractlocation']=871
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_hetonglvyuedicity']=341
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_companylocate']=871
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_worklocation']=341
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_financelocate']=871
for record in self:
if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
record['x_financelocation']=341