Extract the way images are set on a product into a new method to allows having the same behavior with other variant fields. Now also used to set an Intrastat code varying from the template one. Task id #2369561 closes odoo/odoo#65348 Related: odoo/enterprise#15099 Related: odoo/upgrade#1996 Signed-off-by: William André (wan) <wan@odoo.com>