Analytic account can be entered on the "Other Info" tab for a Sales Order (under "Invoicing"). You could set up User-Defined Defaults or Automated Actions if you don't want users to enter them manually each time.
EDIT: It's quite simple to create an Analytic Account for each new sales order using an Automated Action:
- Model = Sale Order
- Action To Do = Create a new Record
- Trigger Condition = On Creation
- Create/Write Target Model = Analytic Account
- Link using field = Analytic Account (sale.order)
Field | Evaluation Type | Value
Analytic Account (account.analytic.account) | Python Expression | record.name
Customer (account.analytic.account) | Python Expression | record.partner_id.id
This is an example where the "Link Using Field" is very useful, but unfortunately there is a bug that prevents you from entering it through the user interface because the domain is incorrect (more details and workarounds: Create analytic accounts for sales orders using automated actions).
Thank you Chris. I think that my question really was: how do I set an autmated action, so that I can have an order automaticaly linked with its own analitic account?
Thank you again!
It should be possible, but what are the business rules? Do you mean that each sales order will have its own unique Analytic Account?
Yes, that's it. So we have a business that usually has one big order per client with multiple products.
We have set up Odoo so that each product has its own project afterwards, and gets managed by one project manager.
But we need one analytic account per order, so that we can see costs and benefits per client :)
Thank you so much!
Thank you so much! I will investigate!
I updated my answer
Wow this is exactly what I was looking for! Thank you so much!