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

Proposed by jftempo
Status: Merged
Merged at revision: 5735
Proposed branch: lp:~julie-w/unifield-server/US-7655
Merge into: lp:unifield-server/uf17
Diff against target: 17 lines (+7/-0)
1 file modified
bin/addons/account/wizard/account_invoice_import.py (+7/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-7655
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+387107@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/wizard/account_invoice_import.py'
2--- bin/addons/account/wizard/account_invoice_import.py 2020-05-18 08:24:01 +0000
3+++ bin/addons/account/wizard/account_invoice_import.py 2020-07-09 09:10:47 +0000
4@@ -54,6 +54,13 @@
5 'state': lambda *a: 'draft',
6 }
7
8+ def create(self, cr, uid, vals, context=None):
9+ """
10+ Creation of the wizard using the realUid to allow the process for the non-admin users
11+ """
12+ real_uid = hasattr(uid, 'realUid') and uid.realUid or uid
13+ return super(account_invoice_import, self).create(cr, real_uid, vals, context=context)
14+
15 def _import(self, dbname, uid, ids, context=None):
16 """
17 Checks file data, and either updates the lines or displays the errors found

Subscribers

People subscribed via source and target branches