[FIX] Encoding and copyrights

This commit is contained in:
Maxime Chambreuil
2018-03-29 13:28:46 -06:00
committed by Florent de Labarre
parent e1ff32cab8
commit e35c9521cf
8 changed files with 13 additions and 7 deletions

View File

@@ -45,13 +45,13 @@ class TestPrintingLabelZpl2(TransactionCase):
def new_label(self, vals=None):
values = self.label_vals.copy()
if vals is not None:
if vals:
values.update(vals)
return self.Model.create(values)
def new_component(self, vals=None):
values = self.component_vals.copy()
if vals is not None:
if vals:
values.update(vals)
return self.ComponentModel.create(values)