TIP: You can type at any time to perform a new search.
Swiss Postfinance File Delivery Services
l10n_ch_fds_postfinance · OCA/l10n-switzerland
- Repository
- OCA/l10n-switzerland · module folder · Try on Runboat
- Module version
- 1.0.2
- Category
- Finance
- Folder size
- 2.6 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.compassion.ch/
- Last tracking update
- 2026-08-07 07:25:00
- Authors
- Odoo Community Association (OCA), Compassion CH
- Maintainers
- Odoo Community Association (OCA), Compassion CH
- Committers
- Weblate, OCA Transbot, oca-travis, Benoît Schopfer
Code Analysis ⓘ
Views touched (10)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fds_authentication_keys_form |
FDS authentication keys form | fds.authentication.keys | form | New |
fds_postfinance_file_search |
fds.postfinance.file.select | fds.postfinance.file | search | New |
fds_postfinance_file_tree |
fds.postfinance.file.tree | fds.postfinance.file | tree | New |
fds_postfinance_files_form |
FDS PostFinance file form | fds.postfinance.file | form | New |
view_fds_files_import_tobankstatments_wizard_form |
Download FDS Files | fds.files.import.tobankstatments.wizard | form | New |
view_fds_key_clone_wizard_form |
FDS key clone wizard view | fds.key.clone.wizard | form | New |
view_fds_key_generator_wizard_form |
FDS key generator wizard view | fds.key.generator.wizard | form | New |
view_fds_key_import_wizard_form |
FDS key import wizard view | fds.key.import.wizard | form | New |
view_fds_postfinance_account_form |
fds.postfinance.account.form | fds.postfinance.account | form | New |
view_fds_postfinance_account_tree |
fds.postfinance.account.tree | fds.postfinance.account | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (8)
New fields (7)
-
fds_account_idMany2one → fds.postfinance.accountcomodel_name='fds.postfinance.account'ondelete='restrict'readonly=Truestring='FDS account' -
key_activeBooleandefault=True -
ppk_filenameCharreadonly=Truestring='Private key filename' -
private_key_cryptedBinaryreadonly=True -
pub_filenameCharreadonly=Truestring='Public key filename' -
public_keyBinaryreadonly=True -
user_idMany2one → res.userscomodel_name='res.users'ondelete='restrict'readonly=Truestring='User'
-
clone_key_to(self, user)@api.multicreate a new record with the same key :params record: of model res.users :return record: of model fds.authentication.key -
config(self)@api.multiConfiguration RSA: password to encrypt the private key. Note: the password must be add in the odoo config file (ie. ssh_pwd = *****) :returns str: the pass key that allow to decrypt the private key -
generate_pairkey(self, bits=4096)@api.multigenerate the RSA key pair. :returns (str, str): public key and private key crypted -
import_pairkey(self, public_key, private_key)@api.multiimport and crypt private key. :returns (str, str): public key and private key crypted
New fields (6)
-
fds_account_idMany2one → fds.postfinance.accountdefault=<expr>required=True args: 'fds.postfinance.account', 'FDS Account' -
msg_exist_fileChardefault=''readonly=True args: 'Files already existing' -
msg_file_importedChardefault=''readonly=True args: 'Imported files' -
msg_import_file_failChardefault=''readonly=True args: 'File import failures' -
msg_import_file_ignoreChardefault=''readonly=True args: 'Files ignored' -
stateSelectiondefault='default'help='[Info] keep state of the wizard'readonly=Trueselection=[('default', 'Default'), ('done', 'Done'), ('error', 'Error Permission'), ('errorSFTP', 'Error SFTP')]
-
import_button(self)@api.multidownload the file from the sftp where the directories were selected in the FDS configuration, and if possible import to bank Statments. Called by pressing import button. :returns action: configuration for the next wizard's view
New fields (3)
-
des_user_idMany2one → res.userscomodel_name='res.users'help='assign the key to the user selected'required=Truestring='To:' -
src_user_key_idMany2one → fds.authentication.keyscomodel_name='fds.authentication.keys'help='select one key'required=Truestring='Copy authentication key:' -
stateSelectiondefault='default'help='[Info] keep state of the wizard'readonly=Trueselection=[('default', 'Default'), ('done', 'Done')]
-
back_button(self)@api.multigo back to copy view. Called by pressing "Make another copy" button. :returns action: configuration for the next wizard's view -
copy_button(self)@api.multicopy an authentication key to another user. Called by pressing copy button. :returns action: configuration for the next wizard's view
New fields (8)
-
fds_authentication_keys_idMany2one → fds.authentication.keyscomodel_name='fds.authentication.keys'help='[info] keep one recored of the model fds_authentication_key'readonly=Truestring='FDS authentication keys' -
ppk_filenameCharhelp='private key filename'readonly=Truerelated='fds_authentication_keys_id.ppk_filename'string='Private key Filename' -
private_key_cryptedBinaryhelp='private key crypted generated'readonly=Truerelated='fds_authentication_keys_id.private_key_crypted' -
pub_filenameCharhelp='public key filename'readonly=Truerelated='fds_authentication_keys_id.pub_filename'string='Public key Filename' -
public_keyBinaryhelp='public key generated'readonly=Truerelated='fds_authentication_keys_id.public_key' -
stateSelectiondefault='default'help='[Info] keep state of the wizard'readonly=Trueselection=[('default', 'Default'), ('generate', 'Generate'), ('done', 'Done')] -
user_idMany2one → res.userscomodel_name='res.users'help='assign the key to the user selected'required=Truestring='User' -
user_nameCharhelp='user previously selected'readonly=Truerelated='fds_authentication_keys_id.user_id.name'
-
cancel_keys_button(self)@api.multiRemove public and private key saved in the database. Called by pressing cancel button. :returns action: close the wizard's view -
confirm_keys_button(self)@api.multiConfirm the generated keys. Called by pressing confirm button. :returns action: configuration for the next wizard's view -
generate_keys_button(self)@api.multiGenerate public and private crypted key then save in the database. Called by pressing generate button. :returns action: configuration for the next wizard's view -
savekeys(self, public_key, private_key_crypted)@api.multiSave in the database the public and private creyted key :param str public_key: generate by RSA :param str private_key_crypted: generate and crypted by RSA :returns action: None :raises Warning: - if the state of the wizard do not exist - if more than one FDS account selected -
send_keys_button(self)@api.multiSend the public key to the FDS Postfinance by mail which will allow the selected user to connect to the SFTP using his private key. Called by pressing send button. -
userkey_exist(self)@api.multicheck if the authentication key already exist for the selected user :returns record: record of the model fds.authentication.keys :raises Warning: if user has already a key
New fields (4)
-
private_key_import_fileBinaryhelp='select one file that contain your private key'string='Private key' -
private_key_import_txtTexthelp='copy/paste your private key'string='Private key' -
public_key_import_fileBinaryhelp='select one file that contain your public key'string='Public key' -
public_key_import_txtTexthelp='copy/paste your public key'string='Public key'
-
import_keys_button(self)@api.multiImport public and private key then save in the database. Called by pressing import button. :returns action: configuration for the next wizard's view :raises Warning: if missing input information
New fields (8)
-
authentication_key_idsOne2many → fds.authentication.keyscomodel_name='fds.authentication.keys'inverse_name='fds_account_id'string='Authentication keys' -
directory_idsOne2many → fds.postfinance.directorycomodel_name='fds.postfinance.directory'inverse_name='fds_account_id'string='FDS postfinance directories' -
fds_file_idsOne2many → fds.postfinance.filecomodel_name='fds.postfinance.file'help='downloaded files from sftp'inverse_name='fds_account_id'readonly=Truestring='FDS Postfinance files' -
hostnameChardefault='fdsbc.post.ch'required=Truestring='SFTP Hostname' -
nameCharrequired=True -
postfinance_emailChardefault='fds@post.ch'help='E-mail of FDS Postfinance'required=True -
user_idMany2one → res.userscomodel_name='res.users'help='Owner must have the rights to register new key pairs for this account. Its e-mail address will be used to send the keys of new users to PostFinance'ondelete='restrict'required=Truestring='Account Owner' -
usernameCharrequired=Truestring='SFTP Username'
-
copy_key_button(self)@api.multicopy an authentication key to another user. :returns action: popup fds key clone wizard -
import_files_cron(self)@api.modelImport files for all Accounts defined. :return: True -
import_key_button(self)@api.multiimport an authentication key to a user. :returns action: popup fds key import wizard -
newKey_button(self)@api.multigenerate a new authentication key to a user. :returns action: popup fds key generator wizard -
verify_directories_button(self)@api.multitest connection and verify if directories are the same in the DB :returns None: :raises Warning: - if current user do not have key - if unable to connect to sftp
New fields (6)
-
allow_download_fileBooleandefault=Falsehelp='check it to allow download files from this FDS directory'string='Allow download file?' -
allow_upload_fileBooleandefault=Falsehelp='check it to allow upload files to this FDS directory'string='Allow upload file?' -
excluded_filesChardefault='camt052'help="Semicolon (;) separated patterns. If a filename matches one of the given patterns, the file won't be downloaded from the remote directory." -
fds_account_idMany2one → fds.postfinance.accountcomodel_name='fds.postfinance.account'ondelete='restrict'readonly=Truestring='FDS account' -
nameCharreadonly=Truestring='Directory name' -
still_on_serverBooleandefault=Truehelp='[info] if the directory still exist on the FDS sftp'readonly=Truestring='Directory still on server?'
No public methods.
New fields (7)
-
bank_statement_idMany2one → account.bank.statementcomodel_name='account.bank.statement'ondelete='restrict'readonly=Truestring='Bank Statement' -
dataBinaryhelp='the downloaded file data'readonly=True -
directory_idMany2one → fds.postfinance.directoryondelete='restrict'readonly=Truestring='Directory' args: 'fds.postfinance.directory' -
error_messageText -
fds_account_idMany2one → fds.postfinance.accountcomodel_name='fds.postfinance.account'help='related FDS account'ondelete='restrict'readonly=Truestring='FDS account' -
filenameCharreadonly=True -
stateSelectiondefault='draft'help='state of file'readonly=Trueselection=[('draft', 'Draft'), ('done', 'Done'), ('error', 'Error'), ('cancel', 'Cancelled')]
-
change2cancel_button(self)@api.multiPut file in cancel state. Called by pressing 'cancel' button. :return None: -
change2draft_button(self)@api.multiundo the file is corrupt to state draft. Called by pressing 'cancel corrupt file' button. :return None: -
change2error_button(self)@api.multichange the state of the file to error because the file is corrupt. Called by pressing 'corrupt file?' button. :return None: -
import2bankStatements(self)@api.multiconvert the file to a record of model bankStatment. :returns bool: - True if the convert was succeed - False otherwise -
import_button(self)@api.multiconvert the file to record of model bankStatment. Called by pressing import button. :return None:
Loading…
Loading…
Loading…