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

Proposed by jftempo
Status: Merged
Merged at revision: 5036
Proposed branch: lp:~dorian-kemps/unifield-server/US-2109
Merge into: lp:unifield-server
Diff against target: 142 lines (+56/-7) (has conflicts)
4 files modified
bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako (+2/-2)
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py (+18/-4)
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml (+2/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+34/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-2109
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+350944@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/msf_doc_import/report/po_simulation_screen_xls_report.mako'
2--- bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2017-01-17 13:30:54 +0000
3+++ bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2018-08-10 09:51:51 +0000
4@@ -269,9 +269,9 @@
5 <Cell ss:StyleID="line" ><Data ss:Type="String">${(l.in_currency and obj_name_get('res.currency', l.in_currency.id) or '')|x}</Data></Cell>
6 <Cell ss:StyleID="line" ><Data ss:Type="Number">${(l.in_line_number)|x}</Data></Cell>
7 % if l.type_change == 'del':
8- <Cell ss:StyleID="line_change" ><Data ss:Type="String">${(getSel(l, 'type_change') or '')|x}</Data></Cell>
9+ <Cell ss:StyleID="line_change" ><Data ss:Type="String">${(getSel(l, 'chg_text') or '')|x}</Data></Cell>
10 % else:
11- <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(l, 'type_change') or '')|x}</Data></Cell>
12+ <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(l, 'chg_text') or '')|x}</Data></Cell>
13 % endif
14 % if not l.type_change == 'ignore' and (l.type_change == 'del' or l.in_product_id != l.imp_product_id):
15 <Cell ss:StyleID="line_change" ><Data ss:Type="String">${(l.imp_product_id and obj_name_get('product.product', l.imp_product_id.id) or '')|x}</Data></Cell>
16
17=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py'
18--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2018-07-11 14:31:55 +0000
19+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2018-08-10 09:51:51 +0000
20@@ -980,6 +980,7 @@
21 elif file_line[1] == 'split':
22 new_wl_id = wl_obj.copy(cr, uid, po_line,
23 {'type_change': 'split',
24+ 'chg_text': _('Split\nQTY'),
25 'parent_line_id': po_line,
26 'imp_dcd': False,
27 'po_line_id': False}, context=context)
28@@ -1203,7 +1204,10 @@
29 'in_currency': False,
30 'in_ext_ref': False,
31 'imp_discrepancy': 0.00,
32- 'change_ok': False}
33+ 'change_ok': False,
34+ 'chg_text': line.chg_text
35+ or line.type_change and dict(self._columns['type_change'].selection).get(line.type_change) or '',
36+ }
37
38 if line.po_line_id:
39 l = line.po_line_id
40@@ -1224,11 +1228,19 @@
41
42 prod_change = False
43 if res[line.id]['in_product_id'] and not line.imp_product_id or \
44- not res[line.id]['in_product_id'] and line.imp_product_id or \
45- res[line.id]['in_product_id'] != line.imp_product_id.id:
46+ not res[line.id]['in_product_id'] and line.imp_product_id or \
47+ res[line.id]['in_product_id'] != line.imp_product_id.id:
48 prod_change = True
49+ if not line.chg_text and line.imp_product_id or (not line.imp_product_id and line.in_comment):
50+ res[line.id]['chg_text'] += _('\nPROD')
51 qty_change = not(res[line.id]['in_qty'] == line.imp_qty)
52+ if not line.chg_text and (line.imp_product_id or (not line.imp_product_id and line.in_comment)) \
53+ and qty_change:
54+ res[line.id]['chg_text'] += _('\nQTY')
55 price_change = not(res[line.id]['in_price'] == line.imp_price)
56+ if not line.chg_text and (line.imp_product_id or (not line.imp_product_id and line.in_comment)) \
57+ and price_change:
58+ res[line.id]['chg_text'] += _('\nPRICE')
59 drd_change = not(res[line.id]['in_drd'] == line.imp_drd)
60 dcd_change = not(res[line.id]['in_dcd'] == line.imp_dcd)
61 to_delete = line.imp_comment == '[DELETE]'
62@@ -1308,7 +1320,7 @@
63 'type_change': fields.selection([('', ''), ('error', 'Error'), ('new', 'New'),
64 ('split', 'Split'), ('del', 'Del'),
65 ('ignore', 'Ignore')],
66- string='CHG', readonly=True),
67+ string='Change type', readonly=True),
68 'imp_product_id': fields.many2one('product.product', string='Product',
69 readonly=True),
70 'imp_qty': fields.float(digits=(16,2), string='Qty', readonly=True),
71@@ -1335,6 +1347,8 @@
72 string='Parent line id',
73 help='Use to split the good PO line',
74 readonly=True),
75+ 'chg_text': fields.function(_get_line_info, method=True, multi='line', type='char', size=216, string='CHG',
76+ readonly=True, store=True),
77 }
78
79 def get_error_msg(self, cr, uid, ids, context=None):
80
81=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml'
82--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2017-06-12 14:43:11 +0000
83+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2018-08-10 09:51:51 +0000
84@@ -92,7 +92,8 @@
85 <field name="in_line_number" invisible="1" />
86 <field name="str_in_line_number" />
87 <field name="in_ext_ref" />
88- <field name="type_change" />
89+ <field name="type_change" invisible="1"/>
90+ <field name="chg_text" />
91 <field name="error_msg" invisible="1" />
92 <button name="get_error_msg" type="object" icon="gtk-dialog-warning" string="See error" attrs="{'invisible': [('error_msg', '=', False)]}" />
93 <field name="imp_product_id" />
94
95=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
96--- bin/addons/msf_profile/i18n/fr_MF.po 2018-08-08 13:49:51 +0000
97+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-08-10 09:51:51 +0000
98@@ -101219,6 +101219,7 @@
99 msgid "Not Invoice"
100 msgstr "Pas de Facture"
101
102+<<<<<<< TREE
103 #. module: consumption_calculation
104 #: code:addons/consumption_calculation/expiry_calculation.py:740
105 #: report:product.likely.expire.report_pdf:0
106@@ -101424,3 +101425,36 @@
107 #, python-format
108 msgid "You can only have one draft shipment for a given address, please check %s"
109 msgstr "Vous ne pouvez avoir qu'une seule Expédition en brouillon pour la même adresse, veuillez vérifier %s "
110+=======
111+#. module: msf_doc_import
112+#: code:addons/msf_doc_import/wizard/wizard_po_simulation_screen.py:983
113+#, python-format
114+msgid "Split\n"
115+"QTY"
116+msgstr "Divisé\n"
117+"QTÉ"
118+
119+#. module: msf_doc_import
120+#: code:addons/msf_doc_import/wizard/wizard_po_simulation_screen.py:1239
121+#, python-format
122+msgid "\n"
123+"QTY"
124+msgstr "\n"
125+"QTÉ"
126+
127+#. module: msf_doc_import
128+#: code:addons/msf_doc_import/wizard/wizard_po_simulation_screen.py:1243
129+#, python-format
130+msgid "\n"
131+"PRICE"
132+msgstr "\n"
133+"PRIX"
134+
135+#. module: msf_doc_import
136+#: code:addons/msf_doc_import/wizard/wizard_po_simulation_screen.py:1235
137+#, python-format
138+msgid "\n"
139+"PROD"
140+msgstr "\n"
141+"PROD"
142+>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches