7.0 imp name template store

Add store to field name_template to avoid unecessary browse and write.
Done by back-porting 2 commits from 8.0 and improving the store declaration to restrict the trigger for product on the field product_tmpl_id

(PR on odoo https://github.com/odoo/odoo/pull/3277)