~openerp-dev/openobject-addons/acct_prj_hr_logs

« back to all changes in this revision

Viewing changes to account_voucher_payment/account_voucher_payment.py

  • Committer: pap(openerp)
  • Date: 2010-06-21 05:19:03 UTC
  • mfrom: (3638.1.26 trunk-dev-addons3)
  • Revision ID: pap@tinyerp.co.in-20100621051903-lm0gpjuehqakpntg
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
class account_voucher(osv.osv):
34
34
    _inherit = 'account.voucher'
35
35
    _columns = {
36
 
        'voucher_line_ids':fields.one2many('account.voucher.line','voucher_id','Voucher Lines', readonly=False, states={'proforma':[('readonly',True)]}),
 
36
        'voucher_line_ids':fields.one2many('account.voucher.line', 'voucher_id', 'Voucher Lines', readonly=False, states={'proforma':[('readonly',True)]}),
37
37
    }
38
38
 
39
39
    def action_move_line_create(self, cr, uid, ids, *args):
192
192
                         'general_account_id':line.account_id.id,
193
193
                         'ref':ref
194
194
                     }
195
 
                    self.pool.get('account.analytic.line').create(cr,uid,an_line)
 
195
                    self.pool.get('account.analytic.line').create(cr, uid, an_line)
196
196
            if mline_ids:
197
197
                self.pool.get('account.move.line').reconcile_partial(cr, uid, mline_ids, 'manual', context={})
198
198
            self.write(cr, uid, [inv.id], {'move_id': move_id})