[MIG][10.0]sql_export v10

This commit is contained in:
aheficent
2017-11-10 16:19:48 +01:00
committed by David Beal
parent e1309c07e8
commit bf6bc65af2
14 changed files with 96 additions and 137 deletions

View File

@@ -1 +1,3 @@
# -*- coding: utf-8 -*-
from . import wizard_file

View File

@@ -1,29 +1,13 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2015 Akretion (<http://www.akretion.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright (C) 2015 Akretion (<http://www.akretion.com>)
# @author: Florian da Costa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import datetime
from lxml import etree
from openerp import models, fields, api, osv
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo import models, fields, api, osv
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
class SqlFileWizard(models.TransientModel):

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data>
<record id="sql_file_wizard_view_form" model="ir.ui.view">
@@ -14,14 +14,14 @@
<field name="file_name" invisible="1"/>
<footer>
<button name="export_sql" string="Export" type="object"
icon="gtk-apply" />
icon="fa-download"/>
or
<button special="cancel" string="Cancel" type="object"
icon="gtk-cancel" />
icon="fa-times" />
</footer>
</form>
</field>
</record>
</data>
</openerp>
</odoo>