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
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py'
--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2017-04-19 12:17:27 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2017-04-25 09:19:48 +0000
@@ -799,13 +799,17 @@
799 We generate the message which will be displayed on the simulation799 We generate the message which will be displayed on the simulation
800 screen. This message is a merge between all errors.800 screen. This message is a merge between all errors.
801 '''801 '''
802
803 import_error_ok = False
802 # Generate the message804 # Generate the message
803 if len(values_header_errors):805 if len(values_header_errors):
806 import_error_ok = True
804 message += '\n## Error on header values ##\n\n'807 message += '\n## Error on header values ##\n\n'
805 for err in values_header_errors:808 for err in values_header_errors:
806 message += '%s\n' % err809 message += '%s\n' % err
807810
808 if len(values_line_errors):811 if len(values_line_errors):
812 import_error_ok = True
809 message += '\n## Error on line values ##\n\n'813 message += '\n## Error on line values ##\n\n'
810 for err in values_line_errors:814 for err in values_line_errors:
811 message += '%s\n' % err815 message += '%s\n' % err
@@ -813,6 +817,7 @@
813 header_values['message'] = message817 header_values['message'] = message
814 header_values['state'] = 'simu_done'818 header_values['state'] = 'simu_done'
815 header_values['percent_completed'] = 100.0819 header_values['percent_completed'] = 100.0
820 header_values['import_error_ok'] = import_error_ok
816 self.write(cr, uid, [wiz.id], header_values, context=context)821 self.write(cr, uid, [wiz.id], header_values, context=context)
817822
818 res = self.go_to_simulation(cr, uid, [wiz.id], context=context)823 res = self.go_to_simulation(cr, uid, [wiz.id], context=context)
819824
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml'
--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2016-04-05 08:15:29 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2017-04-25 09:19:48 +0000
@@ -38,6 +38,9 @@
38 </group>38 </group>
3939
40 <notebook colspan="4">40 <notebook colspan="4">
41 <page string="Information" attrs="{'invisible': [('import_error_ok', '=', False), ('state', '!=', 'error')]}">
42 <field name="message" colspan="4" nolabel="1" readonly="1" widget="full_text" />
43 </page>
4144
42 <page string="Incoming shipment">45 <page string="Incoming shipment">
43 <separator colspan="2" string="Origin values"/>46 <separator colspan="2" string="Origin values"/>
@@ -58,10 +61,6 @@
58 <field name="line_ids" mode="tree" colspan="4" nolabel="1" readonly="1" />61 <field name="line_ids" mode="tree" colspan="4" nolabel="1" readonly="1" />
59 </page>62 </page>
6063
61 <page string="Information">
62 <field name="message" colspan="4" nolabel="1" readonly="1" />
63 </page>
64
65 </notebook>64 </notebook>
6665
67 </form>66 </form>
6867
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml'
--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2016-06-06 13:30:57 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2017-04-25 09:19:48 +0000
@@ -41,6 +41,11 @@
41 </html>41 </html>
42 </group>42 </group>
43 <notebook colspan="4">43 <notebook colspan="4">
44 <page string="Information" attrs="{'invisible': [('import_error_ok', '=', False), ('state', '!=', 'error')]}">
45 <field name="nb_file_lines" />
46 <field name="nb_treated_lines" />
47 <field name="message" nolabel="1" colspan="4" readonly="1" widget="full_text" />
48 </page>
44 <page string="Purchase Order">49 <page string="Purchase Order">
45 <field name="in_dest_addr" />50 <field name="in_dest_addr" />
46 <newline />51 <newline />
@@ -114,11 +119,6 @@
114 </tree>119 </tree>
115 </field>120 </field>
116 </page>121 </page>
117 <page string="Information">
118 <field name="nb_file_lines" />
119 <field name="nb_treated_lines" />
120 <field name="message" nolabel="1" colspan="4" readonly="1" />
121 </page>
122 <!--<page string="Previous simulations">122 <!--<page string="Previous simulations">
123 </page>-->123 </page>-->
124 </notebook>124 </notebook>

Subscribers

People subscribed via source and target branches