代码如下,但是需注意在前台配置的代码和customrized model中配置的代码均不起作用,要在customirized fields中配置:
for record in self:
record['x_khzf'] = record['x_khdf1'] + record['x_khdf2'] + record['x_khdf3']
代码如下,但是需注意在前台配置的代码和customrized model中配置的代码均不起作用,要在customirized fields中配置:
for record in self:
record ['x_khzf'] = record ['x_khdf1'] + record ['x_khdf2'] + record ['x_khdf3']