Odoo Help


Retroactively add analytic account to invoice lines

Steven Segers
on 11/21/15, 5:28 PM 2,217 views

I'm setting up analytic accounting. I'd find it interesting to add analytic accounts on all invoices of the current and previous fiscal year. By default it's not possible to change the analytic account on invoices that are validated and paid. (Which makes sense).

Is there any way I could still make this happen? Can this be managed through permissions perhaps?


Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 11/24/15, 9:27 PM

1. Install account_cancel

2. Configure** the Vendor Bills (Purchases) and Customer Invoices (Sales) Journals by checking Allow Cancelling Entries on the Miscellaneous section of the Advanced Settings tab of the Journal.

3. Unreconcile every Invoice Journal Entry, add the desired Analytic Account and repost to get the Analytic moves.

This could be very time consuming, depending on the number of Invoices you have.

** You need to have Developer Mode activated to do this.

That's indeed an option. But as you said, this would really be a lot of work. What I think will be an easier solution is export all history to an excel file, assign analytic accounts there and import as regular analytic lines.

Segrey Software BVBA, Steven Segers
on 11/29/15, 5:20 AM

Agreed - your suggestion is a great way to do it.

Ray Carnes
on 11/29/15, 5:09 PM

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: 11/21/15, 5:28 PM
Seen: 2217 times
Last updated: 11/29/15, 5:19 AM