Writing barcode on a template will only write it on the variants if the variant count is 1. Make the field readonly on the view according to this condition. closes odoo/odoo#41489 X-original-commit: a67ad076f4c079f33602f01ed2b8cbf741aeffc5 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>