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

Proposed by jftempo
Status: Merged
Merged at revision: 4917
Proposed branch: lp:~dorian-kemps/unifield-server/US-3015
Merge into: lp:unifield-server
Diff against target: 69 lines (+29/-1) (has conflicts)
3 files modified
bin/addons/msf_profile/data/patches.xml (+4/-0)
bin/addons/msf_profile/msf_profile.py (+18/-1)
bin/addons/product_nomenclature/product_nomenclature.py (+7/-0)
Text conflict in bin/addons/msf_profile/msf_profile.py
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-3015
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+345651@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_profile/data/patches.xml'
--- bin/addons/msf_profile/data/patches.xml 2018-04-27 09:58:55 +0000
+++ bin/addons/msf_profile/data/patches.xml 2018-05-16 09:13:40 +0000
@@ -20,6 +20,10 @@
20 <field name="method">us_4430_set_puf_to_reversal</field>20 <field name="method">us_4430_set_puf_to_reversal</field>
21 </record>21 </record>
2222
23 <record id="us_3015_remove_whitespaces_product_description" model="patch.scripts">
24 <field name="method">us_3015_remove_whitespaces_product_description</field>
25 </record>
26
23 <!-- UF8.0 -->27 <!-- UF8.0 -->
24 <record id="set_sequence_main_nomen" model="patch.scripts">28 <record id="set_sequence_main_nomen" model="patch.scripts">
25 <field name="method">set_sequence_main_nomen</field>29 <field name="method">set_sequence_main_nomen</field>
2630
=== modified file 'bin/addons/msf_profile/msf_profile.py'
--- bin/addons/msf_profile/msf_profile.py 2018-04-27 09:58:55 +0000
+++ bin/addons/msf_profile/msf_profile.py 2018-05-16 09:13:40 +0000
@@ -296,7 +296,24 @@
296 cr.execute(update_ji)296 cr.execute(update_ji)
297 self._logger.warn('%s JI updated.' % (cr.rowcount,))297 self._logger.warn('%s JI updated.' % (cr.rowcount,))
298298
299299<<<<<<< TREE
300
301=======
302 def us_3015_remove_whitespaces_product_description(self, cr, uid, *a, **b):
303 # Checking product's description
304 cr.execute('''SELECT id, name FROM product_template WHERE name LIKE ' %' or name LIKE '% ' ''')
305 for x in cr.fetchall():
306 cr.execute('''UPDATE product_template SET name = %s WHERE id = %s''', (x[1].strip(), x[0]))
307
308 # Checking product's description in the translations
309 cr.execute('''SELECT id, value FROM ir_translation
310 WHERE name = 'product.template,name' AND value LIKE ' %' or value LIKE '% ' ''')
311 for x in cr.fetchall():
312 cr.execute('''UPDATE ir_translation SET value = %s WHERE id = %s''', (x[1].strip(), x[0]))
313
314 return True
315
316>>>>>>> MERGE-SOURCE
300 # UF8.0317 # UF8.0
301 def set_sequence_main_nomen(self, cr, uid, *a, **b):318 def set_sequence_main_nomen(self, cr, uid, *a, **b):
302 nom = ['MED', 'LOG', 'LIB', 'SRV']319 nom = ['MED', 'LOG', 'LIB', 'SRV']
303320
=== modified file 'bin/addons/product_nomenclature/product_nomenclature.py'
--- bin/addons/product_nomenclature/product_nomenclature.py 2018-03-05 13:48:00 +0000
+++ bin/addons/product_nomenclature/product_nomenclature.py 2018-05-16 09:13:40 +0000
@@ -750,6 +750,10 @@
750 else:750 else:
751 raise osv.except_osv(_('Error'), _('No Product Category found for %s. Please contact an accounting member to create a new one for this family.')751 raise osv.except_osv(_('Error'), _('No Product Category found for %s. Please contact an accounting member to create a new one for this family.')
752 % vals['nomenclature_description'])752 % vals['nomenclature_description'])
753
754 if vals.get('name'):
755 vals['name'] = vals['name'].strip()
756
753 return super(product_template, self).create(cr, uid, vals, context)757 return super(product_template, self).create(cr, uid, vals, context)
754758
755 def write(self, cr, uid, ids, vals, context=None):759 def write(self, cr, uid, ids, vals, context=None):
@@ -760,6 +764,9 @@
760 return True764 return True
761 if vals.get('nomen_manda_2'):765 if vals.get('nomen_manda_2'):
762 vals['categ_id'] = self.pool.get('product.nomenclature').browse(cr, uid, vals['nomen_manda_2'], context=context).category_id.id766 vals['categ_id'] = self.pool.get('product.nomenclature').browse(cr, uid, vals['nomen_manda_2'], context=context).category_id.id
767 if vals.get('name'):
768 vals['name'] = vals['name'].strip()
769
763 return super(product_template, self).write(cr, uid, ids, vals, context)770 return super(product_template, self).write(cr, uid, ids, vals, context)
764771
765product_template()772product_template()

Subscribers

People subscribed via source and target branches