~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_move_line.py

  • Committer: Andhitia Rama
  • Date: 2015-07-20 02:57:31 UTC
  • mfrom: (230.1.77 koi_account_trunk)
  • Revision ID: andhitia.r@gmail.com-20150720025731-u1tq0sb16v4y4pg6
merge dgn trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
                
145
145
 
146
146
    _columns =  {
147
 
                'name' : fields.char(string='Name', size=255, required=True),
 
147
                'name' : fields.char(string='Name', 
 
148
                    size=255, 
 
149
                    required=True,
 
150
                    ),
148
151
                'origin_type' : fields.selection(string='Origin Type', 
149
152
                    selection=[('manual','Manual Source Doc.'),('oe_doc','OpenERP Source Doc.')], 
150
153
                    required=True
330
333
        # because of the way the line_id are defined: (4, x, False)
331
334
        for id in ids:
332
335
            wf_service.trg_trigger(uid, 'account.move.line', id, cr)
 
336
            if not self._origin_doc_workflow_write(cr, uid, id):
 
337
                return False
333
338
 
334
339
        if lines and lines[0]:
335
340
            partner_id = lines[0].partner_id and lines[0].partner_id.id or False
337
342
                partner_obj.mark_as_reconciled(cr, uid, [partner_id], context=context)
338
343
        return r_id
339
344
 
 
345
    def _origin_doc_workflow_write(self, cr, uid, id):
 
346
        return True
 
347
 
340
348
    def create_analytic_lines(self, cr, uid, ids, context=None):
341
349
        if context is None:
342
350
            context = {}