Merge lp:~dorian-kemps/unifield-server/US-10787-2 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 6553
Proposed branch: lp:~dorian-kemps/unifield-server/US-10787-2
Merge into: lp:unifield-server
Diff against target: 32 lines (+9/-6)
1 file modified
bin/addons/useability_dashboard_and_menu/signature.py (+9/-6)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-10787-2
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+446596@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/useability_dashboard_and_menu/signature.py'
2--- bin/addons/useability_dashboard_and_menu/signature.py 2022-10-26 11:54:07 +0000
3+++ bin/addons/useability_dashboard_and_menu/signature.py 2023-07-12 08:28:16 +0000
4@@ -79,7 +79,7 @@
5 def open_doc(self, cr, uid, ids, context=None):
6 if not ids:
7 return True
8- doc = self.browse(cr, uid, ids[0], fields_to_fetch=['doc_type', 'doc_id'], context=context)
9+ doc = self.browse(cr, uid, ids[0], fields_to_fetch=['doc_type', 'doc_id', 'doc_name'], context=context)
10 action_xml_id = {
11 'purchase.order': 'purchase.purchase_form_action',
12 'sale.order': 'procurement_request.action_procurement_request',
13@@ -94,11 +94,14 @@
14 else:
15 res = self.pool.get('ir.actions.act_window').open_view_from_xmlid(cr, uid, action_xml_id[doc.doc_type], ['form', 'tree'],context=context)
16
17- res['res_id'] = doc.doc_id
18- res['target'] = 'current'
19- res['keep_open'] = True
20+ res.update({
21+ 'name': doc.doc_name,
22+ 'res_id': doc.doc_id,
23+ 'target': 'current',
24+ 'keep_open': True,
25+ 'domain': [('id', '=', doc.doc_id)]
26+ })
27 return res
28
29+
30 signature_follow_up()
31-
32-

Subscribers

People subscribed via source and target branches