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
1=== modified file 'bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml'
2--- bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml 2016-03-04 11:27:47 +0000
3+++ bin/addons/msf_doc_import/wizard/wiz_common_import_view.xml 2017-01-18 10:56:17 +0000
4@@ -16,7 +16,7 @@
5 <tree string="Products" editable="top">
6 <field name="default_code" readonly="True" />
7 <field name="name" readonly="True" />
8- <field name="import_product_qty" on_change="on_change_import_product_qty(import_product_qty, context)"/>
9+ <field name="import_product_qty" on_change="on_change_import_product_qty(import_product_qty, context)" readonly="False" />
10 </tree>
11 </field>
12 <separator colspan="4" string="Actions" />
13
14=== modified file 'bin/addons/order_nomenclature/order_nomenclature.py'
15--- bin/addons/order_nomenclature/order_nomenclature.py 2016-08-18 08:32:03 +0000
16+++ bin/addons/order_nomenclature/order_nomenclature.py 2017-01-18 10:56:17 +0000
17@@ -485,10 +485,12 @@
18 ids = map(lambda x: values['nomen_sub_%i'%x], ids)
19 subNomenclatures = self.pool.get('product.nomenclature').read(cr, uid, ids, ['name'], context=context)
20
21- for n in subNomenclatures:
22- description.append(n['name'])
23+ if subNomenclatures:
24+ for n in subNomenclatures:
25+ description.append(n['name'])
26
27- values.update({'nomenclature_description': ':'.join(description)})
28+ if description:
29+ values.update({'nomenclature_description': ':'.join(description)})
30
31 def _productDomain(self, cr, uid, id, context=None):
32 '''
33
34=== modified file 'bin/osv/orm.py'
35--- bin/osv/orm.py 2017-01-17 13:31:02 +0000
36+++ bin/osv/orm.py 2017-01-18 10:56:17 +0000
37@@ -3882,8 +3882,23 @@
38 if isinstance(ids, (int, long)):
39 ids = [ids]
40
41+ check_to_do = False
42+ for fld in vals.copy():
43+ fobj = None
44+ if fld in self._columns:
45+ fobj = self._columns[fld]
46+ elif fld in self._inherit_fields:
47+ fobj = self._inherit_fields[fld][2]
48+ if not fobj:
49+ continue
50+
51+ if not (isinstance(fobj, fields.function) and fobj._fnct_inv):
52+ check_to_do = True
53+ break
54+
55 self._check_concurrency(cr, ids, context)
56- self.pool.get('ir.model.access').check(cr, user, self._name, 'write', context=context)
57+ if check_to_do:
58+ self.pool.get('ir.model.access').check(cr, user, self._name, 'write', context=context)
59
60 #result = self._store_get_values(cr, user, ids, vals.keys(), context) or []
61 result = []

Subscribers

People subscribed via source and target branches

to all changes: