[IMP] stock purchase : contextual text for wizard partial move (Receive/Deliver)

bzr revid: tfr@openerp.com-20101019131206-cjvlxily82q9gkx9
This commit is contained in:
Thibault Francois 2010-10-19 15:12:06 +02:00
parent cc8022d887
commit 7496ae38e6
1 changed files with 4 additions and 5 deletions

View File

@ -59,16 +59,15 @@ class stock_partial_move(osv.osv_memory):
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False):
print context
message = {
'title' : 'Deliver Products',
'info' : 'Delivery Information',
'title' : '_(Deliver Products)',
'info' : '_(Delivery Information)',
'button' : '_Deliver'
}
if context:
if context.get('product_receive', False):
print "on a bien reçu un produit"
message = {
'title' : 'Receive Products',
'info' : 'Receive Information',
'title' : '_(Receive Products)',
'info' : '_(Receive Information)',
'button' : '_Receive'
}