mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Fixed lint errors
This commit is contained in:
@@ -34,7 +34,9 @@
|
|||||||
'report_xml_action_view.xml',
|
'report_xml_action_view.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'test': [],
|
'external_dependencies': {
|
||||||
|
'python': ['cups'],
|
||||||
|
},
|
||||||
'installable': False,
|
'installable': False,
|
||||||
'auto_install': False,
|
'auto_install': False,
|
||||||
'application': True,
|
'application': True,
|
||||||
|
|||||||
@@ -18,12 +18,20 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
import cups
|
|
||||||
import errno
|
import errno
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from openerp import models, fields, api
|
from openerp import models, fields, api
|
||||||
|
|
||||||
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import cups
|
||||||
|
except ImportError:
|
||||||
|
_logger.debug('Cannot `import cups`.')
|
||||||
|
|
||||||
|
|
||||||
class Printer(models.Model):
|
class Printer(models.Model):
|
||||||
_inherit = 'printing.printer'
|
_inherit = 'printing.printer'
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- res.users form view (My preferences popup) -->
|
<!-- res.users form view (My preferences popup) -->
|
||||||
<record model="ir.ui.view" id="view_users_form">
|
<record model="ir.ui.view" id="view_users_prefs">
|
||||||
<field name="name">res.users.form.printing.tray</field>
|
<field name="name">res.users.form.printing.tray</field>
|
||||||
<field name="model">res.users</field>
|
<field name="model">res.users</field>
|
||||||
<field name="inherit_id" ref="base_report_to_printer.view_users_form_simple_modif" />
|
<field name="inherit_id" ref="base_report_to_printer.view_users_form_simple_modif" />
|
||||||
|
|||||||
Reference in New Issue
Block a user