1
# -*- coding: utf-8 -*-
2
##############################################################################
4
# OpenERP, Open Source Management Solution
5
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6
# Copyright (C) 2004-2012 Micronaet srl. All Rights Reserved
9
# This program is free software: you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation, either version 3 of the License, or
12
# (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
##############################################################################
23
from osv import fields, osv
25
class intervent_report_create_wizard(osv.osv_memory):
26
''' Wizard for create new intervent from invoice and linked to the document
28
_name = "intervent.report.create.wizard"
29
_description = "Wizard intervent creation"
31
def button_create(self, cr, uid, ids, context=None):
37
wiz_proxy = self.browse(cr, uid, ids)[0]
43
'user_id': fields.many2one('res.users', 'User', required=False),
44
'partner_id': fields.many2one('res.partner', 'Partner', required=False),
45
'datetime': fields.datetime('Date'),
47
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: