~unifield-team/unifield-wm/wm-2418-rw-fix

« back to all changes in this revision

Viewing changes to specific_rules/wizard/stock_partial_picking.py

  • Committer: pierre-marie
  • Date: 2012-07-25 15:04:47 UTC
  • mfrom: (1038 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 1059.
  • Revision ID: pierre-marie@pierre-marie-laptop-20120725150447-namc1a6lqi455ez2
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        l = arch.split('<field name="date" invisible="1"/>')
80
80
        arch = l[0]
81
81
    
82
 
        if context.get('step',False) not in ['create','validate','returnproducts','ppl2']:
 
82
        if context.get('step',False) not in ['create','validate','returnproducts','ppl2','ppl1']:
83
83
            arch += button
84
84
        arch += '<field name="date" invisible="1"/>' + message + l[1]
85
85
        result['arch'] = arch
93
93
            self.pool.get('stock.move.memory.out').write(cr,uid, [move.id], { 'quantity' : move.quantity_ordered } )
94
94
        for move in partial.product_moves_in:
95
95
            self.pool.get('stock.move.memory.in').write(cr,uid, [move.id], { 'quantity' : move.quantity_ordered } )
96
 
 
97
 
        return {}
 
96
        return {
 
97
            'name': context.get('wizard_name'),
 
98
            'view_mode': 'form',
 
99
            'view_id': False,
 
100
            'view_type': 'form',
 
101
            'res_model': context['model'],
 
102
            'res_id': ids[0],
 
103
            'type': 'ir.actions.act_window',
 
104
            'nodestroy': True,
 
105
            'target': 'new',
 
106
            'domain': '[]',
 
107
            'context': context,
 
108
        }
 
109
        #return self.pool.get('wizard').open_wizard(cr, uid, [ids[0]], type='update', context=context)
98
110
 
99
111
    def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
100
112
        '''