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.
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
This question has been flagged
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".
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.
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...
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
.
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.
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.
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)
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 upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 15
|
6518 | ||
|
2
Dec 23
|
2615 | ||
|
1
Jul 23
|
2025 | ||
Hide Sales Menu in CRM
Solved
|
|
1
Jun 23
|
1774 | |
|
2
Jan 23
|
3767 |