Skip to content
Health
62/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 11 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.18 MB
Module directory on disk
Code analysis 0 migration notes 7 models 3 views 0 HTTP endpoints

Description

This module adds support for French Letters of Change. This module supports:

  • Direct letter of change (in French : Lettre de change directe or LCR directe),
  • Accepted letter of change (in French : Lettre de change acceptée ; I call it paper letter of change),
  • Promissory note (in French : Billet à ordre),

It supports cash discounts debit orders and Dailly convention.

This module has 2 main features:

  • for Accepted Letter of Change, generate a paper letter of change as PDF following the official layout NF K 11-030-1.
  • generate of LCR (or BOR) CFONB files to send to your bank.

This module follows the specifications published on the CFONB website, section Espace documentaire > Instruments de paiement > Effet de commerce (document version of September 2002).

Dependencies

Odoo dependencies
Python dependencies
pypdf>=3.1.0, unidecode
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
account_payment_method_line_form fr_lcr.account.payment.method.line.form account.payment.method.line form Inherits account_payment_batch_oca.account_payment_method_line_form
account_payment_order_form pain.base.account.payment.order.form account.payment.order form Inherits account_payment_batch_oca.account_payment_order_form
view_move_form account_payment_fr_lcr.view_move_form account.move form Inherits account_payment_batch_oca.view_move_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (5)
  • fr_lcr_attachment_datas Binary
    related='fr_lcr_attachment_id.datas' string='Bill of Exchange File'
  • fr_lcr_attachment_id Many2one → ir.attachment
    string='Bill of Exchange Attachment' args: 'ir.attachment'
  • fr_lcr_attachment_name Char
    related='fr_lcr_attachment_id.name' string='Bill of Exchange Filename'
  • fr_lcr_partner_bank_id Many2one → res.partner.bank
    check_company=True compute='_compute_fr_lcr_partner_bank_id' domain="[('partner_id', '=', commercial_partner_id)]" help='Bank account of the customer that will be debited by the bill of exchange. By default, Odoo selects the first French IBAN bank account of the partner.' readonly=False store=True string='Bill of Exchange Bank Account' tracking=True args: 'res.partner.bank'
  • payment_method_line_fr_lcr_type Selection
    related='preferred_payment_method_line_id.fr_lcr_type' store=True
Public methods (2)
  • fr_lcr_generate_attachment(self)
  • fr_lcr_print(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • draft2open_payment_line_check(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • fr_lcr_convention_type Char
    help="Field C1 'Convention Type' in CFONB header line, 6 characters maximum." size=6 string='Convention Type'
  • fr_lcr_dailly Boolean
    string='Dailly Convention'
  • fr_lcr_default_collection_option Selection
    default='due_date' string='Default Collection Option' args: '_fr_lcr_collection_option_selection'
  • fr_lcr_default_dailly_option Selection
    default='none' string='Default Dailly Option' args: '_fr_lcr_dailly_option_selection'
  • fr_lcr_type Selection
    compute='_compute_fr_lcr_type' precompute=True readonly=False store=True string='Bill of Exchange Type' args: [('not_accepted', 'Lettre de change non acceptée (LCR directe)'), ('accepted', 'Lettre de change acceptée'), ('promissory_note', 'Billet à ordre')]
Public methods (0)

No public methods.

New fields (4)
  • fr_lcr_collection_option Selection
    compute='_compute_fr_lcr_fields' precompute=True readonly=False store=True string='Collection Option' args: <expr>
  • fr_lcr_dailly Boolean
    compute='_compute_fr_lcr_fields' precompute=True store=True string='Dailly Convention'
  • fr_lcr_dailly_option Selection
    compute='_compute_fr_lcr_fields' precompute=True readonly=False store=True string='Dailly Option' args: <expr>
  • fr_lcr_value_date Date
    string='Value Date'
Public methods (2)
  • draft2open(self)
  • generate_payment_file(self)
    Creates the LCR CFONB file.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…