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

Proposed by jftempo
Status: Merged
Merged at revision: 5912
Proposed branch: lp:~julie-w/unifield-server/US-7979
Merge into: lp:unifield-server
Diff against target: 130 lines (+44/-8)
4 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+6/-0)
bin/addons/vertical_integration/report/hq_report_ocb_matching.py (+5/-0)
bin/addons/vertical_integration/report/hq_report_ocp_matching.py (+11/-2)
bin/addons/vertical_integration/vertical_integration_wizard.xml (+22/-6)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-7979
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+396133@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/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2020-11-12 16:19:32 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2021-01-12 10:43:18 +0000
@@ -67301,6 +67301,12 @@
67301msgid "OCB matching export"67301msgid "OCB matching export"
67302msgstr "OCB matching export"67302msgstr "OCB matching export"
6730367303
67304#. module: vertical_integration
67305#: model:ir.actions.act_window,name:vertical_integration.action_hq_ocb_matching_export_old
67306#: model:ir.ui.menu,name:vertical_integration.menu_action_hq_ocb_matching_export_old
67307msgid "OCB matching export Access Interface"
67308msgstr "Interface d'accès de OCB matching export"
67309
67304#. module: stock67310#. module: stock
67305#: model:ir.ui.menu,name:stock.menu_stock_configuration67311#: model:ir.ui.menu,name:stock.menu_stock_configuration
67306msgid "Warehouse Configuration"67312msgid "Warehouse Configuration"
6730767313
=== modified file 'bin/addons/vertical_integration/report/hq_report_ocb_matching.py'
--- bin/addons/vertical_integration/report/hq_report_ocb_matching.py 2018-05-03 08:19:43 +0000
+++ bin/addons/vertical_integration/report/hq_report_ocb_matching.py 2021-01-12 10:43:18 +0000
@@ -28,6 +28,11 @@
2828
29from report import report_sxw29from report import report_sxw
3030
31
32##### WARNING #####
33### This file is for OCB matching export Access Interface. For the standard OCB matching, see hq_report_ocp_matching.py ###
34
35
31class finance_archive(finance_export.finance_archive):36class finance_archive(finance_export.finance_archive):
32 def postprocess_reconciliable(self, cr, uid, data, model, column_deletion=False):37 def postprocess_reconciliable(self, cr, uid, data, model, column_deletion=False):
33 """38 """
3439
=== modified file 'bin/addons/vertical_integration/report/hq_report_ocp_matching.py'
--- bin/addons/vertical_integration/report/hq_report_ocp_matching.py 2018-05-03 08:30:05 +0000
+++ bin/addons/vertical_integration/report/hq_report_ocp_matching.py 2021-01-12 10:43:18 +0000
@@ -32,6 +32,11 @@
3232
33from report import report_sxw33from report import report_sxw
3434
35
36##### WARNING #####
37### IN CASE CHANGES ARE MADE TO THIS FILE, keep in mind that it is used for OCB matching export as well. ###
38
39
35class finance_archive(finance_export.finance_archive):40class finance_archive(finance_export.finance_archive):
36 """41 """
37 Extends existing class with new methods for OCP Matching Export.42 Extends existing class with new methods for OCP Matching Export.
@@ -130,7 +135,12 @@
130 pool = pooler.get_pool(cr.dbname)135 pool = pooler.get_pool(cr.dbname)
131 instance_obj = pool.get('msf.instance')136 instance_obj = pool.get('msf.instance')
132 period_obj = pool.get('account.period')137 period_obj = pool.get('account.period')
133 excluded_journal_types = ['hq', 'migration']138 if context.get('ocb_matching'):
139 # OCB VI
140 excluded_journal_types = ['cur_adj', 'hq', 'inkind', 'migration', 'extra', 'system']
141 else:
142 # OCP VI
143 excluded_journal_types = ['hq', 'migration']
134 # Fetch data from wizard144 # Fetch data from wizard
135 if not data.get('form', False):145 if not data.get('form', False):
136 raise osv.except_osv(_('Error'), _('No data retrieved. Check that the wizard is filled in.'))146 raise osv.except_osv(_('Error'), _('No data retrieved. Check that the wizard is filled in.'))
@@ -143,7 +153,6 @@
143 raise osv.except_osv(_('Warning'), _('Some information is missing: either fiscal year or period or instance.'))153 raise osv.except_osv(_('Warning'), _('Some information is missing: either fiscal year or period or instance.'))
144 # Prepare SQL requests and PROCESS requests for finance_archive object (CF. account_tools/finance_export.py)154 # Prepare SQL requests and PROCESS requests for finance_archive object (CF. account_tools/finance_export.py)
145 sqlrequests = {155 sqlrequests = {
146 # Do not take lines that come from a HQ or MIGRATION journal
147 # This request returns:156 # This request returns:
148 # - entries where posting date are within the selected period or before157 # - entries where posting date are within the selected period or before
149 # - that have either been reconciled OR unreconciled within the period or after158 # - that have either been reconciled OR unreconciled within the period or after
150159
=== modified file 'bin/addons/vertical_integration/vertical_integration_wizard.xml'
--- bin/addons/vertical_integration/vertical_integration_wizard.xml 2020-08-26 09:28:33 +0000
+++ bin/addons/vertical_integration/vertical_integration_wizard.xml 2021-01-12 10:43:18 +0000
@@ -141,6 +141,9 @@
141141
142 <!-- OCB matching export -->142 <!-- OCB matching export -->
143143
144 <!-- see below for standard OCB matching (to be loaded after OCP matching export on which it is based) -->
145
146 <!-- OCB matching export Access Interface -->
144 <record id="ocb_matching_export_wizard" model="ir.ui.view">147 <record id="ocb_matching_export_wizard" model="ir.ui.view">
145 <field name="name">OCB matching export</field>148 <field name="name">OCB matching export</field>
146 <field name="model">ocb.matching.export.wizard</field>149 <field name="model">ocb.matching.export.wizard</field>
@@ -156,9 +159,8 @@
156 </form>159 </form>
157 </field>160 </field>
158 </record>161 </record>
159162 <record id="action_hq_ocb_matching_export_old" model="ir.actions.act_window">
160 <record id="action_hq_ocb_matching_export" model="ir.actions.act_window">163 <field name="name">OCB matching export Access Interface</field>
161 <field name="name">OCB matching export</field>
162 <field name="type">ir.actions.act_window</field>164 <field name="type">ir.actions.act_window</field>
163 <field name="res_model">ocb.matching.export.wizard</field>165 <field name="res_model">ocb.matching.export.wizard</field>
164 <field name="view_type">form</field>166 <field name="view_type">form</field>
@@ -166,10 +168,9 @@
166 <field name="view_id" ref="ocb_matching_export_wizard"/>168 <field name="view_id" ref="ocb_matching_export_wizard"/>
167 <field name="target">new</field>169 <field name="target">new</field>
168 </record>170 </record>
169
170 <menuitem parent="account.menu_finance_generic_reporting"171 <menuitem parent="account.menu_finance_generic_reporting"
171 action="action_hq_ocb_matching_export"172 action="action_hq_ocb_matching_export_old"
172 id="menu_action_hq_ocb_matching_export" sequence="40"/>173 id="menu_action_hq_ocb_matching_export_old" sequence="42"/>
173174
174175
175 <!-- OCBA export -->176 <!-- OCBA export -->
@@ -279,5 +280,20 @@
279 action="action_hq_ocp_matching_export"280 action="action_hq_ocp_matching_export"
280 id="menu_action_hq_ocp_matching_export" sequence="70"/>281 id="menu_action_hq_ocp_matching_export" sequence="70"/>
281282
283 <!-- OCB matching export BASED ON OCP MATCHING EXPORT -->
284 <record id="action_hq_ocb_matching_export" model="ir.actions.act_window">
285 <field name="name">OCB matching export</field>
286 <field name="type">ir.actions.act_window</field>
287 <field name="res_model">ocp.matching.export.wizard</field>
288 <field name="view_type">form</field>
289 <field name="view_mode">form</field>
290 <field name="view_id" ref="ocp_matching_export_wizard"/>
291 <field name="context">{'ocb_matching': True}</field>
292 <field name="target">new</field>
293 </record>
294 <menuitem parent="account.menu_finance_generic_reporting"
295 action="action_hq_ocb_matching_export"
296 id="menu_action_hq_ocb_matching_export" sequence="40"/>
297
282 </data>298 </data>
283</openerp>299</openerp>

Subscribers

People subscribed via source and target branches