TIP: You can type at any time to perform a new search.
ACP Connector
connector_acp · OCA/l10n-chile
- Repository
- OCA/l10n-chile · module folder · Try on Runboat
- Module version
- 3.0.2
- Category
- Localization
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-chile
- Last tracking update
- 2026-08-07 07:32:03
- Authors
- Odoo Community Association (OCA), Open Source Integrators, Konos, Daniel Santibáñez Polanco, Cooperativa OdooCoop
- Maintainers
- Odoo Community Association (OCA), Open Source Integrators, Konos, Daniel Santibáñez Polanco, Cooperativa OdooCoop
- Committers
- Maxime Chambreuil, GitHub, Daniel Reis, OCA Transbot, OCA-git-bot, oca-travis
- Odoo dependencies
- Python dependencies
- collections, jinja2, lxml, requests, cachetools
- System dependencies
- None
- Required by
- connector_acp_ftp, l10n_cl_etd
- Description
Code Analysis ⓘ
Views touched (9)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_backend_acp_form |
backend.acp.form | backend.acp | form | New |
view_backend_acp_tree |
backend.acp.tree | backend.acp | tree | New |
view_etd_certificate_form |
etd.certificate.form | etd.certificate | form | New |
view_etd_certificate_tree |
etd.certificate.tree | etd.certificate | tree | New |
view_etd_document_file_form |
etd.document.file.form | etd.document.file | form | New |
view_etd_signature_form |
etd.signature.form | etd.signature | form | New |
view_etd_signature_tree |
etd.signature.tree | etd.signature | tree | New |
view_res_company_etd_form |
res.company.etd.form | res.company | form | Inherits base.view_company_form |
view_res_country |
res.country.backend_acp_id | res.country | form | Inherits base.view_country_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (8)
New fields (8)
-
activeBooleandefault=Truestring='Active' -
connection_typeSelectiondefault='nd'required='True' args: [('nd', 'Not defined')] -
hostCharrequired=Truestring='Host' -
nameCharrequired=Truestring='Name' -
passwordCharstring='Password' -
portIntegerstring='Port' -
statusSelectiondefault='unconfirmed'required='True' args: (('unconfirmed', 'Unconfirmed'), ('confirmed', 'Confirmed')) -
userCharstring='User'
-
action_confirm(self)Called by the Check button on the form view Set the status to 'confirmed' if the backend: - accepts connections - authorizes the given credentials :return: True or False whether the backend is usable -
check_status(self, ref)Check the status of the file processing with the backend :param ref: String to identify the files you want to get the status :return: A dictionary with: - a boolean 'success': True if the status is completed, False otherwise - a string 'message': Message to be displayed to the end user -
onchange_status(self)@api.onchange('host', 'port', 'user', 'password') -
send(self, file_dict)Send the files to the backend :param files: dictionary with 'name' for the filename and 'content' for the content :return: A dictionary with: - a boolean 'success': True if the transfer was successful, False otherwise - a string 'message': Message to be displayed to the end user - a string 'ref': Reference of the transfer to request the status
New fields (27)
-
authorized_users_idsMany2many → res.usersstring='Authorized Users' args: 'res.users' -
certTextreadonly=Truestring='Certificate' -
cert_hashCharreadonly=Truestring='Hash' -
cert_serial_numberCharreadonly=Truestring='Serial Number' -
cert_signature_algorCharreadonly=Truestring='Signature Algorithm' -
cert_versionCharreadonly=Truestring='Version' -
dec_passCharstring='Password' -
filenameCharstring='File Name' -
final_dateDatehelp='Last Control Date'readonly=Truestring='Last Date' -
issuer_common_nameCharreadonly=Truestring='Issuer Common Name' -
issuer_countryCharreadonly=Truestring='Issuer Country' -
issuer_email_addressCharreadonly=Truestring='Issuer Email Address' -
issuer_organizationCharreadonly=Truestring='Issuer Organization' -
issuer_serial_numberCharreadonly=Truestring='Issuer Serial Number' -
key_fileBinaryhelp='Upload the Signature File'required=Falsestore=Truestring='Signature File' -
not_afterDatehelp='Not After this Date'readonly=Truestring='Not After' -
not_beforeDatehelp='Not Before this Date'readonly=Truestring='Not Before' -
priv_keyTextreadonly=Truestring='Private Key' -
private_key_bitsCharreadonly=Truestring='Private Key Bits' -
private_key_checkCharreadonly=Truestring='Private Key Check' -
private_key_typeCharreadonly=Truestring='Private Key Type' -
statusSelectioncompute='_compute_check_signature'help='Draft: means it has not been checked yet.\nYou must press the"check" button.'string='Status' args: [('unverified', 'Unverified'), ('valid', 'Valid'), ('expired', 'Expired')] -
subject_cCharreadonly=Truestring='Subject Country' -
subject_common_nameCharreadonly=Truestring='Subject Common Name' -
subject_email_addressCharreadonly=Truestring='Subject Email Address' -
subject_serial_numberCharstring='Subject Serial Number' -
subject_titleCharreadonly=Truestring='Subject Title'
-
action_clean1(self)@api.multi -
action_process(self)@api.multi -
load_cert_pk12(self, filecontent)
New fields (5)
-
file_idsOne2many → etd.document.filestring='Files' args: 'etd.document.file', 'document_id' -
invoicing_policySelectionargs: [('ticket', 'Ticket'), ('invoice', 'Invoice'), ('eguide', 'Electronic Guide')] -
modelSelectionrequired=Truestring='Odoo Model' args: [] -
nameCharrequired=Truestring='Name' -
test_documentReferenceargs: _get_model_list
No public methods.
New fields (9)
-
document_idMany2one → etd.documentrequired=Truestring='Document' args: 'etd.document' -
file_typeSelectiondefault='xml'string='File Type' args: [('xml', 'XML'), ('txt', 'TXT')] -
groupedBooleanstring='1 file for multiple documents' -
nameCharrequired=Truestring='Name' -
saveBooleandefault=Truestring='Attach the generated file to the record' -
templateBinarystring='Template File' -
template_nameCharstring='Filename Template' -
template_textTexthelp='Used if not template file is provided'string='Template Text' -
validatorBinarystring='Validator File'
-
action_test(self)
New fields (1)
-
signature_idMany2one → etd.signaturehelp='SSL Signature of the Document'string='SSL Signature' args: 'etd.signature'
-
build_files(self, file_dict=None)Build Files. Build the files and returns a dictionary with file name and string :return: Dictionary of filename and content -
document_sign(self)@jobDocument Sign. Sign or get the document signed, attach the ETD to the record and log a message in the chatter with the status :param res_model: ir.model of the document to sign :param res_id: id of the document to sign -
get_etd_document(self)Return one etd.document to generate the XML file of the record. :return: The etd.document that needs be used to generate the XML file -
get_etd_filename(self, etd_file)Get the file name. This can be a relative path with a directory name. -
get_etd_template(self, etd_file)Get the file template to render. -
prepare_keywords(self)Return a dictionary of keywords used in the template. :return: Dictionary of keywords used in the template -
set_jinja_env(self)@api.modelSet the Jinja2 environment. The environment will helps the system to find the templates to render. :return: jinja2.Environment instance. -
sign_file(self, file_text, certificate)Sign one File. Sign the file using the certificate Store the signature and link it to the record :param file_text:string with the original file content :param certificate: SSL Certificate record :return: XML string with the SSL signature included -
sign_files(self, file_dict, certificate)Sign Files. Sign the file using the certificate :param file_dict: dict mapping file names to file text contents :param certificate: SSL Certificate record :return: dict mapping file names to signed content text strings
New fields (8)
-
cert_idMany2one → etd.certificaterequired=Truestring='Certificate' args: 'etd.certificate' -
digest_valueCharrequired=Truestring='Digest Value' -
exponentCharrequired=Truestring='Exponent' -
model_idMany2one → ir.modelrequired=Truestring='Model' args: 'ir.model' -
modulusCharrequired=Truestring='Modulus' -
nameCharrequired=Truestring='Name' -
res_idIntegerrequired=Truestring='Record ID' -
signature_valueTextrequired=Truestring='Signature Value'
No public methods.
New fields (4)
-
backend_acp_idMany2one → backend.acpstring='Authorized Certification Provider' args: 'backend.acp' -
cert_idMany2one → etd.certificatestring='SSL Certificate' args: 'etd.certificate' -
etd_idsMany2many → etd.documentstring='Documents To Sign' args: 'etd.document' -
signerSelectiondefault='odoo'help='Please note that the signing authority is in charge of\n sending the document for validation.'required=Truestring='Who is signing?' args: (('odoo', 'Odoo'), ('backend', 'Authorized Certification Provider'))
No public methods.
New fields (1)
-
backend_acp_idMany2one → backend.acpstring='Backend to the Tax Authority' args: 'backend.acp'
No public methods.