how to write compute field and its function in odoo12

#odootutorial #odoo12development #odoo12createmodule #computefieldodoo
define a compute field in odoo12 and write its compute function. how to define a compute field in odoo12.
email: odoomates@gmail.com

how to write compute field and its function in odoo12