Accounting Import Cresus

l10n_ch_import_cresus
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/10.0/l10n_ch_import_cresus
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYaccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Open Net Sàrl
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Open Net Sàrl
COMMITTERS
COMMITTERSPedro M. Baeza, Akim Juillerat, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://odoo-community.org/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account_accountant
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
cresus_move_line_importer_form cresus move line importer account.cresus.import form New
view_tax_form account.cresus.mapping.form account.tax xpath Inherits account.view_tax_form
view_tax_tree account.tax.tree account.tax xpath Inherits account.view_tax_tree
Models touched (2)

New fields (6)
  • company_id Many2one → res.company
    invisible=True args: 'res.company', 'Company'
  • file Binary
    required=True args: 'File'
  • imported_move_ids Many2many → account.move
    string='Imported moves' args: 'account.move', 'import_cresus_move_rel'
  • journal_id Many2one → account.journal
    required=True args: 'account.journal', 'Journal'
  • report Text
    readonly=True args: 'Report'
  • state Selection
    default='draft' readonly=True selection=[('draft', 'Draft'), ('done', 'Done'), ('error', 'Error')]
Public methods (3)
  • import_file(self)
    @api.multi
  • prepare_line(self, name, debit_amount, credit_amount, account_code, cresus_tax_code, analytic_account_code, tax_ids)
  • prepare_move(self, lines, date, ref, journal_id)

New fields (1)
  • tax_cresus_mapping Char
    string='Crésus tax name'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/9.0/l10n_ch_import_cresus
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYaccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Open Net Sàrl
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Open Net Sàrl
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, Louis Bettens
WEBSITE
WEBSITEhttps://odoo-community.org/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account_accountant
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
cresus_move_line_importer_form cresus move line importer account.cresus.import form New
view_tax_form account.cresus.mapping.form account.tax xpath Inherits account.view_tax_form
view_tax_tree account.tax.tree account.tax xpath Inherits account.view_tax_tree
Models touched (2)

New fields (6)
  • company_id Many2one → res.company
    invisible=True args: 'res.company', 'Company'
  • file Binary
    required=True args: 'File'
  • imported_move_ids Many2many → account.move
    string='Imported moves' args: 'account.move', 'import_cresus_move_rel'
  • journal_id Many2one → account.journal
    required=True args: 'account.journal', 'Journal'
  • report Text
    readonly=True args: 'Report'
  • state Selection
    default='draft' readonly=True selection=[('draft', 'Draft'), ('done', 'Done'), ('error', 'Error')]
Public methods (3)
  • import_file(self)
    @api.multi
  • prepare_line(self, name, debit_amount, credit_amount, account_code, cresus_tax_code, analytic_account_code, tax_ids)
  • prepare_move(self, lines, date, ref, journal_id)

New fields (1)
  • tax_cresus_mapping Char
    string='Crésus tax name'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/8.0/l10n_ch_import_cresus
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Joël Grand-Guillaume, GitHub, Stéphane Bidoul (ACSONE), OCA Transbot, vrenaville, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:28
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
cresus_move_line_importer_form cresus move line importer account.cresus.import form New
view_tax_form account.cresus.mapping.form account.tax group Inherits account.view_tax_form
view_tax_tree account.tax.tree account.tax field Inherits account.view_tax_tree
Models touched (2)

New fields (8)
  • company_id Many2one → res.company
    invisible=True args: 'res.company', 'Company'
  • file Binary
    required=True args: 'File'
  • help_html Html
    default=_("\n In order to import your 'Cresus Salaires' .txt file you must complete the following requirements : </br>\n * The accounts, analytical accounts used in the Cresus file must be previously created into Odoo </br>\n * The date of the entry will determine the period used in Odoo, so please ensure the period is created already. </br>\n * If the Cresus file uses VAT codes (i.e: IPI), please make sure you have indicated this code in the related Odoo tax (new field). Warning, the Odoo tax must be 'tax included'. If the tax does not exist you have to create it. </br>\n * All PL accounts must have a deferral method = 'none' (meaning: no balance brought forward in the new fiscal year) and all\n Balance sheet account must have a deferral method = 'balance'. </br>") readonly=True args: 'Import help'
  • imported_move_ids Many2many → account.move
    string='Imported moves' args: 'account.move', 'import_cresus_move_rel'
  • journal_id Many2one → account.journal
    required=True args: 'account.journal', 'Journal'
  • period_id Many2one → account.period
    required=True args: 'account.period', 'Period'
  • report Text
    readonly=True args: 'Report'
  • state Char
    default='draft' readonly=True sting='Import stateReport'
Public methods (3)
  • format_messages(self, messages)
    Format error messages generated by the BaseModel.load method :param messages: return of BaseModel.load messages key :returns: formatted string
  • import_file(self)
    @api.multi
  • open_account_moves(self)
    @api.multi

New fields (1)
  • tax_cresus_mapping Char
    size=128 string='Cresus tax name'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-switzerland
PULL REQUEST
PULL REQUEST[16.0][MIG] l10n_ch_import_cresus (#746)