Odoo Help


1 Answer

Ray Carnes

--Ray Carnes--
| 10 7 11
Greater Los Angeles, الولايات المتّحدة
--Ray Carnes--

Business Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0, 11.0 and 12.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
15‏/5‏/2017 5:55 م

A journal is just like any other Odoo model or class.

You can create an instance of a model (record in a class/table) three ways in your own module:

  • Via code

  • Via XML

  • Via CSV

Each option does exactly the same thing - create  a record in the database.  No matter how it gets there, the result is the same (even when added via the UI).


vals = {
'name': 'The Name',
'code': 'THECODE',


More at https://www.odoo.com/documentation/10.0/reference/orm.html#common-orm-methods


Supply an XML file that imports a record into the database:

<record id="your_id" model="account.journal"> <field name="name">The Name</field>
<field name="code">THECODE</field>
</data> </odoo>

More at https://www.odoo.com/documentation/10.0/reference/data.html


Supply a file called 'account.journal.csv' in your module with the fields and values you want to import.  You can export an existing Journal to see the schema for the CSV file:

"id", "name", "code", "company_id/id", ...
"your_id", "The Name", "THECODE", "base.main_company", ...

More at https://www.odoo.com/documentation/10.0/reference/data.html#csv-data-files

Note: Since a Journal also requires a sequence, you should also create one of those, before creating the Journal, so the Journal can refer to it.

1 Comment
Ermin Trevisan
16‏/5‏/2017 1:38 ص

What a beautiful answer!

Ask a Question
Keep Informed
1 follower(s)
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