Merge lp:~unifield-team/unifield-addons/addons-uf-513 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4506
Proposed branch: lp:~unifield-team/unifield-addons/addons-uf-513
Merge into: lp:unifield-addons
Diff against target: 70 lines (+21/-1) (has conflicts)
3 files modified
purchase/purchase.py (+8/-0)
purchase/test/procurement_buy.yml (+1/-1)
stock/stock.py (+12/-0)
Text conflict in stock/stock.py
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/addons-uf-513
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+82569@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 'purchase/purchase.py'
--- purchase/purchase.py 2011-10-24 13:46:20 +0000
+++ purchase/purchase.py 2011-11-17 17:19:10 +0000
@@ -708,6 +708,14 @@
708 'uom': uom,708 'uom': uom,
709 'date': date_order,709 'date': date_order,
710 })[pricelist]710 })[pricelist]
711 if price is False:
712 warning = {
713 'title': 'No valid pricelist line found !',
714 'message':
715 "Couldn't find a pricelist line matching this product and quantity.\n"
716 "You have to change either the product, the quantity or the pricelist."
717 }
718 res.update({'warning': warning})
711 dt = (datetime.now() + relativedelta(days=int(seller_delay) or 0.0)).strftime('%Y-%m-%d %H:%M:%S')719 dt = (datetime.now() + relativedelta(days=int(seller_delay) or 0.0)).strftime('%Y-%m-%d %H:%M:%S')
712720
713721
714722
=== modified file 'purchase/test/procurement_buy.yml'
--- purchase/test/procurement_buy.yml 2011-01-14 00:11:01 +0000
+++ purchase/test/procurement_buy.yml 2011-11-17 17:19:10 +0000
@@ -24,7 +24,7 @@
24 seller_delay: '1'24 seller_delay: '1'
25 seller_ids:25 seller_ids:
26 - delay: 126 - delay: 1
27 name: base.res_partner_asus27 name: base.res_partner_10
28 min_qty: 2.028 min_qty: 2.0
29 qty: 5.029 qty: 5.0
30-30-
3131
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-11-14 10:45:15 +0000
+++ stock/stock.py 2011-11-17 17:19:10 +0000
@@ -1324,6 +1324,12 @@
1324 }1324 }
1325 return self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', view_list.get(pick.type, 'view_picking_form')) 1325 return self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', view_list.get(pick.type, 'view_picking_form'))
1326 1326
1327 def _hook_log_message_picking(self, cr, uid, ids, context=None, pick=False, message=''):
1328 '''
1329 Allow the modification of the logged message
1330 '''
1331 return message
1332
1327 def _hook_log_picking_log_cond(self, cr, uid, ids, context=None, *args, **kwargs):1333 def _hook_log_picking_log_cond(self, cr, uid, ids, context=None, *args, **kwargs):
1328 '''1334 '''
1329 specify if we display a log or not1335 specify if we display a log or not
@@ -1375,8 +1381,12 @@
1375 res = self._hook_picking_get_view(cr, uid, ids, context=context, pick=pick)1381 res = self._hook_picking_get_view(cr, uid, ids, context=context, pick=pick)
1376 context.update({'view_id': res and res[1] or False})1382 context.update({'view_id': res and res[1] or False})
1377 message += state_list[pick.state]1383 message += state_list[pick.state]
1384<<<<<<< TREE
1378 # modify the message to be displayed1385 # modify the message to be displayed
1379 message = self._hook_log_picking_modify_message(cr, uid, ids, context=context, message=message, pick=pick,)1386 message = self._hook_log_picking_modify_message(cr, uid, ids, context=context, message=message, pick=pick,)
1387=======
1388 message = self._hook_log_message_picking(cr, uid, ids, context=context, pick=pick, message=message)
1389>>>>>>> MERGE-SOURCE
1380 # conditional test for message log1390 # conditional test for message log
1381 if self._hook_log_picking_log_cond(cr, uid, ids, context=context, pick=pick,):1391 if self._hook_log_picking_log_cond(cr, uid, ids, context=context, pick=pick,):
1382 self.log(cr, uid, pick.id, message, context=context)1392 self.log(cr, uid, pick.id, message, context=context)
@@ -1436,6 +1446,8 @@
1436 @return: Ids of locations1446 @return: Ids of locations
1437 """1447 """
1438 locations = self.pool.get('stock.location').search(cr, uid, [('usage', '=', 'internal')])1448 locations = self.pool.get('stock.location').search(cr, uid, [('usage', '=', 'internal')])
1449 if context.get('location_id', False):
1450 locations = context['location_id'] and [context['location_id']] or []
1439 cr.execute('''select1451 cr.execute('''select
1440 prodlot_id,1452 prodlot_id,
1441 sum(qty)1453 sum(qty)

Subscribers

People subscribed via source and target branches

to all changes: