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

Proposed by jftempo
Status: Merged
Merged at revision: 5227
Proposed branch: lp:~julie-w/unifield-server/US-5298
Merge into: lp:unifield-server
Diff against target: 30 lines (+9/-0)
2 files modified
bin/addons/account/account_view.xml (+1/-0)
bin/addons/account_mcdb/account_move_line.py (+8/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-5298
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+362776@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
=== modified file 'bin/addons/account/account_view.xml'
--- bin/addons/account/account_view.xml 2018-10-04 13:56:00 +0000
+++ bin/addons/account/account_view.xml 2019-02-06 10:02:21 +0000
@@ -1245,6 +1245,7 @@
1245 <group col="10" colspan="4">1245 <group col="10" colspan="4">
1246 <field name="journal_id" widget="selection" context="{'journal_id':self, 'visible_id':self, 'normal_view':False}"/>1246 <field name="journal_id" widget="selection" context="{'journal_id':self, 'visible_id':self, 'normal_view':False}"/>
1247 <field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>1247 <field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
1248 <field name="cheque_number"/>
1248 </group>1249 </group>
1249 <newline/>1250 <newline/>
1250 <group expand="0" string="Extended Filters...">1251 <group expand="0" string="Extended Filters...">
12511252
=== modified file 'bin/addons/account_mcdb/account_move_line.py'
--- bin/addons/account_mcdb/account_move_line.py 2015-08-05 12:26:43 +0000
+++ bin/addons/account_mcdb/account_move_line.py 2019-02-06 10:02:21 +0000
@@ -145,6 +145,14 @@
145 cheque_number_node)145 cheque_number_node)
146146
147 view['arch'] = etree.tostring(tree)147 view['arch'] = etree.tostring(tree)
148 if view_type == 'search':
149 # filter on Cheque Number must appear only when searching for the lines to add in the Import Cheque wizard
150 if context.get('from') != 'wizard_import_cheque':
151 tree = etree.fromstring(view['arch'])
152 element_fields = tree.xpath('.//field[@name="cheque_number"]')
153 for el in element_fields:
154 el.getparent().remove(el)
155 view['arch'] = etree.tostring(tree)
148 return view156 return view
149157
150account_move_line()158account_move_line()

Subscribers

People subscribed via source and target branches