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

How to link invoice to Sales Team?

Subscribe

Get notified when there's activity on this post

This question has been flagged
salesv8crminvoice
1 Reply
8993 Views
Avatar
Bob Muller

We use the CRM module to define sales teams for different market segments. Now for each sales team, the Kanban view shows number of leads, invoices, opportunities and the amount invoiced this month. This last value can only be determined if the invoices are linked to a sales team. However, we couldn't find any way to link the an invoice to a specific sales team.

0
Avatar
Discard
Avatar
Olivier Dony (odo)
Best Answer

As of v7 when you install both CRM and Sales Management a new "Sales Team" field appears in the "Other Info" tab on invoices (I think this field is visible by default for everyone). This is the link that the system uses to find all invoices related to a given Sales Team.

By the way you should not need to set the Sales Team manually on invoices, as users can choose their "Default Sales Team" in their preferences (this is a new field that also appears if you install CRM and Sales Management). The Default Sales Team of each user will be automatically set on new invoices they have created.

Update: In current trunk (future v8) the visibility of the Sales Teams depends on an extra setting that needs to be enabled: Settings > Configuration > Sales, check "Organize Sales activities into multiple Sales Team".

1
Avatar
Discard
Bob Muller
Author

Thanks for your answer, this seems logical as the invoice business object does seem to have a section_id field in the database. However, in our v7 installation the account_invoice_view.xml does not have this field added. Could it be that the order in which modules are installed matters? For now we will locally fix the view so that we can set the Sales Team manually.

Bob Muller
Author

Also, we are using Sales Teams to differentiate between markets but personal is working in all teams and hence have no default Sales Team assigned. It's just a different use case for small companies...

Olivier Dony (odo)

Technically, you will not find that field in account/account_invoice_view.xml because it is added via an inherited view in the sale_crm module, in sale_crm/sale_crm_view.xml. The sale_crm module is automatically installed if you install both sale and crm.

Olivier Dony (odo)

If you can't use a default sales team for your users you'll need to find a different way to automatically assign the right team on each invoice. It could be done via a very small custom module or perhaps by setting appropriate default_section_id values in the context of actions that lead to the creation of an invoice... it really depends on your use case though.

Bob Muller
Author

I just checked the view using the debug-functionality, and apparently the section_id is there but invisible: <field name="section_id" invisible="1" modifiers="{'invisible': true}"/> Not sure how it got there though. The sale_crm.account_invoice_form view in the database modifies the view like this: <field name="section_id" groups="base.group_multi_salesteams"/> Anyway, it might just be a glitch: we're working with the bleeding edge version of OpenERP.

Olivier Dony (odo)

Oh you're on trunk, that's why I did not understand :-) In trunk a new setting was recently added in Settings > Configuration > Sales, it's labelled "Organize Sales activities into multiple Sales Teams". You need to check that option and the field will become visible (technically, all users will have an extra group, and the invisible flag will be removed, it's a consequence of the groups attributes to restrict the visibility)

Bob Muller
Author

Thanks again! That did it! Now I also learned something about view inheritance and how it is implemented in OpenERP...

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
How can I analyse my Sales Performance? Solved
sales v8 crm
Avatar
1
Mar 15
7474
Generate CRM opportunity from sales quotation
sales crm
Avatar
Avatar
Avatar
2
Aug 25
4859
Sales upload Template required
sales invoice
Avatar
Avatar
2
Dec 23
4082
Extend action sale_action_quotations_new in button New Quotation
sales crm
Avatar
Avatar
1
Jul 23
2743
Hide Sales Menu in CRM Solved
sales crm
Avatar
Avatar
1
Jun 23
1775
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