mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] base_report_to_printer: Remove migration script from previous version
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2016 SYLEAM (<http://www.syleam.fr>)
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from openerp import SUPERUSER_ID, api
|
|
||||||
from openerp.tools.config import config
|
|
||||||
|
|
||||||
__name__ = 'Create a printing.server record from previous configuration'
|
|
||||||
|
|
||||||
|
|
||||||
def migrate(cr, v):
|
|
||||||
with api.Environment.manage():
|
|
||||||
uid = SUPERUSER_ID
|
|
||||||
env = api.Environment(cr, uid, {})
|
|
||||||
env['printing.server'].create({
|
|
||||||
'name': config.get('cups_host', 'localhost'),
|
|
||||||
'address': config.get('cups_host', 'localhost'),
|
|
||||||
'port': config.get('cups_port', 631),
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user