~anna-g/micronaet/anna

« back to all changes in this revision

Viewing changes to intervention_report_trip/wizard/wizard_create_intervent.py

  • Committer: Anna Micronaet
  • Date: 2013-09-12 12:34:15 UTC
  • Revision ID: anna@micronaet.it-20130912123415-302dzcrx2jtnn9rr
Modifiche cartelle

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
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
 
7
#    d$
 
8
#
 
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.
 
13
#
 
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.
 
18
#
 
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/>.
 
21
#
 
22
##############################################################################
 
23
from osv import fields, osv
 
24
 
 
25
class intervent_report_create_wizard(osv.osv_memory):
 
26
    ''' Wizard for create new intervent from invoice and linked to the document
 
27
    '''
 
28
    _name = "intervent.report.create.wizard"
 
29
    _description = "Wizard intervent creation"
 
30
 
 
31
    def button_create(self, cr, uid, ids, context=None):
 
32
        ''' Create ntervent
 
33
        '''
 
34
        if context is None:
 
35
            context = {}
 
36
        
 
37
        wiz_proxy = self.browse(cr, uid, ids)[0]    
 
38
        domain=[]
 
39
 
 
40
        return False
 
41
 
 
42
    _columns = {
 
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'),      
 
46
    }
 
47
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: