Odoo Help


I want to select default value product (service) on Sales Order Lines

on 10/2/14, 1:40 AM 846 views

 <tree string="Sales Order Lines" editable="bottom">
          <field name="product_id"         <--- select default  item     How can I do ? 

Mohamed Magdy
On 10/2/14, 4:20 AM

you can set the default value in the object itself.  you need to inherit the object of the s

class sale_order(osv.Model):    

 _name = 'sale.order' 

_inherit = 'sale.order'

_columns = {}

_defaults = {

'product_id': 1


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: 10/2/14, 1:40 AM
Seen: 846 times
Last updated: 3/16/15, 8:10 AM