Repository
OCA/l10n-switzerland · module folder · Try on Runboat
Module version
1.0.0
Category
Finance
Folder size
0.58 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.compassion.ch/
Last tracking update
2026-08-07 07:17:51
Authors
Odoo Community Association (OCA), Compassion CH
Maintainers
Odoo Community Association (OCA), Compassion CH
Committers
Pedro M. Baeza, Akim Juillerat, Weblate, Emanuel Cino, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
pysftp, Crypto, lxml, unidecode
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
fds_postfinance_files_form_pain 000 FDS PostFinance file form pain 000 fds.postfinance.file form Inherits l10n_ch_fds_postfinance.fds_postfinance_files_form
view_fds_postfinance_account_sepa_form_inherited FDS PostFinance account view - Direct debit extension fds.postfinance.account form Inherits l10n_ch_fds_postfinance.view_fds_postfinance_account_form
wizard_pain_001_view Create SEPA Payment - Upload extension payment.order.upload.sepa.wizard form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • open2generated(self)
    @api.multi
    Replace action to propose upload SEPA file to FDS. :return: window action

New fields (1)
  • sepa_upload_ids One2many → fds.sepa.upload.history
    comodel_name='fds.sepa.upload.history' inverse_name='fds_account_id' readonly=True
Public methods (0)

No public methods.

New fields (1)
  • payment_order Many2one → account.payment.order
    ondelete='restrict' readonly=True string='Payment order' args: 'account.payment.order'
Public methods (1)
  • import2bankStatements(self)
    @api.multi

New fields (5)
  • directory_id Many2one → fds.postfinance.directory
    comodel_name='fds.postfinance.directory' help='Remote directory where the file was uploaded' ondelete='restrict' readonly=True string='Directory'
  • fds_account_id Many2one → fds.postfinance.account
    comodel_name='fds.postfinance.account' ondelete='restrict' readonly=True string='FDS account'
  • filename Char
    help='Remote name of the uploaded file' readonly=True
  • payment_order_id Many2one → account.payment.order
    comodel_name='account.payment.order' ondelete='restrict' readonly=True string='Payment order'
  • state Selection
    default='not_uploaded' help='Upload state of the file' readonly=True selection=[('not_uploaded', 'Not Uploaded'), ('uploaded', 'Uploaded')]
Public methods (0)

No public methods.

New fields (7)
  • attachment_id Many2one → ir.attachment
    ondelete='cascade' required=True args: 'ir.attachment'
  • fds_account_id Many2one → fds.postfinance.account
    default=<expr> args: 'fds.postfinance.account', 'FDS Account'
  • fds_directory_id Many2one → fds.postfinance.directory
    help='Select one upload directory. Be sure to have at least one directory configured with upload access rights.' args: 'fds.postfinance.directory', 'FDS Directory'
  • file_data Binary
    readonly=True related='attachment_id.datas' args: 'Generated File'
  • filename Char
    readonly=True related='attachment_id.name'
  • payment_order_id Many2one → account.payment.order
    ondelete='cascade' readonly=True required=True args: 'account.payment.order', 'Payment Order'
  • state Selection
    default='upload' readonly=True args: [('upload', 'upload'), ('finish', 'finish')]
Public methods (1)
  • upload_generate_file_button(self)
    @api.multi
    upload pain_001 file to the FDS Postfinance by sftp :returns action: configuration for the next wizard's view :raises Warning: - If no fds account and directory selected - if current user do not have key - if unable to connect to sftp

Loading…

Loading…