Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3085 Weergaven

hi 

plz ,how to get my custom field in view_picking_out_form  ? this my function :

def dispatch(self, cr, uid, ids, context=None):
         if not ids: return []
      
         dummy, view_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock','view_picking_out_form')
           
         inv = self.browse(cr, uid, ids[0], context=context)
         
         return {

            'name':_("Dispatcher"),
            'view_mode': 'form',
            'view_id': view_id,
            'view_type': 'form',
            'res_model': 'stock.picking.out',
            'type': 'ir.actions.act_window',
                
                
            'nodestroy': True,
            'target': 'new',
            'domain': '[]',
            'context': {
                'default_invoice_state':'2binvoiced',
                 'default_move_lines_product_id':inv.test_id.product_id,
                 
            }
                
        }

 

i want o put my  product_id selected in move_lines in the view :view_picking_out_form ???

 

thanks

Avatar
Annuleer

can you please explain the need of your field,,,? so that we can understand what to do and help you..

ok , i want to click in a button , that will send mt cystum field in view_picking_out_form .
exemple : in my form i have  
'product_id' : fields.many2one('product.product', string='Désignation',readonly=True),
 'stk_vil': fields.float('STK centrale'),

i want , when i click in this button : the fileld  'move_lines' of  'stock.picking.out' model , will get the value od my custom field (product_id , stk_vil)

thanks :) 

2014-11-05 16:34 GMT+01:00 Baiju KS <baijuks@hotmail.com>:

can you please explain the need of your field,,,? so that we can understand what to do and help you..

--
Baiju KS
Sent by OpenERP S.A. using Odoo about Forum Post how to get my custom field in view_picking_out_form ?



--
Cordialement

Mr Ghrir Abdallah

Ingénieur Informatique

Tel :+216 22 80 16 10