Accounting mailing list archives
accounting@odoo-community.org
Browse archives
Re: Localizations Eletronic Invoicing
by
Danimar Ribeiro
Right now in Brazil we are working on that as well.
I'm doing some of those methods:Sign xml - https://github.com/Trust-Code/trust-addons/blob/8.0/trust_base_nfse/service/signature.py
https://github.com/Trust-Code/trust-addons/blob/8.0/trust_base_nfse/service/filters_xml.py
Related to sign the xml, we use pyxmlsec.
https://github.com/kmee/l10n-brazil/commits/edoc_refactory
And we plan to put those together in odoo-brazil, those are still specific to brazil, but we can work to make it available in OCA.
2015-11-11 16:07 GMT-02:00 Moises Lopez <moylop260@vauxoo.com>:
Hello Luis Felipe,Thank a lot for this thread.IMHO we should use the standard methods in a global and standard library in pypi to sign xmlNow, we have a custom module to work with sign l10n_mx_facturae_libWe could use templates (jinja, qweb, mako... or other ones) for manage our custom country format of xml creation.And we could use many driver to upload to webservices provider of our countries.I'm imagining a approach similar to next excellent project of fiscal printer https://github.com/stoq/stoqdriversbut for global electronic invoicing.According to the last meeting in SFO between Luis Felipe and me:Brazil and Mexico (and Argentina maybe) use:- local xml file with custom format in each countries with variables type <customer total=%{invoice.amount_total}- l10n_br_pos_national.jinja- l10n_br_pos_sat.jinja- l10n_br_services_sat.jinja- l10n_br_transport_sat.jinja- l10n_mx_cfdi.jinja- l10n_ar_global.jinja- sign of xml file with special tags- Get string from xml driver method to sign.- Method to sign- upload to webservices providers.- Many webservices script to upload xml to sign with providerThis library could be used in odoo modules with:import e_invoiceWhat do you think?(We can add a project in OCA for this work)--2015-11-05 14:54 GMT-05:00 Danimar Ribeiro <danimaribeiro@gmail.com>:Argentina has some kind of eletronic invoices too:--2015-11-05 17:30 GMT-02:00 Luis Felipe Miléo <mileo@kmee.com.br>:Dear Community,In Odoo SF V9 update training I had the pleasure to meeting with some Odoo contributors from Mexico: Vauxoo and Jarsa(Oscar, Moises, Jesus and others that i can't remember the name now, sorry =\).We start a talk about the similarities of the Electronic Invoice in Brazil and Mexico.After San Francisco, i was traveled on vacation to Chile and saw the Eletronic Invoice over common sales and over POS terminal.In Brazil we have many types of E-docs:
- Products invoices;
- POS invoices:
- National (NFC-E);
- São Paulo (SAT);
- Services invoices:
- Every city in Brazil can have her own webservice with a specific layout and rules; (5570 cities);
- Transports invoice
- etc.
Last weekend i started development of some e-doc module that simplifies l10n_br current invoice workflow and can be used for diferent types of eletronic and non eletronic documents.I would like to know the opinion about it and if it would be possible to create a project to provide the basic implementation for the electronic documents of localizations. So if it's possible, i would like to know the what countries localizations are using electronic documents and their peculiarities/specs.Best Regards- Luis Felipe Miléo+55 11 4063-9872 (SP)+55 21 4063-8872 (RJ)mileo@kmee.com.brParceiro oficial no Brasil:
Moisés López Calderón
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.comtwitter: @vauxoo@moylop260hangout: moylop260@vauxoo.com
--