Merge lp:~os-1/unifield-addons/BKLG-48 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4665
Proposed branch: lp:~os-1/unifield-addons/BKLG-48
Merge into: lp:unifield-addons
Diff against target: 27 lines (+9/-1)
1 file modified
account/invoice.py (+9/-1)
To merge this branch: bzr merge lp:~os-1/unifield-addons/BKLG-48
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+260490@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 'account/invoice.py'
2--- account/invoice.py 2015-05-22 08:50:18 +0000
3+++ account/invoice.py 2015-05-28 14:37:03 +0000
4@@ -337,6 +337,14 @@
5 journal_select = journal_obj._name_search(cr, uid, '', [('type', '=', type)], context=context, limit=None, name_get_uid=1)
6 res['fields'][field]['selection'] = journal_select
7
8+ if view_type == 'form' and context.get('type', 'out_invoice') == 'in_refund':
9+ doc = etree.XML(res['arch'])
10+ doc.attrib['string'] = _('Supplier Refund')
11+ nodes = doc.xpath("//field[@name='amount_to_pay']")
12+ for node in nodes:
13+ node.set('string', _('Amount to be refunded'))
14+ res['arch'] = etree.tostring(doc)
15+
16 if view_type == 'tree':
17 doc = etree.XML(res['arch'])
18 nodes = doc.xpath("//field[@name='partner_id']")
19@@ -862,7 +870,7 @@
20
21 # one move line per tax line
22 iml += ait_obj.move_line_get(cr, uid, inv.id)
23- # UFTP-380: If the name is empty or a space character, by default it is set to '/', otherwise it will cause problem for the sync on destination instance
24+ # UFTP-380: If the name is empty or a space character, by default it is set to '/', otherwise it will cause problem for the sync on destination instance
25 for il in iml:
26 if not il['name']:
27 il['name'] = '/'

Subscribers

People subscribed via source and target branches