mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] Encoding and copyrights
This commit is contained in:
committed by
Lois Rilo
parent
2f9de1f5f6
commit
6d1d31907e
@@ -1,3 +1,4 @@
|
|||||||
|
# Copyright (C) 2018 Florent Mirieu (<https://github.com/fmdl>)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from odoo.tests.common import TransactionCase
|
from odoo.tests.common import TransactionCase
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ class TestPrintingLabelZpl2(TransactionCase):
|
|||||||
|
|
||||||
def new_label(self, vals=None):
|
def new_label(self, vals=None):
|
||||||
values = self.label_vals.copy()
|
values = self.label_vals.copy()
|
||||||
if vals is not None:
|
if vals:
|
||||||
values.update(vals)
|
values.update(vals)
|
||||||
return self.Model.create(values)
|
return self.Model.create(values)
|
||||||
|
|
||||||
def new_component(self, vals=None):
|
def new_component(self, vals=None):
|
||||||
values = self.component_vals.copy()
|
values = self.component_vals.copy()
|
||||||
if vals is not None:
|
if vals:
|
||||||
values.update(vals)
|
values.update(vals)
|
||||||
return self.ComponentModel.create(values)
|
return self.ComponentModel.create(values)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Copyright (C) 2018 Florent Mirieu (<https://github.com/fmdl>)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Copyright (C) 2018 Florent Mirieu (<https://github.com/fmdl>)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from odoo.tests.common import TransactionCase
|
from odoo.tests.common import TransactionCase
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2016 SYLEAM
|
Copyright 2016 SYLEAM
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2016 SYLEAM
|
Copyright 2016 SYLEAM
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# Copyright (C) 2018 Florent Mirieu (<https://github.com/fmdl>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import base64
|
import base64
|
||||||
@@ -6,7 +9,7 @@ import io
|
|||||||
|
|
||||||
|
|
||||||
from PIL import Image, ImageOps
|
from PIL import Image, ImageOps
|
||||||
from odoo import models, api, fields, _
|
from odoo import fields, models, _
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -425,7 +428,7 @@ class WizardImportZPl2(models.TransientModel):
|
|||||||
if field in self.model_fields.keys():
|
if field in self.model_fields.keys():
|
||||||
field_type = self.model_fields[field].get('type', False)
|
field_type = self.model_fields[field].get('type', False)
|
||||||
if field_type == 'boolean':
|
if field_type == 'boolean':
|
||||||
if value == '' or value == zpl2.BOOL_NO:
|
if not value or value == zpl2.BOOL_NO:
|
||||||
value = False
|
value = False
|
||||||
else:
|
else:
|
||||||
value = True
|
value = True
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<record id="view_wizard_import_zpl2_form" model="ir.ui.view">
|
<record id="view_wizard_import_zpl2_form" model="ir.ui.view">
|
||||||
<field name="name">wizard.import.zpl2.form</field>
|
<field name="name">wizard.import.zpl2.form</field>
|
||||||
|
|||||||
Reference in New Issue
Block a user