odoo developer mode to add calculated fields

1 \ dependence of the value required for the field, separated by commas:

x_studio_, x_studio__1, x_studio_03

 

2 \ computational logic:

for record in self:

   record['x_studio__3'] = record.x_studio_/(record.x_studio_+record.x_studio_03)

note:

The second line to an empty four-frame.

 

Crane from ah:

 

 

 

Walter:

x_weight,x_studio_wg,product_uom_qty

 

Walter:

for record in self:

    record['x_weight']=record.x_studio_wg*record.product_uom_qty

 

Manabu wear uniform picture:

 

Guess you like

Origin www.cnblogs.com/misstaste/p/10930988.html