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

Proposed by jftempo
Status: Merged
Merged at revision: 4907
Proposed branch: lp:~julie-w/unifield-server/US-3770
Merge into: lp:unifield-server
Diff against target: 908 lines (+619/-6) (has conflicts)
17 files modified
bin/addons/account/account_report.xml (+30/-0)
bin/addons/hr/hr.py (+3/-1)
bin/addons/hr/hr_department_view.xml (+30/-0)
bin/addons/msf_homere_interface/__init__.py (+1/-0)
bin/addons/msf_homere_interface/hr.py (+20/-0)
bin/addons/msf_homere_interface/hr_payroll.py (+1/-1)
bin/addons/msf_homere_interface/hr_payroll_wizard.xml (+30/-0)
bin/addons/msf_homere_interface/hr_view.xml (+8/-0)
bin/addons/msf_homere_interface/report/__init__.py (+24/-0)
bin/addons/msf_homere_interface/report/hr_payment_order_report.py (+123/-0)
bin/addons/msf_homere_interface/report/hr_payment_order_report.rml (+116/-0)
bin/addons/msf_homere_interface/wizard/__init__.py (+1/-0)
bin/addons/msf_homere_interface/wizard/hr_payment_order.py (+66/-0)
bin/addons/msf_homere_interface/wizard/hr_payroll_employee_import.py (+20/-0)
bin/addons/msf_profile/i18n/fr_MF.po (+139/-4)
bin/addons/msf_sync_data_server/data/sync_server.sync_rule.csv (+6/-0)
bin/addons/sync_common/common.py (+1/-0)
Text conflict in bin/addons/account/account_report.xml
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
Text conflict in bin/addons/msf_sync_data_server/data/sync_server.sync_rule.csv
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-3770
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+343874@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/account_report.xml'
2--- bin/addons/account/account_report.xml 2018-04-05 12:43:54 +0000
3+++ bin/addons/account/account_report.xml 2018-05-04 09:12:47 +0000
4@@ -104,6 +104,7 @@
5 file="account/report/account_liquidity_balance.mako"
6 report_type="webkit"
7 string="Liquidity Balance"/>
8+<<<<<<< TREE
9
10 <!-- Combined Journals Report -->
11 <report id="combined_journals_report_xls"
12@@ -123,5 +124,34 @@
13 header="True"
14 auto="False"
15 menu="False"/>
16+=======
17+
18+ <!-- Employees Payment Order Report -->
19+ <report id="hr_payment_order_report"
20+ string="Payment Orders Report"
21+ model="hr.payroll.msf"
22+ name="hr.payment.order.report"
23+ rml="msf_homere_interface/report/hr_payment_order_report.rml"
24+ header="True"
25+ auto="False"
26+ menu="False"/>
27+
28+ <!-- Combined Journals Report -->
29+ <report id="combined_journals_report_xls"
30+ string="Combined Journals Report XLS"
31+ model="account.mcdb"
32+ name="combined.journals.report.xls"
33+ file="account_mcdb/report/combined_journals_report.mako"
34+ report_type="webkit"
35+ header="False"
36+ auto="False"
37+ menu="False"/>
38+ <report id="combined_journals_report_pdf"
39+ string="Combined Journals Report PDF"
40+ model="account.mcdb"
41+ name="combined.journals.report.pdf"
42+ rml="account_mcdb/report/combined_journals_report.rml"/>
43+
44+>>>>>>> MERGE-SOURCE
45 </data>
46 </openerp>
47
48=== modified file 'bin/addons/hr/hr.py'
49--- bin/addons/hr/hr.py 2018-03-01 16:08:21 +0000
50+++ bin/addons/hr/hr.py 2018-05-04 09:12:47 +0000
51@@ -161,7 +161,9 @@
52 'coach_id': fields.many2one('hr.employee', 'Coach'),
53 'job_id': fields.many2one('hr.job', 'Job', select=True),
54 'photo': fields.binary('Photo'),
55- 'passport_id':fields.char('Passport No', size=64)
56+ 'passport_id': fields.char('Passport No', size=64),
57+ 'contract_start_date': fields.date('Contract Start Date'),
58+ 'contract_end_date': fields.date('Contract End Date'),
59 }
60
61 def onchange_address_id(self, cr, uid, ids, address, context=None):
62
63=== modified file 'bin/addons/hr/hr_department_view.xml'
64--- bin/addons/hr/hr_department_view.xml 2016-11-04 12:57:37 +0000
65+++ bin/addons/hr/hr_department_view.xml 2018-05-04 09:12:47 +0000
66@@ -65,6 +65,36 @@
67
68 <menuitem action="open_module_tree_department" id="menu_hr_department_tree" parent="hr.menu_hr_management" sequence="6" />
69
70+ <!-- Payment method -->
71+ <record id="view_payment_method_tree" model="ir.ui.view">
72+ <field name="name">hr.payment.method.tree</field>
73+ <field name="model">hr.payment.method</field>
74+ <field name="type">tree</field>
75+ <field name="priority">14</field>
76+ <field name="arch" type="xml">
77+ <tree hide_delete_button="1" hide_new_button="1" hide_edit_button="1">
78+ <field name="name"/>
79+ </tree>
80+ </field>
81+ </record>
82+ <record model="ir.ui.view" id="view_payment_method_form">
83+ <field name="name">hr.payment.method.form</field>
84+ <field name="type">form</field>
85+ <field name="priority">14</field>
86+ <field name="model">hr.payment.method</field>
87+ <field name="arch" type="xml">
88+ <form string="Payment method" noteditable="1" hide_delete_button="1" hide_new_button="1">
89+ <field name="name"/>
90+ </form>
91+ </field>
92+ </record>
93+ <record id="open_payment_method" model="ir.actions.act_window">
94+ <field name="name">Payment methods</field>
95+ <field name="res_model">hr.payment.method</field>
96+ <field name="view_type">form</field>
97+ </record>
98+ <menuitem action="open_payment_method" id="menu_hr_payment_method" parent="hr.menu_hr_management" sequence="9" />
99+
100 <record model="ir.ui.view" id="view_users_form_inherit">
101 <field name="name">res.users.form</field>
102 <field name="type">form</field>
103
104=== modified file 'bin/addons/msf_homere_interface/__init__.py'
105--- bin/addons/msf_homere_interface/__init__.py 2012-09-13 16:02:14 +0000
106+++ bin/addons/msf_homere_interface/__init__.py 2018-05-04 09:12:47 +0000
107@@ -27,5 +27,6 @@
108 import hr_job_msf
109 import hr_contract_msf
110 import wizard
111+import report
112
113 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
114
115=== modified file 'bin/addons/msf_homere_interface/hr.py'
116--- bin/addons/msf_homere_interface/hr.py 2017-10-27 12:04:12 +0000
117+++ bin/addons/msf_homere_interface/hr.py 2018-05-04 09:12:47 +0000
118@@ -26,6 +26,23 @@
119 from lxml import etree
120 from tools.translate import _
121
122+
123+class hr_payment_method(osv.osv):
124+ _name = 'hr.payment.method'
125+ _description = 'Payment Method'
126+ _columns = {
127+ 'name': fields.char(size=128, string='Name', required=True, select=1),
128+ }
129+
130+ _order = 'name'
131+
132+ _sql_constraints = [
133+ ('name_uniq', 'UNIQUE(name)', 'The payment method name must be unique.')
134+ ]
135+
136+hr_payment_method()
137+
138+
139 class hr_employee(osv.osv):
140 _name = 'hr.employee'
141 _inherit = 'hr.employee'
142@@ -105,6 +122,9 @@
143 'allow_edition': fields.function(_get_allow_edition, method=True, type='boolean', store=False, string="Allow local employee edition?", readonly=True),
144 'photo': fields.binary('Photo', readonly=True),
145 'ex_allow_edition': fields.function(_get_ex_allow_edition, method=True, type='boolean', store=False, string="Allow expat employee edition?", readonly=True),
146+ 'payment_method_id': fields.many2one('hr.payment.method', string='Payment Method', required=False),
147+ 'bank_name': fields.char('Bank Name', size=256, required=False),
148+ 'bank_account_number': fields.char('Bank Account Number', size=128, required=False),
149 }
150
151 _defaults = {
152
153=== modified file 'bin/addons/msf_homere_interface/hr_payroll.py'
154--- bin/addons/msf_homere_interface/hr_payroll.py 2017-08-09 09:50:40 +0000
155+++ bin/addons/msf_homere_interface/hr_payroll.py 2018-05-04 09:12:47 +0000
156@@ -395,7 +395,7 @@
157 if key == 'action' and key2 == 'client_action_multi' and 'hr.payroll.msf' in [x[0] for x in models]:
158 new_act = []
159 for v in values:
160- if v[1] == 'action_payroll_deletion':
161+ if v[1] in ['action_payroll_deletion', 'action_payment_orders']:
162 # for all Payroll views
163 new_act.append(v)
164 elif context.get('payroll_bs_lines'):
165
166=== modified file 'bin/addons/msf_homere_interface/hr_payroll_wizard.xml'
167--- bin/addons/msf_homere_interface/hr_payroll_wizard.xml 2017-10-04 05:23:42 +0000
168+++ bin/addons/msf_homere_interface/hr_payroll_wizard.xml 2018-05-04 09:12:47 +0000
169@@ -62,6 +62,24 @@
170 </field>
171 </record>
172
173+ <!-- Payment orders Wizard -->
174+ <record id="payment_order_wizard" model="ir.ui.view">
175+ <field name="name">payment.order.wizard</field>
176+ <field name="model">hr.payment.order</field>
177+ <field name="type">form</field>
178+ <field name="arch" type="xml">
179+ <form string="Payment Orders">
180+ <group colspan="4" col="4">
181+ <field name="payment_method_id"/>
182+ <field name="period_id"/>
183+ <button string="Cancel" special="cancel" icon="gtk-cancel" colspan="2"/>
184+ <button name="print_payment_order_report" type="object" string="Print report" icon="gtk-print"
185+ colspan="2"/>
186+ </group>
187+ </form>
188+ </field>
189+ </record>
190+
191 <record id="payroll_employee_import" model="ir.ui.view">
192 <field name="name">payroll.employee.import</field>
193 <field name="model">hr.payroll.employee.import</field>
194@@ -250,6 +268,18 @@
195 target="new"
196 view_id="payroll_deletion_wizard"/>
197
198+ <!-- Payment Orders -->
199+ <act_window id="action_payment_orders"
200+ name="Payment Orders"
201+ res_model="hr.payment.order"
202+ src_model="hr.payroll.msf"
203+ key2="client_print_multi"
204+ view_mode="form"
205+ view_type="form"
206+ target="new"
207+ empty_ids="1"
208+ view_id="payment_order_wizard"/>
209+
210 <!-- Expat Employee Import -->
211 <record id="action_expat_employee_import_wizard" model="ir.actions.act_window">
212 <field name="name">Import Expats</field>
213
214=== modified file 'bin/addons/msf_homere_interface/hr_view.xml'
215--- bin/addons/msf_homere_interface/hr_view.xml 2018-04-10 09:53:54 +0000
216+++ bin/addons/msf_homere_interface/hr_view.xml 2018-05-04 09:12:47 +0000
217@@ -63,6 +63,14 @@
218 <separator string="Position" colspan="2"/>
219 <field name="job_id" domain="[('state','!=','old')]" attrs="{'readonly': [('employee_type', '=', 'local'), ('allow_edition', '=', False)]}"/>
220 <field name="coach_id" attrs="{'readonly': [('employee_type', '=', 'local'), ('allow_edition', '=', False)]}"/>
221+ <field name="contract_start_date" attrs="{'readonly': ['|', ('employee_type', '=', 'ex'), ('allow_edition', '=', False)]}"/>
222+ <field name="contract_end_date" attrs="{'readonly': ['|', ('employee_type', '=', 'ex'), ('allow_edition', '=', False)]}"/>
223+ </group>
224+ <group col="2" colspan="2">
225+ <separator string="Payment Information" colspan="2"/>
226+ <field name="payment_method_id" attrs="{'readonly': ['|', ('employee_type', '=', 'ex'), ('allow_edition', '=', False)]}"/>
227+ <field name="bank_name" attrs="{'readonly': ['|', ('employee_type', '=', 'ex'), ('allow_edition', '=', False)]}"/>
228+ <field name="bank_account_number" attrs="{'readonly': ['|', ('employee_type', '=', 'ex'), ('allow_edition', '=', False)]}"/>
229 </group>
230 </page>
231 <page string="Categories">
232
233=== added directory 'bin/addons/msf_homere_interface/report'
234=== added file 'bin/addons/msf_homere_interface/report/__init__.py'
235--- bin/addons/msf_homere_interface/report/__init__.py 1970-01-01 00:00:00 +0000
236+++ bin/addons/msf_homere_interface/report/__init__.py 2018-05-04 09:12:47 +0000
237@@ -0,0 +1,24 @@
238+# -*- coding: utf-8 -*-
239+##############################################################################
240+#
241+# OpenERP, Open Source Management Solution
242+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
243+#
244+# This program is free software: you can redistribute it and/or modify
245+# it under the terms of the GNU Affero General Public License as
246+# published by the Free Software Foundation, either version 3 of the
247+# License, or (at your option) any later version.
248+#
249+# This program is distributed in the hope that it will be useful,
250+# but WITHOUT ANY WARRANTY; without even the implied warranty of
251+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
252+# GNU Affero General Public License for more details.
253+#
254+# You should have received a copy of the GNU Affero General Public License
255+# along with this program. If not, see <http://www.gnu.org/licenses/>.
256+#
257+##############################################################################
258+
259+import hr_payment_order_report
260+
261+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
262
263=== added file 'bin/addons/msf_homere_interface/report/hr_payment_order_report.py'
264--- bin/addons/msf_homere_interface/report/hr_payment_order_report.py 1970-01-01 00:00:00 +0000
265+++ bin/addons/msf_homere_interface/report/hr_payment_order_report.py 2018-05-04 09:12:47 +0000
266@@ -0,0 +1,123 @@
267+# -*- coding: utf-8 -*-
268+##############################################################################
269+#
270+# OpenERP, Open Source Management Solution
271+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
272+#
273+# This program is free software: you can redistribute it and/or modify
274+# it under the terms of the GNU Affero General Public License as
275+# published by the Free Software Foundation, either version 3 of the
276+# License, or (at your option) any later version.
277+#
278+# This program is distributed in the hope that it will be useful,
279+# but WITHOUT ANY WARRANTY; without even the implied warranty of
280+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
281+# GNU Affero General Public License for more details.
282+#
283+# You should have received a copy of the GNU Affero General Public License
284+# along with this program. If not, see <http://www.gnu.org/licenses/>.
285+#
286+##############################################################################
287+
288+from report import report_sxw
289+
290+
291+class hr_payment_order_report(report_sxw.rml_parse):
292+
293+ def __init__(self, cr, uid, name, context=None):
294+ super(hr_payment_order_report, self).__init__(cr, uid, name, context=context)
295+ self.context = {}
296+ self.payment_method_id = False
297+ self.period_id = False
298+ self.localcontext.update({
299+ 'lines': self._get_lines,
300+ 'period_selected': self._get_period_selected,
301+ 'payment_method_selected': self._get_payment_method_selected,
302+ })
303+
304+ def _get_period_selected(self):
305+ """
306+ Returns the name of the period selected or "-"
307+ """
308+ if not self.period_id:
309+ return '-'
310+ period_obj = self.pool.get('account.period')
311+ period = period_obj.browse(self.cr, self.uid, self.period_id, fields_to_fetch=['name'], context=self.context)
312+ return period.name
313+
314+ def _get_payment_method_selected(self):
315+ """
316+ Returns the name of the payment method selected or "-"
317+ """
318+ if not self.payment_method_id:
319+ return '-'
320+ payment_method_obj = self.pool.get('hr.payment.method')
321+ payment_method = payment_method_obj.browse(self.cr, self.uid, self.payment_method_id, fields_to_fetch=['name'],
322+ context=self.context)
323+ return payment_method.name
324+
325+ def _get_lines(self):
326+ """
327+ Returns a list of lines to display in the report, grouped and ordered by employee and currency.
328+ Each line contains the employee name, identification number, bank data, and total of the JIs matching the criteria.
329+ Employees = LOCAL Staff using the Payment Method selected.
330+ JIs = per employee, posted, unreconciled, with a posting date in the period selected if any, booked on an account
331+ having the account type "Payables" or "Receivables" (=> internal types are ignored), no matter the journal used.
332+ """
333+ res = []
334+ employee_obj = self.pool.get('hr.employee')
335+ account_obj = self.pool.get('account.account')
336+ aml_obj = self.pool.get('account.move.line')
337+ bg_obj = self.pool.get('memory.background.report')
338+ employee_ids = employee_obj.search(self.cr, self.uid, [('employee_type', '=', 'local'),
339+ ('payment_method_id', '=', self.payment_method_id)],
340+ order='name', context=self.context)
341+ account_ids = account_obj.search(self.cr, self.uid,
342+ [('user_type_code', 'in', ['receivables', 'payables'])],
343+ order='NO_ORDER', context=self.context)
344+ dom = [('move_state', '=', 'posted'),
345+ ('reconcile_id', '=', False),
346+ ('account_id', 'in', account_ids)]
347+ if self.period_id:
348+ dom.append(('period_id', '=', self.period_id))
349+ aml_ids = aml_obj.search(self.cr, self.uid, dom, order='NO_ORDER', context=self.context)
350+ current_line_position = 0
351+ for employee in employee_obj.read(self.cr, self.uid, employee_ids,
352+ ['name', 'identification_id', 'bank_name', 'bank_account_number'], context=self.context):
353+ current_line_position += 1
354+ employee_aml_ids = aml_obj.search(self.cr, self.uid,
355+ [('id', 'in', aml_ids), ('employee_id', '=', employee['id'])],
356+ order='currency_id', context=self.context)
357+ curr = {}
358+ for aml in aml_obj.read(self.cr, self.uid, employee_aml_ids, ['amount_currency', 'currency_id'], context=self.context):
359+ if aml['currency_id'] and len(aml['currency_id']) == 2:
360+ if aml['currency_id'][1] not in curr:
361+ curr[aml['currency_id'][1]] = 0.0
362+ curr[aml['currency_id'][1]] += aml['amount_currency'] or 0.0
363+ for c in curr:
364+ employee_dict = {
365+ 'employee_name': employee['name'],
366+ 'employee_id': employee['identification_id'] or '',
367+ 'bank_name': employee['bank_name'] or '',
368+ 'bank_account_number': employee['bank_account_number'] or '',
369+ 'net_to_pay': curr[c],
370+ 'currency': c,
371+ }
372+ res.append(employee_dict)
373+ bg_obj.compute_percent(self.cr, self.uid, current_line_position, len(employee_ids), context=self.context)
374+ return res
375+
376+ def set_context(self, objects, data, ids, report_type=None):
377+ """
378+ Retrieves the Payment method & period selected
379+ """
380+ self.context = data.get('context', {})
381+ self.payment_method_id = data.get('payment_method_id')
382+ self.period_id = data.get('period_id', False)
383+ return super(hr_payment_order_report, self).set_context(objects, data, ids, report_type)
384+
385+
386+report_sxw.report_sxw('report.hr.payment.order.report', 'hr.payroll.msf',
387+ 'addons/msf_homere_interface/report/payment_order_report.rml', parser=hr_payment_order_report,
388+ header='internal')
389+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
390
391=== added file 'bin/addons/msf_homere_interface/report/hr_payment_order_report.rml'
392--- bin/addons/msf_homere_interface/report/hr_payment_order_report.rml 1970-01-01 00:00:00 +0000
393+++ bin/addons/msf_homere_interface/report/hr_payment_order_report.rml 2018-05-04 09:12:47 +0000
394@@ -0,0 +1,116 @@
395+<?xml version="1.0"?>
396+<document filename="payment_orders_report.pdf">
397+
398+ <template pageSize="(595.0,842.0)" title="Payment Orders Report" author="Medecins Sans Frontieres" allowSplitting="20">
399+ <pageTemplate id="first">
400+ <frame id="first" x1="57.0" y1="57.0" width="481" height="728"/>
401+ </pageTemplate>
402+ </template>
403+
404+ <stylesheet>
405+ <blockTableStyle id="Table_Company_Name">
406+ <blockAlignment value="LEFT"/>
407+ <blockValign value="TOP"/>
408+ </blockTableStyle>
409+ <initialize>
410+ <paraStyle name="all" alignment="justify"/>
411+ </initialize>
412+ <paraStyle name="Standard" fontName="Helvetica"/>
413+ <paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
414+ <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
415+ <paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
416+ <paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
417+ <paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
418+ <paraStyle name="P3" fontName="Helvetica" fontSize="7.0" leading="10" alignment="CENTER"/>
419+ <blockTableStyle id="TableHeader">
420+ <blockAlignment value="LEFT"/>
421+ <blockValign value="TOP"/>
422+ <lineStyle kind="GRID" colorName="#000000" start="0,0" stop="-1,0"/>
423+ <lineStyle kind="OUTLINE" colorName="black" start="0,0" stop="1,1"/>
424+ <lineStyle kind="INNERGRID" colorName="gray" start="0,1" stop="1,-1" thickness="0.5"/>
425+ <blockBackground colorName="#e6e6e6" start="0,0" stop="-1,0"/>
426+ </blockTableStyle>
427+ <blockTableStyle id="TableData">
428+ <blockAlignment value="LEFT"/>
429+ <blockValign value="TOP"/>
430+ <lineStyle kind="GRID" colorName="#000000" start="0,0" stop="-1,0"/>
431+ <lineStyle kind="OUTLINE" colorName="black" start="0,0" stop="5,-1"/>
432+ <lineStyle kind="INNERGRID" colorName="gray" start="0,1" stop="5,-1" thickness="0.5"/>
433+ <blockBackground colorName="#e6e6e6" start="0,0" stop="-1,0"/>
434+ </blockTableStyle>
435+ </stylesheet>
436+
437+ <story>
438+
439+ <blockTable colWidths="540.0" style="Table_Company_Name">
440+ <tr>
441+ <td>
442+ <para style="terp_header_Centre">Payment Orders</para>
443+ </td>
444+ </tr>
445+ </blockTable>
446+ <para style="terp_default_8">
447+ <font color="white"> </font>
448+ </para>
449+
450+ <blockTable colWidths="270.0,270.0" style="TableHeader">
451+ <tr>
452+ <td><parawrap style="terp_tblheader_General_Centre">Payment Method</parawrap></td>
453+ <td><parawrap style="terp_tblheader_General_Centre">Period</parawrap></td>
454+ </tr>
455+ <tr>
456+ <td><parawrap style="terp_default_Centre_8">[[ payment_method_selected() ]]</parawrap></td>
457+ <td><parawrap style="terp_default_Centre_8">[[ period_selected() ]]</parawrap></td>
458+ </tr>
459+ </blockTable>
460+
461+ <para style="terp_default_8">
462+ <font color="white"> </font>
463+ </para>
464+
465+ <blockTable style="TableData" colWidths="90.0,90.0,90.0,90.0,90.0,90.0">
466+ <tr>
467+ <td>
468+ <parawrap style="P3">Employee Name</parawrap>
469+ </td>
470+ <td>
471+ <parawrap style="P3">Employee ID</parawrap>
472+ </td>
473+ <td>
474+ <parawrap style="P3">Bank Name</parawrap>
475+ </td>
476+ <td>
477+ <parawrap style="P3">Bank Account Number</parawrap>
478+ </td>
479+ <td>
480+ <parawrap style="P3">Net to Pay</parawrap>
481+ </td>
482+ <td>
483+ <parawrap style="P3">Currency</parawrap>
484+ </td>
485+ </tr>
486+ <tr>
487+ <td>
488+ <para style="P3">[[ repeatIn(lines(), 'line') ]]</para>
489+ <parawrap style="P3">[[ line['employee_name'] ]]</parawrap>
490+ </td>
491+ <td>
492+ <parawrap style="P3">[[ line['employee_id'] ]]</parawrap>
493+ </td>
494+ <td>
495+ <parawrap style="P3">[[ line['bank_name'] ]]</parawrap>
496+ </td>
497+ <td>
498+ <parawrap style="P3">[[ line['bank_account_number'] ]]</parawrap>
499+ </td>
500+ <td>
501+ <parawrap style="P3">[[ formatLang(line['net_to_pay'] or 0.0) ]]</parawrap>
502+ </td>
503+ <td>
504+ <parawrap style="P3">[[ line['currency'] ]]</parawrap>
505+ </td>
506+ </tr>
507+ </blockTable>
508+
509+ </story>
510+</document>
511
512=== modified file 'bin/addons/msf_homere_interface/wizard/__init__.py'
513--- bin/addons/msf_homere_interface/wizard/__init__.py 2012-12-04 16:12:51 +0000
514+++ bin/addons/msf_homere_interface/wizard/__init__.py 2018-05-04 09:12:47 +0000
515@@ -28,5 +28,6 @@
516 import hr_payroll_deletion
517 import hr_expat_import
518 import hr_nat_staff_import
519+import hr_payment_order
520
521 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
522
523=== added file 'bin/addons/msf_homere_interface/wizard/hr_payment_order.py'
524--- bin/addons/msf_homere_interface/wizard/hr_payment_order.py 1970-01-01 00:00:00 +0000
525+++ bin/addons/msf_homere_interface/wizard/hr_payment_order.py 2018-05-04 09:12:47 +0000
526@@ -0,0 +1,66 @@
527+#!/usr/bin/env python
528+# -*- coding: utf-8 -*-
529+##############################################################################
530+#
531+# OpenERP, Open Source Management Solution
532+# Copyright (C) 2018 TeMPO Consulting, MSF. All Rights Reserved
533+#
534+# This program is free software: you can redistribute it and/or modify
535+# it under the terms of the GNU Affero General Public License as
536+# published by the Free Software Foundation, either version 3 of the
537+# License, or (at your option) any later version.
538+#
539+# This program is distributed in the hope that it will be useful,
540+# but WITHOUT ANY WARRANTY; without even the implied warranty of
541+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
542+# GNU Affero General Public License for more details.
543+#
544+# You should have received a copy of the GNU Affero General Public License
545+# along with this program. If not, see <http://www.gnu.org/licenses/>.
546+#
547+##############################################################################
548+
549+from osv import osv
550+from osv import fields
551+
552+
553+class hr_payment_order(osv.osv_memory):
554+ _name = 'hr.payment.order'
555+ _description = 'Payment Orders'
556+
557+ _columns = {
558+ 'payment_method_id': fields.many2one('hr.payment.method', string='Payment Method', required=True),
559+ 'period_id': fields.many2one('account.period', string='Period', required=False, domain="[('number', '!=', 0)]"),
560+ }
561+
562+ def print_payment_order_report(self, cr, uid, ids, context=None):
563+ """
564+ Generates the Payment Orders report
565+ """
566+ if context is None:
567+ context = {}
568+ if isinstance(ids, (int, long)):
569+ ids = [ids]
570+ bg_obj = self.pool.get('memory.background.report')
571+ wiz = self.browse(cr, uid, ids[0], context=context)
572+ data = {
573+ 'payment_method_id': wiz.payment_method_id.id,
574+ 'period_id': wiz.period_id and wiz.period_id.id or False,
575+ }
576+ # make the report run in background
577+ report_name = 'hr.payment.order.report'
578+ background_id = bg_obj.create(cr, uid, {'file_name': 'Payment Orders Report',
579+ 'report_name': report_name}, context=context)
580+ context['background_id'] = background_id
581+ context['background_time'] = 2
582+ data['context'] = context
583+ return {
584+ 'type': 'ir.actions.report.xml',
585+ 'report_name': report_name,
586+ 'datas': data,
587+ 'context': context,
588+ }
589+
590+
591+hr_payment_order()
592+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
593
594=== modified file 'bin/addons/msf_homere_interface/wizard/hr_payroll_employee_import.py'
595--- bin/addons/msf_homere_interface/wizard/hr_payroll_employee_import.py 2018-03-01 16:08:21 +0000
596+++ bin/addons/msf_homere_interface/wizard/hr_payroll_employee_import.py 2018-05-04 09:12:47 +0000
597@@ -285,6 +285,7 @@
598 updated = 0
599 if context is None:
600 context = {}
601+ payment_method_obj = self.pool.get('hr.payment.method')
602 if not employee_data or not wizard_id:
603 message = _('No data found for this line: %s.') % line_number
604 self.pool.get('hr.payroll.employee.import.errors').create(cr, uid, {'wizard_id': wizard_id, 'msg': message})
605@@ -310,6 +311,9 @@
606 statutfamilial = employee_data.get('statutfamilial', False)
607 tel_bureau = employee_data.get('tel_bureau', False)
608 tel_prive = employee_data.get('tel_prive', False)
609+ bqmodereglement = employee_data.get('bqmodereglement', False)
610+ bqnom = employee_data.get('bqnom', False)
611+ bqnumerocompte = employee_data.get('bqnumerocompte', False)
612 except ValueError, e:
613 raise osv.except_osv(_('Error'), _('The given file is probably corrupted!\n%s') % (e))
614 # Process data
615@@ -356,10 +360,23 @@
616 'mobile_phone': portable or False,
617 'work_phone': tel_bureau or False,
618 'private_phone': tel_prive or False,
619+ 'bank_name': bqnom,
620+ 'bank_account_number': bqnumerocompte,
621 }
622 # Update Birthday if equal to 0000-00-00
623 if datenaissance and datenaissance == '0000-00-00':
624 vals.update({'birthday': False,})
625+
626+ # Update the payment method
627+ payment_method_id = False
628+ if bqmodereglement:
629+ payment_method_ids = payment_method_obj.search(cr, uid, [('name', '=', bqmodereglement)], limit=1, context=context)
630+ if payment_method_ids:
631+ payment_method_id = payment_method_ids[0]
632+ else:
633+ payment_method_id = payment_method_obj.create(cr, uid, {'name': bqmodereglement}, context=context)
634+ vals.update({'payment_method_id': payment_method_id})
635+
636 # Update Nationality
637 if nation:
638 n_ids = self.pool.get('res.country').search(cr, uid, [('code', '=', ustr(nation))])
639@@ -414,6 +431,9 @@
640 # Check job
641 if contract.job_id:
642 vals.update({'job_id': contract.job_id.id})
643+ # Check the contract dates
644+ vals.update({'contract_start_date': contract.date_start or False})
645+ vals.update({'contract_end_date': contract.date_end or False})
646 # Desactivate employee if no current contract
647 if not current_contract:
648 vals.update({'active': False})
649
650=== modified file 'bin/addons/msf_profile/data/patches.xml'
651=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
652--- bin/addons/msf_profile/i18n/fr_MF.po 2018-04-27 09:58:55 +0000
653+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-05-04 09:12:47 +0000
654@@ -22069,6 +22069,7 @@
655 #: report:addons/account/report/account_liquidity_balance.mako:162
656 #: field:cash.request,name:0
657 #: field:msf.instance.cloud,name:0
658+#: field:hr.payment.method,name:0
659 #: report:addons/account_override/report/account_chart_export.mako:136
660 #: report:addons/analytic_distribution/report/report_account_analytic_chart_export.mako:146
661 #: report:addons/mission_stock/report/stock_mission_report_xls.mako:50
662@@ -25959,6 +25960,8 @@
663 #: field:wizard.register.creation,period_id:0
664 #: field:wizard.register.creation.lines,period_id:0
665 #: field:wizard.register.import.lines,period_id:0
666+#: field:hr.payment.order,period_id:0
667+#: report:hr.payment.order.report:0
668 #, python-format
669 msgid "Period"
670 msgstr "Période"
671@@ -56840,10 +56843,12 @@
672 msgid "ESC Message 1"
673 msgstr "ESC Message 1"
674
675-#. modules: hr, account, register_accounting
676+#. modules: hr, account, register_accounting, msf_homere_interface
677 #: field:account.journal,bank_account_number:0
678 #: field:hr.employee,bank_account_id:0
679 #: field:account.bank.statement,bank_account_number:0
680+#: field:hr.employee,bank_account_number:0
681+#: report:hr.payment.order.report:0
682 msgid "Bank Account Number"
683 msgstr "Numéro de Compte Bancaire"
684
685@@ -58877,9 +58882,13 @@
686 msgid "Inventory counter Name"
687 msgstr "Responsable Inventaire"
688
689-#. module: account_payment
690+#. modules: account_payment, msf_homere_interface
691 #: model:ir.actions.act_window,name:account_payment.action_payment_order_tree
692 #: model:ir.ui.menu,name:account_payment.menu_action_payment_order_form
693+#: view:hr.payment.order:0
694+#: model:ir.actions.act_window,name:msf_homere_interface.action_payment_orders
695+#: model:ir.model,name:msf_homere_interface.model_hr_payment_order
696+#: report:hr.payment.order.report:0
697 msgid "Payment Orders"
698 msgstr "Ordres de Paiement"
699
700@@ -58948,11 +58957,12 @@
701 msgid "Logistic"
702 msgstr "Logistique"
703
704-#. modules: msf_doc_import, account, consumption_calculation
705+#. modules: msf_doc_import, account, consumption_calculation, msf_homere_interface
706 #: model:ir.actions.report.xml,name:account.account_invoices
707 #: view:weekly.forecast.report:0
708 #: view:wizard.import.in.simulation.screen:0
709 #: view:wizard.import.po.simulation.screen:0
710+#: view:hr.payment.order:0
711 msgid "Print report"
712 msgstr "Imprimer Rapport"
713
714@@ -100318,6 +100328,7 @@
715 #: view:ocp.matching.export.wizard:0
716 #: view:wizard.hq.report.oca:0
717 #: view:wizard.import.mapping:0
718+#: view:hr.payment.order:0
719 #, python-format
720 msgid "Cancel"
721 msgstr "Annuler"
722@@ -106115,7 +106126,7 @@
723 msgid "Price in functional currency"
724 msgstr "Prix dans la devise fonctionnelle"
725
726-#. modules: purchase_followup, finance
727+#. modules: purchase_followup, finance, msf_homere_interface
728 #: report:addons/purchase_followup/report/po_track_changes_report_xls.mako:242
729 #: field:cash.request.expense,currency_id:0
730 #: view:cash.request.liquidity.bank:0
731@@ -106123,6 +106134,7 @@
732 #: view:cash.request.liquidity.cheque:0
733 #: field:cash.request.total.transfer.line,currency_id:0
734 #: field:cash.request.transfer.currency,currency_id:0
735+#: report:hr.payment.order.report:0
736 msgid "Currency"
737 msgstr "Devise"
738
739@@ -107561,6 +107573,7 @@
740 #, python-format
741 msgid "You have to load the template first."
742 msgstr "Vous devez d'abord charger le modèle."
743+<<<<<<< TREE
744
745 #. module: account_corrections
746 #: code:addons/account_corrections/account_move_line.py:929
747@@ -107673,3 +107686,125 @@
748 #: sql_constraint:account.move.line:0
749 msgid "Wrong credit or debit value in booking currency!"
750 msgstr "Valeur de crédit ou débit erronée en devise d'enregistrement !"
751+=======
752+
753+#. module: hr
754+#: field:hr.employee,contract_start_date:0
755+msgid "Contract Start Date"
756+msgstr "Date de Début de Contrat"
757+
758+#. module: hr
759+#: field:hr.employee,contract_end_date:0
760+msgid "Contract End Date"
761+msgstr "Date de Fin de Contrat"
762+
763+#. module: msf_homere_interface
764+#: field:hr.employee,payment_method_id:0
765+#: field:hr.payment.order,payment_method_id:0
766+#: model:ir.model,name:msf_homere_interface.model_hr_payment_method
767+#: report:hr.payment.order.report:0
768+msgid "Payment Method"
769+msgstr "Mode de Paiement"
770+
771+#. module: hr
772+#: model:ir.actions.act_window,name:hr.open_payment_method
773+#: model:ir.ui.menu,name:hr.menu_hr_payment_method
774+msgid "Payment methods"
775+msgstr "Modes de paiement"
776+
777+#. module: hr
778+#: view:hr.payment.method:0
779+msgid "Payment method"
780+msgstr "Mode de paiement"
781+
782+#. module: msf_homere_interface
783+#: sql_constraint:hr.payment.method:0
784+msgid "The payment method name must be unique."
785+msgstr "Le nom du mode de paiement doit être unique."
786+
787+#. module: msf_homere_interface
788+#: report:hr.payment.order.report:0
789+msgid "Employee Name"
790+msgstr "Nom de l'Employé"
791+
792+#. module: msf_homere_interface
793+#: report:hr.payment.order.report:0
794+msgid "Employee ID"
795+msgstr "ID de l'Employé"
796+
797+#. module: msf_homere_interface
798+#: report:hr.payment.order.report:0
799+msgid "Net to Pay"
800+msgstr "Net à Payer"
801+
802+#. module: msf_homere_interface
803+#: field:hr.employee,bank_name:0
804+#: report:hr.payment.order.report:0
805+msgid "Bank Name"
806+msgstr "Nom de la Banque"
807+
808+#. module: account_mcdb
809+#: report:addons/account_mcdb/report/combined_journals_report.mako:8
810+#: report:addons/account_mcdb/report/combined_journals_report.mako:126
811+#: report:combined.journals.report.pdf:0
812+#: model:ir.actions.act_window,name:account_mcdb.action_account_mcdb_combined_form
813+#: model:ir.ui.menu,name:account_mcdb.menu_finance_mcdb_combined_line
814+msgid "Combined Journals Report"
815+msgstr "Rapport des Journaux Agrégés"
816+
817+#. module: account
818+#: model:ir.actions.report.xml,name:account.combined_journals_report_pdf
819+msgid "Combined Journals Report PDF"
820+msgstr "Rapport des Journaux Agrégés PDF"
821+
822+#. module: account
823+#: model:ir.actions.report.xml,name:account.combined_journals_report_xls
824+msgid "Combined Journals Report XLS"
825+msgstr "Rapport des Journaux Agrégés XLS"
826+
827+#. module: account_mcdb
828+#: selection:account.mcdb,model:0
829+msgid "Both Journal Items and Analytic Journal Items"
830+msgstr "À la fois les Lignes d'Ecritures Comptables et les Lignes d'Ecritures Analytiques"
831+
832+#. module: account_mcdb
833+#: report:addons/account_mcdb/report/combined_journals_report.mako:230
834+#: report:combined.journals.report.pdf:0
835+msgid "Cost Centre"
836+msgstr "Centre de Coût"
837+
838+#. module: account_mcdb
839+#: report:combined.journals.report.pdf:0
840+msgid "Total Booking"
841+msgstr "Total Devise d'Enreg."
842+
843+#. module: account_mcdb
844+#: report:combined.journals.report.pdf:0
845+msgid "Total Func."
846+msgstr "Total Devise Fonc."
847+
848+#. module: account_mcdb
849+#: view:account.mcdb:0
850+#: code:addons/account_mcdb/account_mcdb.py:609
851+#: code:addons/account_mcdb/account_mcdb.py:665
852+#, python-format
853+msgid "Selector - Combined Journals Report"
854+msgstr "Sélecteur - Rapport des Journaux Agrégés"
855+
856+#. module: account_mcdb
857+#: report:addons/account_mcdb/report/combined_journals_report.mako:173
858+#: report:combined.journals.report.pdf:0
859+msgid "COMBINED JOURNALS REPORT"
860+msgstr "RAPPORT DES JOURNAUX AGRÉGÉS"
861+
862+#. module: account_mcdb
863+#: code:addons/account_mcdb/report/combined_journals_report.py:273
864+#, python-format
865+msgid "Selector not found."
866+msgstr "Sélecteur non trouvé."
867+
868+#. module: account_mcdb
869+#: report:addons/account_mcdb/report/combined_journals_report.mako:181
870+msgid "SELECTION"
871+msgstr "SÉLECTION"
872+>>>>>>> MERGE-SOURCE
873
874=== modified file 'bin/addons/msf_profile/msf_profile.py'
875=== modified file 'bin/addons/msf_sync_data_server/data/sync_server.sync_rule.csv'
876--- bin/addons/msf_sync_data_server/data/sync_server.sync_rule.csv 2018-04-27 09:58:55 +0000
877+++ bin/addons/msf_sync_data_server/data/sync_server.sync_rule.csv 2018-05-04 09:12:47 +0000
878@@ -62,12 +62,18 @@
879 msf_sync_data_server.intermission_partner,TRUE,TRUE,FALSE,TRUE,bidirectional,Down,"['|', ('active', '=', ''), ('active', '!=', ''),('partner_type' , '=' , 'intermission')]","['customer', 'manufacturer', 'name', 'partner_type', 'property_account_payable/id', 'property_account_receivable/id', 'ref', 'supplier', 'transporter']",OC,res.partner,,Intermission Partner,Valid,"{'customer': True, 'supplier': True, 'active': False}",320
880 msf_sync_data_server.intermission_partner_tree,TRUE,TRUE,FALSE,TRUE,bidirectional,Down,"['|', ('active', '=', ''), ('active', '!=', ''),('partner_type' , '=' , 'intermission'), ('parent_id', '!=', '')]",['parent_id/id'],OC,res.partner,,Intermission Partner Tree,Valid,,321
881 msf_sync_data_server.intermission_partner_address,TRUE,TRUE,FALSE,TRUE,bidirectional,Down,"['|', ('active', '=', ''), ('active', '!=', ''),('partner_id' , 'in' , ('res.partner' , 'id' , [('partner_type' , '=' , 'intermission')]))]","['active', 'city', 'country_id/id', 'email', 'fax', 'function', 'mobile', 'name', 'partner_id/id', 'phone', 'state_id/id', 'street', 'street2', 'title/id', 'type', 'zip']",OC,res.partner.address,,Intermission Partner Address,Valid,,322
882+msf_sync_data_server.payment_method,TRUE,TRUE,FALSE,TRUE,bidirectional,Bidirectional,"[]","['name']",HQ + MISSION,hr.payment.method,,Payment Method,Valid,,328
883 msf_sync_data_server.job_description,TRUE,TRUE,FALSE,TRUE,bidirectional,Bidirectional,[],"['code', 'description', 'expected_employees', 'name', 'requirements', 'state']",HQ + MISSION,hr.job,,Job Description,Valid,,330
884 msf_sync_data_server.expatriate_employees,TRUE,TRUE,FALSE,TRUE,bidirectional,Down,"[('employee_type','=','ex'),('name','!=','Administrator')]","['active', 'birthday', 'code', 'cost_center_id/id', 'country_id/id', 'destination_id/id','employee_type', 'filter_for_third_party', 'free1_id/id', 'free2_id/id', 'funding_pool_id/id', 'gender', 'homere_codeterrain', 'homere_id_staff', 'homere_id_unique', 'identification_id', 'job_id/id', 'marital/id', 'mobile_phone', 'name', 'name_resource', 'notes', 'passport_id', 'private_phone', 'resource_type', 'sinid', 'ssnid', 'work_email', 'work_location', 'work_phone']",HQ + MISSION,hr.employee,,Expatriate Employees,Valid,,331
885 msf_sync_data_server.expatriate_employees_tree,TRUE,TRUE,FALSE,TRUE,bidirectional,Bidirectional,"[('parent_id', '!=', '')]",['parent_id/id'],HQ + MISSION,hr.employee,,Expatriate Employees Tree,Valid,,332
886 msf_sync_data_server.expatriate_employees_coach,FALSE,TRUE,FALSE,FALSE,bidirectional,Bidirectional,"[('coach_id', '!=', '')]",['coach_id/id'],HQ + MISSION,hr.employee,,Expatriate Employees Coach,Valid,,334
887+<<<<<<< TREE
888 msf_sync_data_server.local_employees,TRUE,TRUE,FALSE,TRUE,bidirectional,Bidirectional,"[('employee_type','=','local'),('name','!=','Administrator')]","['birthday', 'code', 'cost_center_id/id', 'destination_id/id', 'employee_type', 'filter_for_third_party', 'free1_id/id', 'free2_id/id', 'funding_pool_id/id', 'gender', 'homere_codeterrain', 'homere_id_staff', 'homere_id_unique', 'identification_id', 'job_id/id', 'marital/id', 'mobile_phone', 'name', 'name_resource', 'notes', 'passport_id', 'private_phone', 'resource_type', 'sinid', 'ssnid', 'work_email', 'work_location', 'work_phone']",HQ + MISSION,hr.employee,,Local Employees,Valid,"{'active': False}",335
889 msf_sync_data_server.register,TRUE,TRUE,FALSE,FALSE,bidirectional,Bidirectional-Private,"[('state','!=','draft'),('instance_id' , 'in' , ('msf.instance' , 'id' , [('level' , '=' , 'project')]))]","['balance_end_real', 'balance_start', 'closing_date', 'comments', 'date', 'instance_id/id', 'journal_id/id', 'name', 'notes', 'open_advance_amount', 'period_id/id','closing_balance_frozen','closing_balance_frozen_date','unrecorded_expenses_amount', 'register_closed_by']",MISSION,account.bank.statement,instance_id,Register,Valid,,400
890+=======
891+msf_sync_data_server.local_employees,TRUE,TRUE,FALSE,TRUE,bidirectional,Bidirectional,"[('employee_type','=','local'),('name','!=','Administrator')]","['birthday', 'code', 'cost_center_id/id', 'destination_id/id', 'employee_type', 'filter_for_third_party', 'free1_id/id', 'free2_id/id', 'funding_pool_id/id', 'gender', 'homere_codeterrain', 'homere_id_staff', 'homere_id_unique', 'identification_id', 'job_id/id', 'marital/id', 'mobile_phone', 'name', 'name_resource', 'notes', 'passport_id', 'private_phone', 'resource_type', 'sinid', 'ssnid', 'work_email', 'work_location', 'work_phone', 'contract_start_date', 'contract_end_date', 'payment_method_id/id', 'bank_name', 'bank_account_number']",HQ + MISSION,hr.employee,,Local Employees,Valid,"{'active': False}",335
892+msf_sync_data_server.register,TRUE,TRUE,FALSE,FALSE,bidirectional,Bidirectional-Private,"[('state','!=','draft'),('instance_id' , 'in' , ('msf.instance' , 'id' , [('level' , '=' , 'project')]))]","['balance_end_real', 'balance_start', 'closing_date', 'comments', 'date', 'instance_id/id', 'journal_id/id', 'name', 'notes', 'open_advance_amount', 'period_id/id','closing_balance_frozen','closing_balance_frozen_date','unrecorded_expenses_amount']",MISSION,account.bank.statement,instance_id,Register,Valid,,400
893+>>>>>>> MERGE-SOURCE
894 msf_sync_data_server.register_line,TRUE,TRUE,TRUE,FALSE,bidirectional,Bidirectional-Private,"[('instance_id' , 'in' , ('msf.instance' , 'id' , [('level' , '=' , 'project')])),('statement_id','in',('account.bank.statement','id',[('state','!=','draft')])),'!',('state','=','draft')]","['account_id/id', 'amount_in', 'amount_out', 'analytic_distribution_id/id', 'cheque_number', 'date', 'direct_invoice', 'direct_state', 'document_date', 'employee_id/id', 'instance_id/id', 'name', 'note', 'partner_id/id', 'reconciled', 'ref', 'sequence', 'statement_id/id', 'transfer_amount','transfer_journal_id/id', 'type', 'from_cash_return']",MISSION,account.bank.statement.line,instance_id,Register Line,Valid,,401
895 msf_sync_data_server.register_cashbox_line_starting,TRUE,TRUE,TRUE,FALSE,bidirectional,Bidirectional-Private,"[('instance_id' , 'in' , ('msf.instance' , 'id' , [('level' , '=' , 'project')])),('starting_id','in',('account.bank.statement','id',[('state','!=','draft')])),('starting_id', '!=', ''),('ending_id', '=', '')]","['instance_id/id', 'number', 'pieces', 'starting_id/id']",MISSION,account.cashbox.line,instance_id,Register Cashbox Line (starting),Valid,,402
896 msf_sync_data_server.register_status,TRUE,TRUE,FALSE,FALSE,bidirectional,Bidirectional-Private,"[('state','!=','draft'),('instance_id' , 'in' , ('msf.instance' , 'id' , [('level' , '=' , 'project')]))]","['instance_id/id', 'state']",MISSION,account.bank.statement,instance_id,Register Status,Valid,,403
897
898=== modified file 'bin/addons/sync_common/common.py'
899--- bin/addons/sync_common/common.py 2018-03-22 16:09:20 +0000
900+++ bin/addons/sync_common/common.py 2018-05-04 09:12:47 +0000
901@@ -160,6 +160,7 @@
902 'cash.request.liquidity.bank',
903 'cash.request.liquidity.cheque',
904 'cash.request.liquidity.total',
905+ 'hr.payment.method',
906 ]
907
908 OC_LIST = ['OCA', 'OCB', 'OCBA', 'OCG', 'OCP']

Subscribers

People subscribed via source and target branches