Merge lp:~fabien-morin/unifield-server/fm-us-2629 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4337
Proposed branch: lp:~fabien-morin/unifield-server/fm-us-2629
Merge into: lp:unifield-server
Diff against target: 82 lines (+13/-9)
3 files modified
bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py (+5/-0)
bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml (+3/-4)
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml (+5/-5)
To merge this branch: bzr merge lp:~fabien-morin/unifield-server/fm-us-2629
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+323110@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/wizard/wizard_in_simulation_screen.py'
2--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2017-04-19 12:17:27 +0000
3+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2017-04-25 09:19:48 +0000
4@@ -799,13 +799,17 @@
5 We generate the message which will be displayed on the simulation
6 screen. This message is a merge between all errors.
7 '''
8+
9+ import_error_ok = False
10 # Generate the message
11 if len(values_header_errors):
12+ import_error_ok = True
13 message += '\n## Error on header values ##\n\n'
14 for err in values_header_errors:
15 message += '%s\n' % err
16
17 if len(values_line_errors):
18+ import_error_ok = True
19 message += '\n## Error on line values ##\n\n'
20 for err in values_line_errors:
21 message += '%s\n' % err
22@@ -813,6 +817,7 @@
23 header_values['message'] = message
24 header_values['state'] = 'simu_done'
25 header_values['percent_completed'] = 100.0
26+ header_values['import_error_ok'] = import_error_ok
27 self.write(cr, uid, [wiz.id], header_values, context=context)
28
29 res = self.go_to_simulation(cr, uid, [wiz.id], context=context)
30
31=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml'
32--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2016-04-05 08:15:29 +0000
33+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2017-04-25 09:19:48 +0000
34@@ -38,6 +38,9 @@
35 </group>
36
37 <notebook colspan="4">
38+ <page string="Information" attrs="{'invisible': [('import_error_ok', '=', False), ('state', '!=', 'error')]}">
39+ <field name="message" colspan="4" nolabel="1" readonly="1" widget="full_text" />
40+ </page>
41
42 <page string="Incoming shipment">
43 <separator colspan="2" string="Origin values"/>
44@@ -58,10 +61,6 @@
45 <field name="line_ids" mode="tree" colspan="4" nolabel="1" readonly="1" />
46 </page>
47
48- <page string="Information">
49- <field name="message" colspan="4" nolabel="1" readonly="1" />
50- </page>
51-
52 </notebook>
53
54 </form>
55
56=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml'
57--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2016-06-06 13:30:57 +0000
58+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2017-04-25 09:19:48 +0000
59@@ -41,6 +41,11 @@
60 </html>
61 </group>
62 <notebook colspan="4">
63+ <page string="Information" attrs="{'invisible': [('import_error_ok', '=', False), ('state', '!=', 'error')]}">
64+ <field name="nb_file_lines" />
65+ <field name="nb_treated_lines" />
66+ <field name="message" nolabel="1" colspan="4" readonly="1" widget="full_text" />
67+ </page>
68 <page string="Purchase Order">
69 <field name="in_dest_addr" />
70 <newline />
71@@ -114,11 +119,6 @@
72 </tree>
73 </field>
74 </page>
75- <page string="Information">
76- <field name="nb_file_lines" />
77- <field name="nb_treated_lines" />
78- <field name="message" nolabel="1" colspan="4" readonly="1" />
79- </page>
80 <!--<page string="Previous simulations">
81 </page>-->
82 </notebook>

Subscribers

People subscribed via source and target branches