I was trying to add aditional label formats using this module code:
from collections import defaultdict
from odoo import fields, models
class ProductLabelLayout(models.TransientModel):
_inherit = 'product.label.layout'
print_format = fields.Selection(selection_add=[
('2x4', '2 x 4')
], ondelete={'2x4': 'set default'})
And i thought that would do it, but it leads to an error. Any ideas ?
load could not load template ValueError: Invalid template id: '' Template: product.report_productlabel