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

Proposed by jftempo
Status: Merged
Merged at revision: 4203
Proposed branch: lp:~unifield-team/unifield-server/us-1916
Merge into: lp:unifield-server
Diff against target: 61 lines (+22/-5)
3 files modified
bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml (+1/-1)
bin/addons/order_nomenclature/order_nomenclature.py (+5/-3)
bin/osv/orm.py (+16/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1916
Reviewer Review Type Date Requested Status
jftempo Pending
Review via email: mp+314812@code.launchpad.net
To post a comment you must log in.
Revision history for this message
jftempo (jfb-tempo-consulting) :
Revision history for this message
jftempo (jfb-tempo-consulting) :

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/wiz_common_import_view.xml'
--- bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml 2016-03-04 11:27:47 +0000
+++ bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml 2017-01-18 10:56:17 +0000
@@ -16,7 +16,7 @@
16 <tree string="Products" editable="top">16 <tree string="Products" editable="top">
17 <field name="default_code" readonly="True" />17 <field name="default_code" readonly="True" />
18 <field name="name" readonly="True" />18 <field name="name" readonly="True" />
19 <field name="import_product_qty" on_change="on_change_import_product_qty(import_product_qty, context)"/>19 <field name="import_product_qty" on_change="on_change_import_product_qty(import_product_qty, context)" readonly="False" />
20 </tree>20 </tree>
21 </field>21 </field>
22 <separator colspan="4" string="Actions" />22 <separator colspan="4" string="Actions" />
2323
=== modified file 'bin/addons/order_nomenclature/order_nomenclature.py'
--- bin/addons/order_nomenclature/order_nomenclature.py 2016-08-18 08:32:03 +0000
+++ bin/addons/order_nomenclature/order_nomenclature.py 2017-01-18 10:56:17 +0000
@@ -485,10 +485,12 @@
485 ids = map(lambda x: values['nomen_sub_%i'%x], ids)485 ids = map(lambda x: values['nomen_sub_%i'%x], ids)
486 subNomenclatures = self.pool.get('product.nomenclature').read(cr, uid, ids, ['name'], context=context)486 subNomenclatures = self.pool.get('product.nomenclature').read(cr, uid, ids, ['name'], context=context)
487487
488 for n in subNomenclatures:488 if subNomenclatures:
489 description.append(n['name'])489 for n in subNomenclatures:
490 description.append(n['name'])
490491
491 values.update({'nomenclature_description': ':'.join(description)})492 if description:
493 values.update({'nomenclature_description': ':'.join(description)})
492494
493 def _productDomain(self, cr, uid, id, context=None):495 def _productDomain(self, cr, uid, id, context=None):
494 '''496 '''
495497
=== modified file 'bin/osv/orm.py'
--- bin/osv/orm.py 2017-01-17 13:31:02 +0000
+++ bin/osv/orm.py 2017-01-18 10:56:17 +0000
@@ -3882,8 +3882,23 @@
3882 if isinstance(ids, (int, long)):3882 if isinstance(ids, (int, long)):
3883 ids = [ids]3883 ids = [ids]
38843884
3885 check_to_do = False
3886 for fld in vals.copy():
3887 fobj = None
3888 if fld in self._columns:
3889 fobj = self._columns[fld]
3890 elif fld in self._inherit_fields:
3891 fobj = self._inherit_fields[fld][2]
3892 if not fobj:
3893 continue
3894
3895 if not (isinstance(fobj, fields.function) and fobj._fnct_inv):
3896 check_to_do = True
3897 break
3898
3885 self._check_concurrency(cr, ids, context)3899 self._check_concurrency(cr, ids, context)
3886 self.pool.get('ir.model.access').check(cr, user, self._name, 'write', context=context)3900 if check_to_do:
3901 self.pool.get('ir.model.access').check(cr, user, self._name, 'write', context=context)
38873902
3888 #result = self._store_get_values(cr, user, ids, vals.keys(), context) or []3903 #result = self._store_get_values(cr, user, ids, vals.keys(), context) or []
3889 result = []3904 result = []

Subscribers

People subscribed via source and target branches

to all changes: