Merge lp:~julie-w/unifield-server/US-1602 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3988
Proposed branch: lp:~julie-w/unifield-server/US-1602
Merge into: lp:unifield-server
Diff against target: 23 lines (+13/-0)
1 file modified
bin/addons/account_override/account_move_line.py (+13/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-1602
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+306309@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/account_override/account_move_line.py'
2--- bin/addons/account_override/account_move_line.py 2016-08-23 12:54:03 +0000
3+++ bin/addons/account_override/account_move_line.py 2016-09-21 08:16:45 +0000
4@@ -495,6 +495,19 @@
5 return super(account_move_line, self).search(cr, uid, args, offset,
6 limit, order, context=context, count=count)
7
8+ def copy(self, cr, uid, aml_id, default=None, context=None):
9+ """
10+ When duplicate a JI, don't copy the link to register lines
11+ """
12+ if context is None:
13+ context = {}
14+ if default is None:
15+ default = {}
16+ default.update({
17+ 'imported_invoice_line_ids': [],
18+ })
19+ return super(account_move_line, self).copy(cr, uid, aml_id, default, context=context)
20+
21 def button_duplicate(self, cr, uid, ids, context=None):
22 """
23 Copy given lines for manual unposted entries

Subscribers

People subscribed via source and target branches