~koi-accounting-modules-maintainer/koi-accounting-modules/7.0-fixed-asset

« back to all changes in this revision

Viewing changes to ar_account/object_other/account_invoice_line.py

  • Committer: Andhitia Rama
  • Date: 2015-07-07 08:29:06 UTC
  • mfrom: (230.1.59 koi_account_trunk)
  • Revision ID: andhitia.r@gmail.com-20150707082906-2gr15c7mbx4fmixf
Merge dr trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                    obj='account.account_invoice_line_analytic_distribution',
37
37
                    fields_id='account_invoice_line_id',
38
38
                    ),
 
39
 
 
40
                'move_id' : fields.many2one(string='# Acc. Entry',
 
41
                    obj='account.move.line',
 
42
                    ),
 
43
 
 
44
                'move_line_id' : fields.many2one(string='To Be Reconciled With',
 
45
                    obj='account.move.line',
 
46
                    ),
39
47
                }
40
48
 
41
49
    def _get_detail_amount(self, cr, uid, line):
121
129
 
122
130
        move_id = obj_line.create(cr, uid, value)
123
131
 
 
132
        self.write(cr, uid, [line.id], {'move_id' : move_id})
 
133
 
124
134
        return move_id
 
135
 
 
136
    def _reconcile(self, cr, uid, line):
 
137
        obj_move_line = self.pool.get('account.move.line')
 
138
 
 
139
        if line.move_id and line.move_line_id:
 
140
            obj_move_line.reconcile_partial(cr, uid, [line.move_id.id,line.move_line_id.id])
 
141
 
 
142
        return True
125
143
account_invoice_line()
126
144
 
127
145