Merge lp:~unifield-team/unifield-server/us-941 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4150
Proposed branch: lp:~unifield-team/unifield-server/us-941
Merge into: lp:unifield-server
Diff against target: 134 lines (+50/-5) (has conflicts)
3 files modified
bin/addons/msf_outgoing/wizard/ppl_processor.py (+39/-2)
bin/addons/msf_outgoing/wizard/ppl_processor_view.xml (+4/-3)
bin/addons/msf_profile/i18n/fr_MF.po (+7/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-941
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+314814@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_outgoing/wizard/ppl_processor.py'
--- bin/addons/msf_outgoing/wizard/ppl_processor.py 2016-11-09 09:07:38 +0000
+++ bin/addons/msf_outgoing/wizard/ppl_processor.py 2017-01-16 10:09:31 +0000
@@ -48,7 +48,18 @@
48 ),48 ),
49 }49 }
5050
51 def do_ppl_step1(self, cr, uid, ids, context=None):51 def do_check_ppl(self, cr, uid, ids, context=None):
52 """
53 Run a check of the integrity of lines
54 """
55 if context is None:
56 context = {}
57
58 res = self.do_ppl_step1(cr, uid, ids, context=context, just_check=True)
59
60 return res
61
62 def do_ppl_step1(self, cr, uid, ids, context=None, just_check=False):
52 """63 """
53 Make some integrity checks and call the do_ppl_step1 method of the stock.picking object64 Make some integrity checks and call the do_ppl_step1 method of the stock.picking object
54 """65 """
@@ -73,6 +84,7 @@
73 to_smaller_ids = []84 to_smaller_ids = []
74 overlap_ids = []85 overlap_ids = []
75 gap_ids = []86 gap_ids = []
87 ok_ids = []
7688
77 for wizard in self.browse(cr, uid, ids, context=context):89 for wizard in self.browse(cr, uid, ids, context=context):
78 # List of sequences90 # List of sequences
@@ -80,6 +92,7 @@
8092
81 for line in wizard.move_ids:93 for line in wizard.move_ids:
82 sequences.append((line.from_pack, line.to_pack, line.id))94 sequences.append((line.from_pack, line.to_pack, line.id))
95 ok_ids.append(line.id)
8396
84 # If no data, we return False97 # If no data, we return False
85 if not sequences:98 if not sequences:
@@ -124,7 +137,10 @@
124 if gap_ids:137 if gap_ids:
125 ppl_move_obj.write(cr, uid, gap_ids, {'integrity_status': 'gap'}, context=context)138 ppl_move_obj.write(cr, uid, gap_ids, {'integrity_status': 'gap'}, context=context)
126139
127 if missing_ids or to_smaller_ids or overlap_ids or gap_ids:140 if not (missing_ids or to_smaller_ids or overlap_ids or gap_ids) and just_check:
141 ppl_move_obj.write(cr, uid, ok_ids, {'integrity_status': 'empty'}, context=context)
142
143 if missing_ids or to_smaller_ids or overlap_ids or gap_ids or just_check:
128 view_id = data_obj.get_object_reference(cr, uid, 'msf_outgoing', 'ppl_processor_step1_form_view')[1]144 view_id = data_obj.get_object_reference(cr, uid, 'msf_outgoing', 'ppl_processor_step1_form_view')[1]
129 return {145 return {
130 'type': 'ir.actions.act_window',146 'type': 'ir.actions.act_window',
@@ -643,6 +659,15 @@
643659
644 return super(ppl_move_processor, self).create(cr, uid, vals, context=context)660 return super(ppl_move_processor, self).create(cr, uid, vals, context=context)
645661
662 def write(self, cr, uid, ids, vals, context=None):
663 """
664 Remove the integrity status value if from_pack or to_pack is changed.
665 """
666 if vals.get('from_pack') or vals.get('to_pack'):
667 vals['integrity_status'] = 'empty'
668
669 return super(ppl_move_processor, self).write(cr, uid, ids, vals, context=context)
670
646 def _get_line_data(self, cr, uid, wizard=False, move=False, context=None):671 def _get_line_data(self, cr, uid, wizard=False, move=False, context=None):
647 """672 """
648 Just put the stock move product quantity into the ppl.move.processor673 Just put the stock move product quantity into the ppl.move.processor
@@ -727,6 +752,18 @@
727752
728 return pick_wiz_id753 return pick_wiz_id
729754
755 # View methods
756 def from_to_pack_change(self, cr, uid, ids, from_pack, to_pack):
757 """
758 Remove the integrity status when from/to pack value is changed
759 """
760 if from_pack or to_pack:
761 return {
762 'value': {'integrity_status': 'empty',},
763 }
764
765 return {}
766
730ppl_move_processor()767ppl_move_processor()
731768
732# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:769# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
733770
=== modified file 'bin/addons/msf_outgoing/wizard/ppl_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2016-10-28 15:31:38 +0000
+++ bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2017-01-16 10:09:31 +0000
@@ -15,8 +15,9 @@
15 colspan="4" nolabel="1" />15 colspan="4" nolabel="1" />
16 <group colspan="4" col="6" name="actions">16 <group colspan="4" col="6" name="actions">
17 <separator string="Actions" colspan="6" />17 <separator string="Actions" colspan="6" />
18 <label colspan="4"> </label>18 <label colspan="3"> </label>
19 <button special="cancel" string="Cancel" icon="gtk-cancel" />19 <button special="cancel" string="Cancel" icon="gtk-cancel" />
20 <button name="do_check_ppl" type="object" string="Check integrity" icon="gtk-info" />
20 <button name="do_ppl_step1" type="object" string="Next" icon="gtk-go-forward" />21 <button name="do_ppl_step1" type="object" string="Next" icon="gtk-go-forward" />
21 </group>22 </group>
22 </form>23 </form>
@@ -79,8 +80,8 @@
79 />80 />
80 <field name="prodlot_id" readonly="1" />81 <field name="prodlot_id" readonly="1" />
81 <field name="qty_per_pack" />82 <field name="qty_per_pack" />
82 <field name="from_pack" />83 <field name="from_pack" on_change="from_to_pack_change(from_pack, to_pack)" />
83 <field name="to_pack" />84 <field name="to_pack" on_change="from_to_pack_change(from_pack, to_pack)" />
84 <button name="open_split_wizard"85 <button name="open_split_wizard"
85 type="object"86 type="object"
86 icon="terp-stock_effects-object-colorize"87 icon="terp-stock_effects-object-colorize"
8788
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2017-01-02 08:52:42 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2017-01-16 10:09:31 +0000
@@ -75814,6 +75814,7 @@
75814msgid "Partner Created on this instance"75814msgid "Partner Created on this instance"
75815msgstr "Partenaire créé sur cette instance"75815msgstr "Partenaire créé sur cette instance"
7581675816
75817<<<<<<< TREE
75817#. module: account_reconciliation75818#. module: account_reconciliation
75818#: code:addons/account_reconciliation/wizard/account_reconcile.py:20775819#: code:addons/account_reconciliation/wizard/account_reconcile.py:207
75819#, python-format75820#, python-format
@@ -75854,3 +75855,9 @@
75854#, python-format75855#, python-format
75855msgid "Wrong total: %.2f, instead of: %.2f"75856msgid "Wrong total: %.2f, instead of: %.2f"
75856msgstr "Total erroné : %.2f, au lieu de : %.2f"75857msgstr "Total erroné : %.2f, au lieu de : %.2f"
75858=======
75859#. module: msf_outgoing
75860#: view:ppl.processor:0
75861msgid "Check integrity"
75862msgstr "Vérifier les erreurs"
75863>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches

to all changes: