I am trying to understand how to modify a given field. Say "default_code" for a "product_template".
I want to modify "default_code" field of "product_template" in a custom method of "product_product". I have the "id" value of the "product_template" item I want to modify.
I am sure it is fairly basic and easy but I am still learning the basics.
How do you recover the right product_template object having its ID and how do you change default_code to FOOBAR?