~dr.dran/account-financial-tools/account_move_template6.1

« back to all changes in this revision

Viewing changes to account_credit_control/wizard/credit_control_printer.py

  • Committer: Guewen Baconnier @ Camptocamp
  • Date: 2012-11-07 09:21:30 UTC
  • Revision ID: guewen.baconnier@camptocamp.com-20121107092130-x5auydrhvbang3gt
[FIX] rename the channel manual to letter, that's more self-explanatory
(lp:c2c-addons/6.1  rev 89.2.3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        return res
42
42
 
43
43
    _columns = {
44
 
        'mark_as_sent': fields.boolean('Mark manual lines as sent',
45
 
                                       help="Only manual lines will be marked."),
46
 
        'print_all': fields.boolean('Print all "Ready To Send" lines of the "Manual" channel'),
 
44
        'mark_as_sent': fields.boolean('Mark letter lines as sent',
 
45
                                       help="Only letter lines will be marked."),
 
46
        'print_all': fields.boolean('Print all "Ready To Send" lines of the "Letter" channel'),
47
47
        'report_file': fields.binary('Generated Report', readonly=True),
48
48
        'state': fields.char('state', size=32),
49
49
        'line_ids': fields.many2many(
61
61
        line_obj = self.pool.get('credit.control.line')
62
62
        if print_all:
63
63
            domain = [('state', '=', 'to_be_sent'),
64
 
                      ('channel', '=', 'manual')]
 
64
                      ('channel', '=', 'letter')]
65
65
        else:
66
66
            domain = [('state', '=', 'to_be_sent'),
67
67
                      ('id', 'in', active_ids),
68
 
                      ('channel', '=', 'manual')]
 
68
                      ('channel', '=', 'letter')]
69
69
        return line_obj.search(cr, uid, domain, context=context)
70
70
 
71
71
    def print_lines(self, cr, uid, wiz_id, context=None):