Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Add product_id sale ordre line

Subscribe

Get notified when there's activity on this post

This question has been flagged
productsale.order.lineproduct_id
3 Replies
6320 Views
Avatar
Sebex S.A.

Hi, I would like to add the product_id in the sale.order.tree but don't find the solution.

<tree string="Sales Orders" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')"> <field name="message_unread" invisible="1"/> <field name="name" string="Order Number"/> <field name="client_order_ref"/> <field name="date_order"/> <field name="partner_id"/> <field name="requested_date"/> <field name="amount_total" sum="Total Tax Included"/> <field name="state"/> </tree<>

Many thanks.

0
Avatar
Discard
Avatar
Gopakumar N G
Best Answer

Field "product_id" is in the model sale.order.line and not in sale.order. So you cannot add it in Sale Order tree view, you can show the order_line in the tree view of sale_order.

1
Avatar
Discard
Avatar
Victor Admin
Best Answer

I am trying to accomplish this same exact thing. I want to show a mini list of products and prices in the tree view for Sales Orders, so that customer service can see a brief overview of the whole order without having to open up the actual Sales Order. 

 

I understand that it's not possible to put sale.order.line inside of sale.order.tree, but would be possible to define a field in sales.order that inherits some values from sale.order.line, so that it could then be accessible from sale.order.tree?

0
Avatar
Discard
Avatar
Sebex S.A.
Author Best Answer

thanks. but the result is : (1 record) and not the name of the product. any solution ? thanks!

0
Avatar
Discard
Gopakumar N G

can you explain your requirement?

Sebex S.A.
Author

Sorry I was may be not very clear.

Sebex S.A.
Author

In the menu "Sales" , "Sales Order" there is a view listing all the pending order. The original view list the fields : name, order_number, client_ref, client_order_ref... to make the things easier and faster to read I would like to add in the view the "product_id". If I add "order_line" field the result is "(1 record).

Gopakumar N G

You cannot add product_id in sale order list view as it is defined in sale.order.line. Consider one more point, if there are more than products in your sale order how can you list them in one line of the order?

Sebex S.A.
Author

I understand what you mean. Tell me something, are you working as consultant ? I'm based in Sri Lanka travelling all the time, and don't find the time to set up correctly the system I would like. Give me your email so we can discuss a bit more... thanks. Peter

Gopakumar N G

gopakumar@zbeanztech.com

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Change Sale Quotation Form so Product is Not Required?
product sale.order.line
Avatar
Avatar
Avatar
2
Mar 18
4156
product sales relation
product sale.order.line boolean
Avatar
0
Jan 23
1649
How to create product odoo V15 sale.order
product sale sale.order.line
Avatar
0
Dec 21
2402
Cannot change delivered quantity on Sales Order Line
product invoicing sale.order.line sales.order
Avatar
0
Oct 23
9590
How can display products vendor only in custom field Solved
product sale.order.line vendor related_fields
Avatar
Avatar
Avatar
3
Dec 22
7595
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now