~serpent-consulting-services/openerp-usa/fix-shipping_api_ups_cc

« back to all changes in this revision

Viewing changes to reports_address_us/inherit_spmsg_wiz.py

  • Committer: npgllc
  • Date: 2012-08-02 17:13:27 UTC
  • Revision ID: npgllc-20120802171327-2xgyyjjb5d1kx26y
Removed all the 6.0 compatible modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
from osv import osv, fields
3
 
 
4
 
class account_invoice_special_msg_us(osv.osv_memory):
5
 
    _inherit = 'account.invoice.special.msg'
6
 
 
7
 
    def check_report(self, cr, uid, ids, context=None):
8
 
        datas = {}
9
 
        if context is None:
10
 
            context = {}
11
 
 
12
 
        data = self.read(cr, uid, ids, [])[0]
13
 
        datas = {
14
 
             'ids': context.get('active_ids',[]),
15
 
             'model': 'account.invoice',
16
 
             'form': data
17
 
        }
18
 
        return {
19
 
            'type': 'ir.actions.report.xml',
20
 
            'report_name': 'notify_account.invoice.us',
21
 
            'datas': datas,
22
 
        }
23
 
 
24
 
account_invoice_special_msg_us()