Skip to content

Commit 6faf232

Browse files
committed
[MERGE] forward port branch saas-6 up to ef4efea
2 parents 77c64e3 + ef4efea commit 6faf232

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

addons/point_of_sale/point_of_sale.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ def _confirm_orders(self, cr, uid, ids, context=None):
625625
return True
626626

627627
def open_frontend_cb(self, cr, uid, ids, context=None):
628-
if not context:
629-
context = {}
628+
context = dict(context or {})
630629
if not ids:
631630
return {}
632631
for session in self.browse(cr, uid, ids, context=context):

addons/purchase_requisition/purchase_requisition_view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<field name="ordering_date" attrs="{'readonly': [('state','not in',('draft'))]}"/>
6464
<field name="schedule_date" attrs="{'readonly': [('state','not in',('draft'))]}"/>
6565
<field name="origin" placeholder="e.g. PO0025" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
66-
<field name="picking_type_id" widget="selection" groups="stock.group_stock_adv_location" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
66+
<field name="picking_type_id" widget="selection" groups="stock.group_adv_location" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
6767
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" attrs="{'readonly': [('state','not in',('draft'))]}"/>
6868
</group>
6969
</group>

openerp/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ def _read_group_prepare(self, orderby, aggregated_fields, annotated_groupbys, qu
18991899
for order_part in orderby.split(','):
19001900
order_split = order_part.split()
19011901
order_field = order_split[0]
1902-
if order_field in groupby_fields:
1902+
if order_field == 'id' or order_field in groupby_fields:
19031903

19041904
if self._fields[order_field.split(':')[0]].type == 'many2one':
19051905
order_clause = self._generate_order_by(order_part, query).replace('ORDER BY ', '')

0 commit comments

Comments
 (0)