Odoo Help


Sale order

Umashankar Subramani
on 1/26/15, 1:24 AM 777 views


   I need to find the id of the selected sale order, is it possible to determine the ids? please give me ur ideas............

   Is it possible to view the selected sale order  in a seperate window?

Thanks in advance.




| 5 3 6
Jakarta, Indonesia
On 1/26/15, 2:07 AM

From a tree/list view, if you select several records and do a print or click a Menu from More, the selected records' ID will be passed to the action in the context's active_ids.  If you are printing a report however, the active_ids have usually been translated to a list of browseable objects that you can use, say, in repeatIn('o', objects), where objects is a list of browseable objects.

Hi ivan, I am trying to call a method using more menu, in which i needed the id of the selected sale order id in the list/tree view so that i could use it in the method, but the problem is i cant able to use the keyword ids as a argument in the method it shows error like this.......... "name 'ids' is not defined" while evaluating u'self. sale_order_view_id(self, cr, uid,ids,context=None)'

Umashankar Subramani
on 1/26/15, 2:28 AM

OK, let me just gather some facts first. You said that you are calling a method using more menu. So, you have a ir.actions.server defined for this, right? What does the ir.actions.server calls? You can find sample of this in odoo/addons/stock/wizard/stock_partial_move_view.xml. The method called belongs to stock.move model which is defined in odoo/addons/stock/stock.py

on 1/26/15, 2:35 AM

Thank u very much ivan........... I got the ids

Umashankar Subramani
on 1/26/15, 2:49 AM

Hi ivan, Is it possible to view the selected sale order in the seperate window?

Umashankar Subramani
on 1/26/15, 4:58 AM

Hi ivan, Is it possible to view the selected sale order in the seperate window?

Umashankar Subramani
on 1/26/15, 5:02 AM

Yes it is possible. Create a wizard model with many2many field to sale.order model, then before showing the wizard, create the wizard first and seed the ids that you have gotten to the many2many field.

on 1/26/15, 5:45 AM

Baiju KS

--Baiju KS--
| 5 5 8
Kochi, India
--Baiju KS--
ODOO technical

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

Baiju KS
On 1/26/15, 1:38 AM


You can get that from ids

ids is the list of active id's..

I cant get it Baiju, i just need the ids that we select while printing the sale order in the tree view, In which method the id will pass........ Thanks in advance.

Umashankar Subramani
on 1/26/15, 1:44 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/26/15, 1:24 AM
Seen: 777 times
Last updated: 3/16/15, 8:10 AM