~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to funding_pool/account_move_line.py

[MERGE] Financing Contract

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                                     'user_id': uid,
58
58
                                     'currency_id': obj_line.currency_id.id,
59
59
                        }
 
60
                        # Update values if we come from a funding pool
 
61
                        if distrib_line._name == 'funding.pool.distribution.line':
 
62
                            line_vals.update({'cost_center_id': distrib_line.cost_center_id and distrib_line.cost_center_id.id or False,})
60
63
                        # Add source_date value for account_move_line that are a correction of another account_move_line
61
64
                        if obj_line.corrected_line_id and obj_line.source_date:
62
65
                            line_vals.update({'source_date': obj_line.source_date})