WSFE (Factura Electronica)
l10n_ar_wsfe · OCA/l10n-argentina
Health
70/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
GPL-3
No conflicts with its dependencies
Folder size
0.7 MB
Module directory on disk
Code analysis
18 migration notes
7 models
9 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
account_invoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (6 methods) (2 occurrences in this file) migration-api-multi-one · sourceaccount_invoice_confirm— Class 'account_invoice_confirm' still inherits from the old-style `osv.osv_memory` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceview_wsfe_config_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · sourceview_wsfe_config_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (3 occurrences in this file) migration-view-tree-tag · sourceview_wsfe_sinchronize_voucher— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcewsfe_config— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcewsfe_config— Class 'wsfe_config' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcewsfe_config— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourcewsfe_sinchronize_voucher— Class 'wsfe_sinchronize_voucher' still inherits from the old-style `osv.osv_memory` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcewsfe_sinchronize_voucher— Class 'wsfe_sinchronize_voucher' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.report`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (6 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
WSFE (Web Service de Factura Electronica).
Este módulo nos permite facturar de forma electrónica a través del Servicio Web
que publica la AFIP.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_ar_electronic_invoice_storage_rg1361, l10n_ar_wsfe_jasper, l10n_ar_wsfe_perceptions
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
cai_account_supplier_invoice_form |
cai.account.supplier.invoice.form.inherit | account.invoice | form | Inherits account.invoice_supplier_form |
view_wsfe_config_form |
wsfe.config.form | wsfe.config | form | New |
view_wsfe_config_tree |
wsfe.config.tree | wsfe.config | tree | New |
view_wsfe_request_form |
wsfe.request.form | wsfe.request | form | New |
view_wsfe_request_tree |
wsfe.request.tree | wsfe.request | tree | New |
view_wsfe_sinchronize_voucher |
WSFE Sinchronize Voucher | wsfe.sinchronize.voucher | form | New |
view_wsfe_voucher_type_form |
wsfe.voucher_type.form | wsfe.voucher_type | form | New |
view_wsfe_voucher_type_tree |
wsfe.voucher_type.tree | wsfe.voucher_type | tree | New |
wsfe_account_invoice_form |
wsfe.account.invoice.form.inherit | account.invoice | form | Inherits account.invoice_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
New fields (3)
-
aut_caeBooleandefault=Falsehelp='Pedido de autorizacion a la AFIP' args: 'Autorizar' -
caeCharhelp='CAE (Codigo de Autorizacion Electronico assigned by AFIP.)'required=Falsesize=32 args: 'CAE/CAI' -
cae_due_dateDatehelp='Fecha de vencimiento del CAE'required=False args: 'CAE Due Date'
-
action_aut_cae(self)@api.multi -
action_number(self)@api.multi -
get_next_invoice_number(self)@api.multiFuncion para obtener el siguiente numero de comprobante correspondiente en el sistema -
hook_add_taxes(self, inv, detalle)@api.model -
refund(self, cr, uid, ids, date=None, period_id=None, description=None, journal_id=None, context=None) -
wsfe_invoice_prepare_detail(self)@api.multi
New fields (0)
No new fields.
Public methods (1)-
hook_compute_invoice_taxes(self, invoice, tax_grouped)@api.multi
New fields (8)
-
company_idMany2one → res.companyrequired=True args: 'res.company', 'Company Name' -
cuitCharrelated='company_id.partner_id.vat'string='Cuit' -
exempt_operations_tax_idsOne2many → wsfe.tax.codesdomain=[('from_afip', '=', False), ('exempt_operations', '=', True)] args: 'wsfe.tax.codes', 'wsfe_config_id', 'Taxes' -
homologationBooleanhelp='If true, there will be some validations that are disabled, for example, invoice number correlativeness' args: 'Homologation' -
point_of_sale_idsMany2many → pos.arargs: 'pos.ar', 'pos_ar_wsfe_rel', 'wsfe_config_id', 'pos_ar_id', 'Points of Sale' -
urlCharrequired=Truesize=60 args: 'URL for WSFE' -
vat_tax_idsOne2many → wsfe.tax.codesdomain=[('from_afip', '=', True)] args: 'wsfe.tax.codes', 'wsfe_config_id', 'Taxes' -
wsaa_ticket_idMany2one → wsaa.taargs: 'wsaa.ta', 'Ticket Access'
-
check_errors(self, res, raise_exception=True)@api.model -
check_observations(self, res)@api.model -
create(self, cr, uid, vals, context) -
get_config(self)@api.model -
get_invoice_CAE(self, pos, voucher_type, details)@api.multi -
get_last_voucher(self, pos, voucher_type)@api.model -
get_voucher_info(self, cr, uid, ids, pos, voucher_type, number, context={})@api.v7 -
read_tax(self)@api.multi
New fields (9)
-
date_requestDatetimerequired=True args: 'Request Date' -
detail_idsOne2many → wsfe.request.detailreadonly=True args: 'wsfe.request.detail', 'request_id', 'Details' -
errorsTextreadonly=True args: 'Errors' -
nameCharrequired=Falsesize=64 args: 'Desc' -
nregsIntegerreadonly=Truerequired=True args: 'Number of Records' -
pos_arCharreadonly=Truerequired=Truesize=16 args: 'POS' -
reprocessBooleandefault=Falsereadonly=True args: 'Reprocess' -
resultSelectionreadonly=True args: [('A', 'Approved'), ('R', 'Rejected'), ('P', 'Partial')], 'Result' -
voucher_typeCharreadonly=Truerequired=Truesize=64 args: 'Voucher Type'
No public methods.
New fields (12)
-
amount_totalCharreadonly=Truesize=64 args: 'Amount Total' -
caeCharreadonly=Truerequired=Falsesize=64 args: 'CAE' -
cae_duedateDatereadonly=Truerequired=False args: 'CAE Due Date' -
conceptSelectionreadonly=True args: [('1', 'Products'), ('2', 'Services'), ('3', 'Products&Services')], 'Concept' -
docnumCharreadonly=Truesize=32 args: 'Document Number' -
doctypeIntegerreadonly=True args: 'Document Type' -
nameMany2one → account.invoicereadonly=Truerequired=False args: 'account.invoice', 'Voucher' -
observationsTextreadonly=True args: 'Observations' -
request_idMany2one → wsfe.requestrequired=True args: 'wsfe.request', 'Request' -
resultSelectionreadonly=True args: [('A', 'Approved'), ('R', 'Rejected')], 'Result' -
voucher_dateDatereadonly=True args: 'Voucher Date' -
voucher_numberIntegerreadonly=True args: 'Voucher Number'
No public methods.
New fields (9)
-
codeCharrequired=Falsesize=4 args: 'Code' -
exempt_operationsBooleanhelp='Check it if this VAT Tax corresponds to vat tax exempts operations, such as to sell books, milk, etc. The taxes with this checked, will be reported to AFIP as exempt operations (base amount) without VAT applied on this' args: 'Exempt Operations' -
from_afipBooleanargs: 'From AFIP' -
from_dateDateargs: 'Effective From' -
nameCharrequired=Truesize=64 args: 'Desc' -
tax_code_idMany2one → account.tax.codeargs: 'account.tax.code', 'Account Tax Code' -
tax_idMany2one → account.taxargs: 'account.tax', 'Account Tax' -
to_dateDateargs: 'Effect Until' -
wsfe_config_idMany2one → wsfe.configargs: 'wsfe.config', 'WSFE Configuration'
No public methods.
New fields (5)
-
codeCharhelp='Internal Code assigned by AFIP for voucher type'required=Truesize=4 args: 'Code' -
denomination_idMany2one → invoice.denominationrequired=False args: 'invoice.denomination', 'Denomination' -
document_typeSelectionreadonly=Falserequired=Trueselect=True args: [('out_invoice', 'Factura'), ('out_refund', 'Nota de Credito'), ('out_debit', 'Nota de Debito')], 'Document Type' -
nameCharhelp='Voucher Type, eg.: Factura A, Nota de Credito B, etc.'readonly=Falserequired=Truesize=64 args: 'Name' -
voucher_modelSelectionrequired=Trueselect=True args: [('invoice', 'Factura/NC/ND'), ('voucher', 'Recibo')], 'Voucher Model'
-
get_voucher_type(self, voucher)@api.model
Loading…
Loading…
Loading…