Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to get my custom field in view_picking_out_form ?

By
abdallah ghrir
on 11/5/14, 10:01 AM 546 views

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

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

Baiju
on 11/5/14, 10:34 AM
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
abdallah ghrir
on 11/5/14, 10:51 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/5/14, 10:01 AM
Seen: 546 times
Last updated: 3/16/15, 8:10 AM