Merge lp:~ingenieria-adhoc/openerp-l10n-ar-localization/merge-trunk into lp:openerp-l10n-ar-localization

Proposed by Juan José Scarafía (ADHOC)
Status: Needs review
Proposed branch: lp:~ingenieria-adhoc/openerp-l10n-ar-localization/merge-trunk
Merge into: lp:openerp-l10n-ar-localization
Diff against target: 59562 lines (+55509/-593)
354 files modified
l10n_ar_account_check_duo/__openerp__.py (+0/-1)
l10n_ar_account_check_duo/account.py (+1/-1)
l10n_ar_account_check_duo/account_check_duo.py (+2/-2)
l10n_ar_account_check_duo/account_check_duo_view.xml (+5/-8)
l10n_ar_account_check_duo/res_partner_bank.py (+1/-1)
l10n_ar_account_check_duo/ticket_deposit_view.xml (+2/-1)
l10n_ar_account_check_duo/wizard_issued/check_issued_hreject.py (+3/-5)
l10n_ar_account_check_duo/wizard_third/check_deposit.py (+3/-5)
l10n_ar_account_check_duo/wizard_third/check_dreject.py (+3/-5)
l10n_ar_account_check_duo/wizard_third/check_hreject.py (+3/-5)
l10n_ar_account_check_duo/wizard_third/check_sold.py (+3/-5)
l10n_ar_account_check_duo/wizard_third/ticket_check_deposit.py (+0/-2)
l10n_ar_chart_generic/__openerp__.py (+0/-1)
l10n_ar_chart_generic/data/account_chart_respinsc.xml (+741/-384)
l10n_ar_chart_generic/data/res_partner.xml (+3/-2)
l10n_ar_debit_note/__init__.py (+27/-0)
l10n_ar_debit_note/__openerp__.py (+37/-0)
l10n_ar_debit_note/account_invoice_view.xml (+21/-0)
l10n_ar_debit_note/account_journal.py (+39/-0)
l10n_ar_debit_note/account_journal_view.xml (+20/-0)
l10n_ar_invoice/__openerp__.py (+5/-2)
l10n_ar_invoice/config.py (+26/-5)
l10n_ar_invoice/invoice.py (+131/-99)
l10n_ar_invoice/report/__init__.py (+1/-1)
l10n_ar_invoice/security/ir.model.access.csv (+17/-17)
l10n_ar_invoice/security/l10n_ar_invoice_security.xml (+0/-11)
l10n_ar_invoice/view/afip_menuitem.xml (+1/-1)
l10n_ar_invoice/view/invoice_view.xml (+15/-2)
l10n_ar_invoice/view/partner_view.xml (+4/-10)
l10n_ar_invoice_sale/AUTHORS (+38/-0)
l10n_ar_invoice_sale/LICENSE (+661/-0)
l10n_ar_invoice_sale/__init__.py (+24/-0)
l10n_ar_invoice_sale/__openerp__.py (+43/-0)
l10n_ar_invoice_sale/sale.py (+63/-0)
l10n_ar_invoice_stock/AUTHORS (+38/-0)
l10n_ar_invoice_stock/LICENSE (+661/-0)
l10n_ar_invoice_stock/__init__.py (+24/-0)
l10n_ar_invoice_stock/__openerp__.py (+41/-0)
l10n_ar_invoice_stock/stock.py (+81/-0)
l10n_ar_invoice_stock/wizard/stock_inventory_merge_view.xml (+16/-0)
l10n_ar_pyafipws/__init__.py (+4/-0)
l10n_ar_pyafipws/__openerp__.py (+17/-0)
l10n_ar_pyafipws/afip_auth.py (+110/-0)
l10n_ar_pyafipws/authentication.py (+95/-0)
l10n_ar_pyafipws/data/account_invoice_view.xml (+54/-0)
l10n_ar_pyafipws/data/account_journal_view.xml (+32/-0)
l10n_ar_pyafipws/data/desktop.ini (+5/-0)
l10n_ar_pyafipws/data/res_company_view.xml (+25/-0)
l10n_ar_pyafipws/desktop.ini (+5/-0)
l10n_ar_pyafipws/electronic_invoice.py (+441/-0)
l10n_ar_pyafipws/journal.py (+190/-0)
l10n_ar_pyafipws/pyafipws/.hg/branch (+1/-0)
l10n_ar_pyafipws/pyafipws/.hg/cache/branchheads (+2/-0)
l10n_ar_pyafipws/pyafipws/.hg/cache/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/cache/tags (+2/-0)
l10n_ar_pyafipws/pyafipws/.hg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/hgrc (+2/-0)
l10n_ar_pyafipws/pyafipws/.hg/requires (+4/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/cot/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/pyemail/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/pyfepdf/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/pyi25/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/trazamed/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wdigdepfiel/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsaa/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsbfe/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wscoc/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsctg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsctgv11/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfe/delphi/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfe/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfe/php/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfe/vb/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfe/vfp/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfev1/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfex/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsfexv1/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wslpg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/data/ejemplos/wsmtxca/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/.hg/store/fncache (+190/-0)
l10n_ar_pyafipws/pyafipws/.hg/undo.branch (+1/-0)
l10n_ar_pyafipws/pyafipws/.hg/undo.desc (+3/-0)
l10n_ar_pyafipws/pyafipws/620059af4c96ff07eaf021b6ad080a5c.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/__init__.py (+19/-0)
l10n_ar_pyafipws/pyafipws/afip_ca_info.crt (+81/-0)
l10n_ar_pyafipws/pyafipws/build-pyafipws.bat (+17/-0)
l10n_ar_pyafipws/pyafipws/build-pyrece.bat (+35/-0)
l10n_ar_pyafipws/pyafipws/cache/24e95ac2a24a18e07d8fca057d7155da.pkl (+126/-0)
l10n_ar_pyafipws/pyafipws/cache/24e95ac2a24a18e07d8fca057d7155da.xml (+103/-0)
l10n_ar_pyafipws/pyafipws/cache/273d9007b7636f93fada0091c091a5d3.pkl (+3044/-0)
l10n_ar_pyafipws/pyafipws/cache/273d9007b7636f93fada0091c091a5d3.xml (+1433/-0)
l10n_ar_pyafipws/pyafipws/cache/3bdeb32d00343e8dc830ff5910fa29c5.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/cache/660f8b425947213db1f58a38188b32c7.pkl (+2281/-0)
l10n_ar_pyafipws/pyafipws/cache/660f8b425947213db1f58a38188b32c7.xml (+1111/-0)
l10n_ar_pyafipws/pyafipws/cache/6659e0aba0747196320d99261cd72c41.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/cache/8cebeabefb5eea5b924580ce776eb3c9.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/cache/a11e90cf2e3147385d6b459ff29f1d49.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/cache/c21512a6d76772caab62eaee1307c5e3.xml (+15/-0)
l10n_ar_pyafipws/pyafipws/cache/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/cache/e3d8feaf23cb488d40b104b7e9df0991.pkl (+2334/-0)
l10n_ar_pyafipws/pyafipws/cache/e3d8feaf23cb488d40b104b7e9df0991.xml (+1639/-0)
l10n_ar_pyafipws/pyafipws/comodo.crt (+25/-0)
l10n_ar_pyafipws/pyafipws/config-pyrece.txt (+6/-0)
l10n_ar_pyafipws/pyafipws/config.txt (+6/-0)
l10n_ar_pyafipws/pyafipws/cot.py (+300/-0)
l10n_ar_pyafipws/pyafipws/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/efactura.py (+108/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/cot/cot.bas (+66/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/cot/cot.prg (+90/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/cot/cot.vbp (+35/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/cot/cot.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/cot/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/factura_electronica.c (+91/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/factura_electronica.cs (+40/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/factura_electronica.php (+117/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/libpyafipws_dll_test.bas (+54/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/libpyafipws_dll_test.c (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/libpyafipws_dll_test.prg (+26/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/Proyecto1.vbp (+35/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/Proyecto1.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/Proyecto2.vbp (+31/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/pyemail.bas (+28/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyemail/pyemail2.bas (+45/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyfepdf/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyfepdf/pyfepdf.bas (+175/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyfepdf/pyfepdf.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyfepdf/pyfepdf.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyi25/Proyecto1.vbp (+35/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyi25/Proyecto1.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyi25/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/pyi25/pyi25.bas (+24/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/trazamed/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/trazamed/trazamed.bas (+194/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/trazamed/trazamed.prg (+177/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/trazamed/trazamed.vbp (+35/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wdigdepfiel/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wdigdepfiel/wdigdepfiel.bas (+120/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wdigdepfiel/wdigdepfiel.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wdigdepfiel/wdigdepfiel.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsaa/Form1.frm (+524/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsaa/WSAA.bas (+90/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsaa/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsaa/reusar_ticket_acceso.bas (+76/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsaa/wsaa.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe.bas (+178/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe.vbp (+32/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe_params.bas (+94/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe_params.vbp (+32/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsbfe/wsbfe_params.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wscoc/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wscoc/wscoc.bas (+258/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wscoc/wscoc.prg (+260/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wscoc/wscoc.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wscoc/wscoc.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctg/wsctg.bas (+104/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctg/wsctg.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctg/wsctg.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctgv11/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctgv11/wsctg.bas (+187/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctgv11/wsctg.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsctgv11/wsctg.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/delphi/Project1.bdsproj (+175/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/delphi/Project1.bdsproj.local (+6/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/delphi/Project1.cfg (+38/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/delphi/Project1.dpr (+123/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/delphi/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/ej_cobol.txt (+42/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/ej_powerbuilder.txt (+46/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/php/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/php/ejemplo.php (+91/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vb/Module1.bas (+124/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vb/Proyecto1.vbp (+32/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vb/Proyecto1.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vb/Proyecto2.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vb/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vfp/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfe/vfp/program1.prg (+146/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/ej_powerbuilder.txt (+100/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1.bas (+318/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1.prg (+198/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1.vb (+210/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1_caea.bas (+185/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1_caea.vbp (+34/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1_params.bas (+115/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfev1/wsfev1_params.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/wsfex.bas (+189/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/wsfex.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/wsfex.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/wsfex_params.bas (+112/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfex/wsfex_params.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfexv1/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfexv1/wsfexv1.bas (+238/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsfexv1/wsfexv1.vbp (+38/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wslpg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wslpg/wslpg.bas (+309/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wslpg/wslpg.prg (+240/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wslpg/wslpg.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wslpg/wslpg.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/desktop.ini (+5/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx.bas (+196/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx_caea.bas (+227/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx_caea.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx_params.bas (+123/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx_params.vbp (+39/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtx_params.vbw (+1/-0)
l10n_ar_pyafipws/pyafipws/ejemplos/wsmtxca/wsmtxca.prg (+229/-0)
l10n_ar_pyafipws/pyafipws/factura.csv (+533/-0)
l10n_ar_pyafipws/pyafipws/facturas.csv (+2/-0)
l10n_ar_pyafipws/pyafipws/facturas.json (+102/-0)
l10n_ar_pyafipws/pyafipws/facturas.txt (+9/-0)
l10n_ar_pyafipws/pyafipws/facturas.xml (+83/-0)
l10n_ar_pyafipws/pyafipws/formato_cot.py (+110/-0)
l10n_ar_pyafipws/pyafipws/formato_csv.py (+211/-0)
l10n_ar_pyafipws/pyafipws/formato_dbf.py (+200/-0)
l10n_ar_pyafipws/pyafipws/formato_json.py (+44/-0)
l10n_ar_pyafipws/pyafipws/formato_txt.py (+333/-0)
l10n_ar_pyafipws/pyafipws/formato_xml.py (+340/-0)
l10n_ar_pyafipws/pyafipws/geotrust.crt (+20/-0)
l10n_ar_pyafipws/pyafipws/instalar-pyafipws.bat (+18/-0)
l10n_ar_pyafipws/pyafipws/instalar-pyrece.bat (+17/-0)
l10n_ar_pyafipws/pyafipws/libpyafipws.c (+272/-0)
l10n_ar_pyafipws/pyafipws/libpyafipws.def (+16/-0)
l10n_ar_pyafipws/pyafipws/libpyafipws.h (+79/-0)
l10n_ar_pyafipws/pyafipws/licencia-pyafipws.txt (+683/-0)
l10n_ar_pyafipws/pyafipws/licencia-pyrece.txt (+683/-0)
l10n_ar_pyafipws/pyafipws/licencia.txt (+685/-0)
l10n_ar_pyafipws/pyafipws/liquidacion_form_c1116b_wslpg.csv (+153/-0)
l10n_ar_pyafipws/pyafipws/nsis.py (+238/-0)
l10n_ar_pyafipws/pyafipws/php.py (+37/-0)
l10n_ar_pyafipws/pyafipws/pyafipws.idl (+48/-0)
l10n_ar_pyafipws/pyafipws/pyafipws.py (+1045/-0)
l10n_ar_pyafipws/pyafipws/pyemail.py (+226/-0)
l10n_ar_pyafipws/pyafipws/pyfepdf.py (+960/-0)
l10n_ar_pyafipws/pyafipws/pyi25.py (+192/-0)
l10n_ar_pyafipws/pyafipws/pyrece.py (+1109/-0)
l10n_ar_pyafipws/pyafipws/pyrece.rsrc.py (+213/-0)
l10n_ar_pyafipws/pyafipws/rece.ini.dist (+98/-0)
l10n_ar_pyafipws/pyafipws/rece.py (+244/-0)
l10n_ar_pyafipws/pyafipws/rece1.py (+552/-0)
l10n_ar_pyafipws/pyafipws/receb.py (+343/-0)
l10n_ar_pyafipws/pyafipws/recem.py (+792/-0)
l10n_ar_pyafipws/pyafipws/recex.py (+414/-0)
l10n_ar_pyafipws/pyafipws/recex1.py (+514/-0)
l10n_ar_pyafipws/pyafipws/rg1361.py (+457/-0)
l10n_ar_pyafipws/pyafipws/setup.py (+29/-0)
l10n_ar_pyafipws/pyafipws/setup_cot.py (+55/-0)
l10n_ar_pyafipws/pyafipws/setup_pyfepdf.py (+66/-0)
l10n_ar_pyafipws/pyafipws/setup_pyrece.py (+80/-0)
l10n_ar_pyafipws/pyafipws/setup_trazamed.py (+60/-0)
l10n_ar_pyafipws/pyafipws/setup_typelib.py (+79/-0)
l10n_ar_pyafipws/pyafipws/setup_wsaa.py (+68/-0)
l10n_ar_pyafipws/pyafipws/setup_wscoc.py (+60/-0)
l10n_ar_pyafipws/pyafipws/setup_wsctg11.py (+58/-0)
l10n_ar_pyafipws/pyafipws/setup_wsfev1.py (+71/-0)
l10n_ar_pyafipws/pyafipws/setup_wsfexv1.py (+59/-0)
l10n_ar_pyafipws/pyafipws/setup_wslpg.py (+73/-0)
l10n_ar_pyafipws/pyafipws/setup_wsmtx.py (+49/-0)
l10n_ar_pyafipws/pyafipws/soap.py (+227/-0)
l10n_ar_pyafipws/pyafipws/thawte.crt (+19/-0)
l10n_ar_pyafipws/pyafipws/trazamed.idl (+80/-0)
l10n_ar_pyafipws/pyafipws/trazamed.py (+717/-0)
l10n_ar_pyafipws/pyafipws/typelib.py (+45/-0)
l10n_ar_pyafipws/pyafipws/utils.py (+288/-0)
l10n_ar_pyafipws/pyafipws/wdigdepfiel.py (+184/-0)
l10n_ar_pyafipws/pyafipws/wsaa-openssl.py (+31/-0)
l10n_ar_pyafipws/pyafipws/wsaa.c (+215/-0)
l10n_ar_pyafipws/pyafipws/wsaa.idl (+63/-0)
l10n_ar_pyafipws/pyafipws/wsaa.py (+380/-0)
l10n_ar_pyafipws/pyafipws/wsbfe.py (+465/-0)
l10n_ar_pyafipws/pyafipws/wscoc.py (+1032/-0)
l10n_ar_pyafipws/pyafipws/wsctg.ini (+12/-0)
l10n_ar_pyafipws/pyafipws/wsctg.py (+341/-0)
l10n_ar_pyafipws/pyafipws/wsctg11.py (+1012/-0)
l10n_ar_pyafipws/pyafipws/wsfe.py (+197/-0)
l10n_ar_pyafipws/pyafipws/wsfev1.c (+107/-0)
l10n_ar_pyafipws/pyafipws/wsfev1.idl (+191/-0)
l10n_ar_pyafipws/pyafipws/wsfev1.py (+1176/-0)
l10n_ar_pyafipws/pyafipws/wsfex.py (+699/-0)
l10n_ar_pyafipws/pyafipws/wsfexv1.py (+696/-0)
l10n_ar_pyafipws/pyafipws/wslpg.ini (+32/-0)
l10n_ar_pyafipws/pyafipws/wslpg.py (+2106/-0)
l10n_ar_pyafipws/pyafipws/wslpg_datos.py (+114/-0)
l10n_ar_pyafipws/pyafipws/wsmtx.py (+938/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/bookmarks (+2/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/branch (+1/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/cache/branchheads (+7/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/cache/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/cache/tags (+6/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/hgrc (+2/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/requires (+4/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store (1)/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store/data/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store/data/pysimplesoap/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store/data/tests/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/store/fncache (+30/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/undo.branch (+1/-0)
l10n_ar_pyafipws/pysimplesoap/.hg/undo.desc (+3/-0)
l10n_ar_pyafipws/pysimplesoap/.hgignore (+5/-0)
l10n_ar_pyafipws/pysimplesoap/README (+20/-0)
l10n_ar_pyafipws/pysimplesoap/build/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/__init__.py (+7/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/client.py (+801/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/server.py (+559/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/simplexml.py (+583/-0)
l10n_ar_pyafipws/pysimplesoap/build/lib.linux-x86_64-2.7/pysimplesoap/transport.py (+241/-0)
l10n_ar_pyafipws/pysimplesoap/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/__init__.py (+7/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/client.py (+801/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/server.py (+559/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/simplexml.py (+583/-0)
l10n_ar_pyafipws/pysimplesoap/pysimplesoap/transport.py (+241/-0)
l10n_ar_pyafipws/pysimplesoap/setup.py (+22/-0)
l10n_ar_pyafipws/pysimplesoap/tests/afip_tests.py (+144/-0)
l10n_ar_pyafipws/pysimplesoap/tests/client_tests.py (+205/-0)
l10n_ar_pyafipws/pysimplesoap/tests/desktop.ini (+5/-0)
l10n_ar_pyafipws/pysimplesoap/tests/dummy_utils.py (+7/-0)
l10n_ar_pyafipws/pysimplesoap/tests/issues_tests.py (+199/-0)
l10n_ar_pyafipws/pysimplesoap/tests/licencias_tests.py (+62/-0)
l10n_ar_pyafipws/pysimplesoap/tests/server_multins_test.py (+197/-0)
l10n_ar_pyafipws/pysimplesoap/tests/simplexmlelement_test.py (+145/-0)
l10n_ar_pyafipws/pysimplesoap/tests/soapdispatcher_test.py (+97/-0)
l10n_ar_pyafipws/pysimplesoap/tests/suite.py (+32/-0)
l10n_ar_pyafipws/pysimplesoap/tests/trazamed_tests.py (+156/-0)
l10n_ar_pyafipws/pysimplesoap/tests/wsfexv1_getcmp.xml (+54/-0)
l10n_ar_pyafipws/reingart.crt (+23/-0)
l10n_ar_pyafipws/reingart.key (+15/-0)
l10n_ar_pyafipws/reingart/reingart.crt (+23/-0)
l10n_ar_pyafipws/reingart/reingart.key (+15/-0)
l10n_ar_vat_reports/__openerp__.py (+20/-9)
l10n_ar_vat_reports/i18n/es.po (+173/-0)
l10n_ar_vat_reports/i18n/es_AR.po (+173/-0)
l10n_ar_vat_reports/i18n/l10n_ar_vat_reports.pot (+172/-0)
l10n_ar_vat_reports/report/report_data.xml (+1/-2)
l10n_ar_vat_reports/wizard/report_prompt.py (+59/-4)
l10n_ar_vat_reports/wizard/report_prompt.xml (+5/-2)
To merge this branch: bzr merge lp:~ingenieria-adhoc/openerp-l10n-ar-localization/merge-trunk
Reviewer Review Type Date Requested Status
Cristian Sebastian Rocha Pending
Review via email: mp+201075@code.launchpad.net

Description of the change

---------------
Nuevo merge proposal que reemplaza el anterior https://code.launchpad.net/~sistemas-adhoc/openerp-l10n-ar-localization/trunk/+merge/200123

MODIFICACIONES
PARTE 1
Se arregla el siguiente bug https://bugs.launchpad.net/openerp-l10n-ar-localization/+bug/1270940

PARTE 2
Agregado de un modulo sencillo para gestionar las debit notes. Es super simple como funciona y resolvería le necesidad.

Arreglos y mejoras al libro de iva ventas y compras (capacidad de numeración correlativa, titulos y demás)

Arreglos al plan contable

Agregados dos modulos de instalación automática (cuando las dependencias se satisfacen) que elijen el diario automáticamente según la responsbilidad del partner y de la compañía. Esto se hizo desde las ordenes de venta y desde los picking.

TODO: en account_invoice, al cambiar el partner, hay un onchange que elije el jorunal correcto según las posiciones fiscales y también cambia el dominio de journal_id para que muestre solo los diarios que podrían utilizarse. El problema es que cuando la invoice se crea mediante un método, se está eligiendo el diario correcto pero no se esta modificando el dominio de journal_id. No se como realizarlo. Intenté poner un campo function tipo m2m o o2m donde mostraba los journas correctos y luego una restricción de dominio en journal tipo domain="[('id','in', campo_con_journals)]" pero no me funcionó. Alguna idea?

PARTE 3
Basicamente:
MOD Move document_id and document_number form partner main form to accounting page

IMP add vat_reports translations

REM l10n_ar_reports_samples folder (es basura)

REM afip accounting user groups because there is no need to have them

REF move afip configuration menu to accounting configuration menu (nos pareció más prolijo y apropiado, también por un tema de permisos ya que account manager puede acceder a esto y no hace falta que le demos permiso a configuración del sistema)

IMP General improovements for vat report

RM Se borra el menu padre de cheques para mejorar usabilidad según buenos usos y prácticas de open, se evita desplegar dicho menu. Se remueve dependencial moudlo de debit notes (queda opciónal para quien lo desee usar)

To post a comment you must log in.
252. By Juan José Scarafía (ADHOC)

MERGE with trunk

253. By Juan José Scarafía (ADHOC)

MERGE con lp:~sistemas-adhoc/openerp-l10n-ar-localization/trunk

Unmerged revisions

253. By Juan José Scarafía (ADHOC)

MERGE con lp:~sistemas-adhoc/openerp-l10n-ar-localization/trunk

252. By Juan José Scarafía (ADHOC)

MERGE with trunk

251. By Juan José Scarafía (ADHOC)

RM l10n_ar_pyafipws

250. By Juan José Scarafía (ADHOC)

ADD l10n_ar_invoice_stock module

249. By Juan José Scarafía (ADHOC)

ADD l10n_ar_invoice_sale module

248. By Juan José Scarafía (ADHOC)

MOD Modify the way journals are get so that it can be reused from another modules

247. By Juan José Scarafía (ADHOC)

MERGE

246. By Juan José Scarafía (ADHOC)

ADD debit note module

245. By Juan José Scarafía (ADHOC)

MOD ignored new invoice report

244. By Juan José Scarafía (ADHOC)

ADD l10n_ar_pyafipws

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ar_account_check_duo/__openerp__.py'
--- l10n_ar_account_check_duo/__openerp__.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -42,7 +42,6 @@
42 'demo': [],42 'demo': [],
43 'depends': [ 'account',43 'depends': [ 'account',
44 'account_voucher',44 'account_voucher',
45 'l10n_ar_account_check_debit_note',
46 'report_webkit'],45 'report_webkit'],
47 'description': '\n\n \n\n This module provides to manage checks (issued and third) \n\n Add models of Issued Checks and Third Checks. (Accounting/Banck ans Cash/Checks/)\n\n Add options in Jorunals for using checks in vouchers.\n\n Add range of numbers for issued check (CheckBook).Accounting/configuration/Miscellaneous/CheckBooks.\n\n Add ticket deposit for third checks. Change states from Holding to deposited.(Accounting/Banck ans Cash/Checks/)\n\n \n\n\t\t',46 'description': '\n\n \n\n This module provides to manage checks (issued and third) \n\n Add models of Issued Checks and Third Checks. (Accounting/Banck ans Cash/Checks/)\n\n Add options in Jorunals for using checks in vouchers.\n\n Add range of numbers for issued check (CheckBook).Accounting/configuration/Miscellaneous/CheckBooks.\n\n Add ticket deposit for third checks. Change states from Holding to deposited.(Accounting/Banck ans Cash/Checks/)\n\n \n\n\t\t',
48 'installable': True,47 'installable': True,
4948
=== modified file 'l10n_ar_account_check_duo/account.py'
--- l10n_ar_account_check_duo/account.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/account.py 2014-01-20 20:26:39 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
2323
24class account_journal(osv.osv):24class account_journal(osv.osv):
25 _name = 'account.journal'25 _name = 'account.journal'
2626
=== modified file 'l10n_ar_account_check_duo/account_check_duo.py'
--- l10n_ar_account_check_duo/account_check_duo.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/account_check_duo.py 2014-01-20 20:26:39 +0000
@@ -19,11 +19,11 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import fields, osv22from openerp.osv import fields, osv
23import logging23import logging
24import time24import time
25_logger = logging.getLogger(__name__)25_logger = logging.getLogger(__name__)
26from tools.translate import _26from openerp.tools.translate import _
27from datetime import datetime27from datetime import datetime
2828
29class account_issued_check(osv.osv):29class account_issued_check(osv.osv):
3030
=== modified file 'l10n_ar_account_check_duo/account_check_duo_view.xml'
--- l10n_ar_account_check_duo/account_check_duo_view.xml 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/account_check_duo_view.xml 2014-01-20 20:26:39 +0000
@@ -1,12 +1,7 @@
1<?xml version="1.0" encoding="utf-8"?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp>2<openerp>
3 <data>3 <data>
44
5 <!-- crea el menu principal-->
6
7 <menuitem id="menu_account_check" name="Checks" sequence="100"
8 parent="account.menu_finance_bank_and_cash" />
9
10 5
11 <!-- Issued Check -->6 <!-- Issued Check -->
12 <record model="ir.ui.view" id="view_account_issued_check_tree">7 <record model="ir.ui.view" id="view_account_issued_check_tree">
@@ -105,7 +100,8 @@
105 action="action_issued_check"100 action="action_issued_check"
106 id="menu_treasury_issued_check"101 id="menu_treasury_issued_check"
107 name="Issued Checks"102 name="Issued Checks"
108 parent="menu_account_check"/> 103 sequence="40"
104 parent="account.menu_finance_bank_and_cash"/>
109 105
110 106
111107
@@ -213,7 +209,8 @@
213 action="action_third_check"209 action="action_third_check"
214 id="menu_treasury_third_check"210 id="menu_treasury_third_check"
215 name="Third Checks"211 name="Third Checks"
216 parent="menu_account_check"/> 212 sequence="50"
213 parent="account.menu_finance_bank_and_cash"/>
217 214
218 </data>215 </data>
219</openerp>216</openerp>
220217
=== modified file 'l10n_ar_account_check_duo/res_partner_bank.py'
--- l10n_ar_account_check_duo/res_partner_bank.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/res_partner_bank.py 2014-01-20 20:26:39 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import fields, osv22from openerp.osv import fields, osv
2323
2424
25class res_partner_bank(osv.osv):25class res_partner_bank(osv.osv):
2626
=== modified file 'l10n_ar_account_check_duo/ticket_deposit_view.xml'
--- l10n_ar_account_check_duo/ticket_deposit_view.xml 2013-10-05 18:19:06 +0000
+++ l10n_ar_account_check_duo/ticket_deposit_view.xml 2014-01-20 20:26:39 +0000
@@ -64,7 +64,8 @@
64 action="action_ticket_deposit_menu"64 action="action_ticket_deposit_menu"
65 id="menu_treasury_ticket_deposit"65 id="menu_treasury_ticket_deposit"
66 name="Ticket Deposit"66 name="Ticket Deposit"
67 parent="menu_account_check"/> 67 sequence="60"
68 parent="account.menu_finance_bank_and_cash"/>
6869
6970
70 71
7172
=== modified file 'l10n_ar_account_check_duo/wizard_issued/check_issued_hreject.py'
--- l10n_ar_account_check_duo/wizard_issued/check_issued_hreject.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/wizard_issued/check_issued_hreject.py 2014-01-20 20:26:39 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
23from tools.translate import _23from openerp.tools.translate import _
24import netsvc24from openerp import netsvc
2525
26class account_issuedcheck_hreject(osv.osv_memory):26class account_issuedcheck_hreject(osv.osv_memory):
27 27
@@ -131,7 +131,6 @@
131 'move_id': move_id,131 'move_id': move_id,
132 'journal_id': check.voucher_id.journal_id.id,132 'journal_id': check.voucher_id.journal_id.id,
133 'period_id': period_id,133 'period_id': period_id,
134 'date': wizard.reject_date,
135 'debit': wizard.expense_amount,134 'debit': wizard.expense_amount,
136 'credit': 0.0,135 'credit': 0.0,
137 'ref': 'Check Rejected Hand Nr. ' + check.number,136 'ref': 'Check Rejected Hand Nr. ' + check.number,
@@ -145,7 +144,6 @@
145 'move_id': move_id,144 'move_id': move_id,
146 'journal_id': check.voucher_id.journal_id.id,145 'journal_id': check.voucher_id.journal_id.id,
147 'period_id': period_id,146 'period_id': period_id,
148 'date': wizard.reject_date,
149 'debit': 0.0,147 'debit': 0.0,
150 'credit': wizard.expense_amount,148 'credit': wizard.expense_amount,
151 'ref': 'Check Rejected Hand Nr. ' + check.number,149 'ref': 'Check Rejected Hand Nr. ' + check.number,
152150
=== modified file 'l10n_ar_account_check_duo/wizard_third/check_deposit.py'
--- l10n_ar_account_check_duo/wizard_third/check_deposit.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/wizard_third/check_deposit.py 2014-01-20 20:26:39 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
23from tools.translate import _23from openerp.tools.translate import _
24import netsvc24from openerp import netsvc
2525
26class account_check_deposit(osv.osv_memory):26class account_check_deposit(osv.osv_memory):
27 _name = 'account.check.deposit'27 _name = 'account.check.deposit'
@@ -81,7 +81,6 @@
81 'move_id': move_id,81 'move_id': move_id,
82 'journal_id': check.voucher_id.journal_id.id,82 'journal_id': check.voucher_id.journal_id.id,
83 'period_id': period_id,83 'period_id': period_id,
84 'date': check.date,
85 'debit': check.amount,84 'debit': check.amount,
86 'credit': 0.0,85 'credit': 0.0,
87 'ref': 'Check Deposit Nr. ' + check.number,86 'ref': 'Check Deposit Nr. ' + check.number,
@@ -94,7 +93,6 @@
94 'move_id': move_id,93 'move_id': move_id,
95 'journal_id': check.voucher_id.journal_id.id,94 'journal_id': check.voucher_id.journal_id.id,
96 'period_id': period_id,95 'period_id': period_id,
97 'date': check.date,
98 'debit': 0.0,96 'debit': 0.0,
99 'credit': check.amount,97 'credit': check.amount,
100 'ref': 'Check Deposit Nr. ' + check.number,98 'ref': 'Check Deposit Nr. ' + check.number,
10199
=== modified file 'l10n_ar_account_check_duo/wizard_third/check_dreject.py'
--- l10n_ar_account_check_duo/wizard_third/check_dreject.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/wizard_third/check_dreject.py 2014-01-20 20:26:39 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
23from tools.translate import _23from openerp.tools.translate import _
24import netsvc24from openerp import netsvc
2525
2626
27class account_check_dreject(osv.osv_memory):27class account_check_dreject(osv.osv_memory):
@@ -126,7 +126,6 @@
126 'move_id': move_id,126 'move_id': move_id,
127 'journal_id': check.voucher_id.journal_id.id,127 'journal_id': check.voucher_id.journal_id.id,
128 'period_id': period_id,128 'period_id': period_id,
129 'date': wizard.reject_date,
130 'debit': wizard.expense_amount,129 'debit': wizard.expense_amount,
131 'credit': 0.0,130 'credit': 0.0,
132 'ref': 'Check Dep Reject Nr. ' + check.number,131 'ref': 'Check Dep Reject Nr. ' + check.number,
@@ -140,7 +139,6 @@
140 'move_id': move_id,139 'move_id': move_id,
141 'journal_id': check.voucher_id.journal_id.id,140 'journal_id': check.voucher_id.journal_id.id,
142 'period_id': period_id,141 'period_id': period_id,
143 'date': wizard.reject_date,
144 'debit': 0.0,142 'debit': 0.0,
145 'credit': wizard.expense_amount,143 'credit': wizard.expense_amount,
146 'ref': 'Check Dep Reject Nr. ' + check.number,144 'ref': 'Check Dep Reject Nr. ' + check.number,
147145
=== modified file 'l10n_ar_account_check_duo/wizard_third/check_hreject.py'
--- l10n_ar_account_check_duo/wizard_third/check_hreject.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/wizard_third/check_hreject.py 2014-01-20 20:26:39 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
23from tools.translate import _23from openerp.tools.translate import _
24import netsvc24from openerp import netsvc
25import logging25import logging
2626
27_logger = logging.getLogger(__name__)27_logger = logging.getLogger(__name__)
@@ -181,7 +181,6 @@
181 'move_id': move_id,181 'move_id': move_id,
182 'journal_id': check.voucher_id.journal_id.id,182 'journal_id': check.voucher_id.journal_id.id,
183 'period_id': period_id,183 'period_id': period_id,
184 'date': wizard.reject_date,
185 'debit': wizard.expense_amount,184 'debit': wizard.expense_amount,
186 'credit': 0.0,185 'credit': 0.0,
187 'ref': 'Check Rejected Hand Nr. ' + check.number,186 'ref': 'Check Rejected Hand Nr. ' + check.number,
@@ -195,7 +194,6 @@
195 'move_id': move_id,194 'move_id': move_id,
196 'journal_id': check.voucher_id.journal_id.id,195 'journal_id': check.voucher_id.journal_id.id,
197 'period_id': period_id,196 'period_id': period_id,
198 'date': wizard.reject_date,
199 'debit': 0.0,197 'debit': 0.0,
200 'credit': wizard.expense_amount,198 'credit': wizard.expense_amount,
201 'ref': 'Check Rejected Hand Nr. ' + check.number,199 'ref': 'Check Rejected Hand Nr. ' + check.number,
202200
=== modified file 'l10n_ar_account_check_duo/wizard_third/check_sold.py'
--- l10n_ar_account_check_duo/wizard_third/check_sold.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_account_check_duo/wizard_third/check_sold.py 2014-01-20 20:26:39 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from osv import osv, fields22from openerp.osv import osv, fields
23from tools.translate import _23from openerp.tools.translate import _
24import netsvc24from openerp import netsvc
25import time25import time
2626
2727
@@ -102,7 +102,6 @@
102 'move_id': move_id,102 'move_id': move_id,
103 'journal_id': check.voucher_id.journal_id.id,103 'journal_id': check.voucher_id.journal_id.id,
104 'period_id': period_id,104 'period_id': period_id,
105 'date': wizard.sold_date,
106 'debit': check.amount - wizard.expense_amount,105 'debit': check.amount - wizard.expense_amount,
107 'credit': 0.0,106 'credit': 0.0,
108 'ref': 'Check Sold Nr. ' + check.number,107 'ref': 'Check Sold Nr. ' + check.number,
@@ -116,7 +115,6 @@
116 'move_id': move_id,115 'move_id': move_id,
117 'journal_id': check.voucher_id.journal_id.id,116 'journal_id': check.voucher_id.journal_id.id,
118 'period_id': period_id,117 'period_id': period_id,
119 'date': wizard.sold_date,
120 'debit': 0.0,118 'debit': 0.0,
121 'credit':check.amount,119 'credit':check.amount,
122 'ref': 'Check Sold Nr. ' + check.number,120 'ref': 'Check Sold Nr. ' + check.number,
123121
=== modified file 'l10n_ar_account_check_duo/wizard_third/ticket_check_deposit.py'
--- l10n_ar_account_check_duo/wizard_third/ticket_check_deposit.py 2013-10-05 18:19:06 +0000
+++ l10n_ar_account_check_duo/wizard_third/ticket_check_deposit.py 2014-01-20 20:26:39 +0000
@@ -153,7 +153,6 @@
153 'move_id': move_id,153 'move_id': move_id,
154 'journal_id': check.voucher_id.journal_id.id,154 'journal_id': check.voucher_id.journal_id.id,
155 'period_id': period_id,155 'period_id': period_id,
156 'date': check.date,
157 'debit': check.amount,156 'debit': check.amount,
158 'credit': 0.0,157 'credit': 0.0,
159 'ref': 'Check Deposit Nr. ' + check.number,158 'ref': 'Check Deposit Nr. ' + check.number,
@@ -166,7 +165,6 @@
166 'move_id': move_id,165 'move_id': move_id,
167 'journal_id': check.voucher_id.journal_id.id,166 'journal_id': check.voucher_id.journal_id.id,
168 'period_id': period_id,167 'period_id': period_id,
169 'date': check.date,
170 'debit': 0.0,168 'debit': 0.0,
171 'credit': check.amount,169 'credit': check.amount,
172 'ref': 'Check Deposit Nr. ' + check.number,170 'ref': 'Check Deposit Nr. ' + check.number,
173171
=== modified file 'l10n_ar_chart_generic/__openerp__.py'
--- l10n_ar_chart_generic/__openerp__.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_chart_generic/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -37,7 +37,6 @@
37 'account',37 'account',
38 'base_vat',38 'base_vat',
39 'base_iban',39 'base_iban',
40 'account_chart',
41 'l10n_ar_states',40 'l10n_ar_states',
42 'l10n_ar_base_vat',41 'l10n_ar_base_vat',
43 ],42 ],
4443
=== modified file 'l10n_ar_chart_generic/data/account_chart_respinsc.xml'
--- l10n_ar_chart_generic/data/account_chart_respinsc.xml 2013-11-05 18:20:01 +0000
+++ l10n_ar_chart_generic/data/account_chart_respinsc.xml 2014-01-20 20:26:39 +0000
@@ -32,7 +32,7 @@
3232
33 <record model="account.account.template" id="ri_activo">33 <record model="account.account.template" id="ri_activo">
34 <field name="type">view</field>34 <field name="type">view</field>
35 <field name="code">1*</field>35 <field name="code">1</field>
36 <field name="user_type" ref="account.data_account_type_view"/>36 <field name="user_type" ref="account.data_account_type_view"/>
37 <field name="name">ACTIVO</field>37 <field name="name">ACTIVO</field>
38 <field name="parent_id" ref="ri_a_root"/>38 <field name="parent_id" ref="ri_a_root"/>
@@ -40,7 +40,7 @@
4040
41 <record model="account.account.template" id="ri_activo_corriente">41 <record model="account.account.template" id="ri_activo_corriente">
42 <field name="type">view</field>42 <field name="type">view</field>
43 <field name="code">11*</field>43 <field name="code">11</field>
44 <field name="user_type" ref="account.data_account_type_view"/>44 <field name="user_type" ref="account.data_account_type_view"/>
45 <field name="name">ACTIVO CORRIENTE</field>45 <field name="name">ACTIVO CORRIENTE</field>
46 <field name="parent_id" ref="ri_activo"/>46 <field name="parent_id" ref="ri_activo"/>
@@ -48,184 +48,176 @@
4848
49 <record model="account.account.template" id="ri_disponibilidades">49 <record model="account.account.template" id="ri_disponibilidades">
50 <field name="type">view</field>50 <field name="type">view</field>
51 <field name="code">111*</field>51 <field name="code">111</field>
52 <field name="user_type" ref="account.data_account_type_view"/>52 <field name="user_type" ref="account.data_account_type_view"/>
53 <field name="name">DISPONIBILIDADES</field>53 <field name="name">DISPONIBILIDADES</field>
54 <field name="parent_id" ref="ri_activo_corriente"/>54 <field name="parent_id" ref="ri_activo_corriente"/>
55 </record>55 </record>
5656
57 <record model="account.account.template" id="ri_caja">
58 <field name="type">view</field>
59 <field name="code">1111</field>
60 <field name="user_type" ref="account.data_account_type_view"/>
61 <field name="name">CAJAS</field>
62 <field name="parent_id" ref="ri_disponibilidades"/>
63 </record>
64
57 <record model="account.account.template" id="ri_caja_pesos">65 <record model="account.account.template" id="ri_caja_pesos">
58 <field name="type">other</field>66 <field name="type">liquidity</field>
59 <field name="code">11101</field>67 <field name="code">1111010</field>
60 <field name="user_type" ref="account.data_account_type_cash"/>68 <field name="user_type" ref="account.data_account_type_cash"/>
61 <field name="name">Caja pesos</field>69 <field name="name">Caja pesos</field>
62 <field name="parent_id" ref="ri_disponibilidades"/>70 <field name="parent_id" ref="ri_caja"/>
63 </record>71 </record>
6472
65 <record model="account.account.template" id="ri_caja_monex">73 <record model="account.account.template" id="ri_caja_monex">
66 <field name="type">other</field>74 <field name="type">liquidity</field>
67 <field name="code">11102</field>75 <field name="code">1111020</field>
68 <field name="user_type" ref="account.data_account_type_cash"/>76 <field name="user_type" ref="account.data_account_type_cash"/>
69 <field name="name">Caja Monex</field>77 <field name="name">Caja Monex</field>
70 <field name="parent_id" ref="ri_disponibilidades"/>78 <field name="parent_id" ref="ri_caja"/>
71 </record>79 </record>
7280
73 <record model="account.account.template" id="ri_fondo_fijo">81 <record model="account.account.template" id="ri_fondo_fijo">
74 <field name="type">other</field>82 <field name="type">liquidity</field>
75 <field name="code">11103</field>83 <field name="code">1111030</field>
76 <field name="user_type" ref="account.data_account_type_cash"/>84 <field name="user_type" ref="account.data_account_type_cash"/>
77 <field name="name">Fondo fijo</field>85 <field name="name">Fondo fijo</field>
86 <field name="parent_id" ref="ri_caja"/>
87 </record>
88
89 <record model="account.account.template" id="ri_valores">
90 <field name="type">liquidity</field>
91 <field name="code">1111040</field>
92 <field name="user_type" ref="data_account_type_check"/>
93 <field name="name">Valores en cartera</field>
94 <field name="parent_id" ref="ri_caja"/>
95 </record>
96
97 <record model="account.account.template" id="ri_bancos">
98 <field name="type">view</field>
99 <field name="code">1112</field>
100 <field name="user_type" ref="account.data_account_type_view"/>
101 <field name="name">BANCOS</field>
78 <field name="parent_id" ref="ri_disponibilidades"/>102 <field name="parent_id" ref="ri_disponibilidades"/>
79 </record>103 </record>
80104
81 <record model="account.account.template" id="ri_banco">105 <record model="account.account.template" id="ri_banco_1">
82 <field name="type">other</field>106 <field name="type">liquidity</field>
83 <field name="code">11104</field>107 <field name="code">1112010</field>
84 <field name="user_type" ref="account.data_account_type_bank"/>108 <field name="user_type" ref="account.data_account_type_bank"/>
85 <field name="name">Banco</field>109 <field name="name">Banco x cuenta corriente xxxxx</field>
86 <field name="parent_id" ref="ri_disponibilidades"/>110 <field name="parent_id" ref="ri_bancos"/>
87 </record>111 </record>
88112
89 <record model="account.account.template" id="ri_valores_a_depositar">113 <record model="account.account.template" id="ri_creditos_comerciales">
90 <field name="type">liquidity</field>
91 <field name="code">11105</field>
92 <field name="user_type" ref="data_account_type_check"/>
93 <field name="name">Valores a depositar</field>
94 <field name="parent_id" ref="ri_disponibilidades"/>
95 </record>
96
97 <record model="account.account.template" id="ri_creditos">
98 <field name="type">view</field>114 <field name="type">view</field>
99 <field name="code">113*</field>115 <field name="code">112</field>
100 <field name="user_type" ref="account.data_account_type_view"/>116 <field name="user_type" ref="account.data_account_type_view"/>
101 <field name="name">CRÉDITOS</field>117 <field name="name">CRÉDITOS COMERCIALES</field>
102 <field name="parent_id" ref="ri_activo_corriente"/>118 <field name="parent_id" ref="ri_activo_corriente"/>
103 </record>119 </record>
104120
105 <record model="account.account.template" id="ri_deudores_por_ventas">121 <record model="account.account.template" id="ri_deudores_por_ventas">
106 <field name="type">receivable</field>122 <field name="type">receivable</field>
107 <field name="code">11301</field>123 <field name="code">1120010</field>
108 <field name="user_type" ref="account.data_account_type_receivable"/>124 <field name="user_type" ref="account.data_account_type_receivable"/>
109 <field name="name">Deudores por ventas</field>125 <field name="name">Deudores por ventas</field>
110 <field name="parent_id" ref="ri_creditos"/>126 <field name="parent_id" ref="ri_creditos_comerciales"/>
111 <field name="reconcile" eval="True"/>127 <field name="reconcile" eval="True"/>
112 </record>128 </record>
113129
114 <record model="account.account.template" id="ri_deudores_morosos">130 <record model="account.account.template" id="ri_deudores_morosos">
115 <field name="type">receivable</field>131 <field name="type">receivable</field>
116 <field name="code">11302</field>132 <field name="code">1120020</field>
117 <field name="user_type" ref="account.data_account_type_receivable"/>133 <field name="user_type" ref="account.data_account_type_receivable"/>
118 <field name="name">Deudores morosos</field>134 <field name="name">Deudores morosos</field>
119 <field name="parent_id" ref="ri_creditos"/>135 <field name="parent_id" ref="ri_creditos_comerciales"/>
120 </record>136 </record>
121137
122 <record model="account.account.template" id="ri_otros_creditos">138 <record model="account.account.template" id="ri_otros_creditos">
123 <field name="type">view</field>139 <field name="type">view</field>
124 <field name="code">114*</field>140 <field name="code">113</field>
125 <field name="user_type" ref="account.data_account_type_view"/>141 <field name="user_type" ref="account.data_account_type_view"/>
126 <field name="name">OTROS CRÉDITOS</field>142 <field name="name">OTROS CRÉDITOS</field>
127 <field name="parent_id" ref="ri_activo_corriente"/>143 <field name="parent_id" ref="ri_activo_corriente"/>
128 </record>144 </record>
129145
146 <record model="account.account.template" id="ri_deudores_morosos">
147 <field name="type">receivable</field>
148 <field name="code">1130010</field>
149 <field name="user_type" ref="account.data_account_type_receivable"/>
150 <field name="name">Deudores varios</field>
151 <field name="parent_id" ref="ri_otros_creditos"/>
152 </record>
153
130 <record model="account.account.template" id="ri_creditos_impuestos">154 <record model="account.account.template" id="ri_creditos_impuestos">
131 <field name="type">view</field>155 <field name="type">view</field>
132 <field name="code">1144*</field>156 <field name="code">114</field>
133 <field name="user_type" ref="account.data_account_type_view"/>157 <field name="user_type" ref="account.data_account_type_view"/>
134 <field name="name">CRÉDITOS POR IMPUESTOS</field>158 <field name="name">CRÉDITOS POR IMPUESTOS</field>
135 <field name="parent_id" ref="ri_otros_creditos"/>159 <field name="parent_id" ref="ri_activo_corriente"/>
136 </record>160 </record>
137161
138 <record model="account.account.template" id="ri_creditos_ganancias_sociedades">162 <record model="account.account.template" id="ri_creditos_impuestos_ganancias">
139 <field name="type">view</field>163 <field name="type">view</field>
140 <field name="code">11440010*</field>164 <field name="code">1141</field>
141 <field name="user_type" ref="account.data_account_type_view"/>165 <field name="user_type" ref="account.data_account_type_view"/>
142 <field name="name">GANANCIAS SOCIEDADES</field>166 <field name="name">GANANCIAS</field>
143 <field name="parent_id" ref="ri_creditos_impuestos"/>167 <field name="parent_id" ref="ri_creditos_impuestos"/>
144 </record>168 </record>
145169
146 <record model="account.account.template" id="ri_retencion_impuestos_ganancias_sociedades">170 <record model="account.account.template" id="ri_retencion_impuestos_ganancias">
147 <field name="type">receivable</field>171 <field name="type">other</field>
148 <field name="code">1144001010</field>172 <field name="code">1141010</field>
149 <field name="user_type" ref="account.data_account_type_receivable"/>173 <field name="user_type" ref="account.data_account_type_receivable"/>
150 <field name="name">Retención impuestos a las ganancias sociedades</field>174 <field name="name">Retención impuestos a las ganancias</field>
151 <field name="parent_id" ref="ri_creditos_ganancias_sociedades"/>175 <field name="parent_id" ref="ri_creditos_impuestos_ganancias"/>
152 </record>176 </record>
153177
154 <record model="account.account.template" id="ri_anticipo_impuestos_ganancias_sociedades">178 <record model="account.account.template" id="ri_anticipo_impuestos_ganancias">
155 <field name="type">receivable</field>179 <field name="type">other</field>
156 <field name="code">1144001020</field>180 <field name="code">1141020</field>
157 <field name="user_type" ref="account.data_account_type_receivable"/>181 <field name="user_type" ref="account.data_account_type_receivable"/>
158 <field name="name">Anticipo impuestos a las ganancias sociedades</field>182 <field name="name">Anticipo impuestos a las ganancias</field>
159 <field name="parent_id" ref="ri_creditos_ganancias_sociedades"/>183 <field name="parent_id" ref="ri_creditos_impuestos_ganancias"/>
160 </record>184 </record>
161185
162 <record model="account.account.template" id="ri_saldo_favorable_ing_ganancias_sociedades">186 <record model="account.account.template" id="ri_creditos_impuestos_iva">
163 <field name="type">receivable</field>187 <field name="type">view</field>
164 <field name="code">1144001030</field>188 <field name="code">1142</field>
165 <field name="user_type" ref="account.data_account_type_receivable"/>189 <field name="user_type" ref="account.data_account_type_view"/>
166 <field name="name">Saldo a favor ingresos a las ganancias sociedades</field>190 <field name="name">IVA</field>
167 <field name="parent_id" ref="ri_creditos_ganancias_sociedades"/>191 <field name="parent_id" ref="ri_creditos_impuestos"/>
168 </record>192 </record>
169
170 <record model="account.account.template" id="ri_creditos_ganancias_personas">
171 <field name="type">view</field>
172 <field name="code">11440011*</field>
173 <field name="user_type" ref="account.data_account_type_view"/>
174 <field name="name">GANANCIAS PERSONAS FISICAS</field>
175 <field name="parent_id" ref="ri_creditos_impuestos"/>
176 </record>
177
178 <record model="account.account.template" id="ri_retencion_impuestos_ganancias_personas">
179 <field name="type">receivable</field>
180 <field name="code">1144001110</field>
181 <field name="user_type" ref="account.data_account_type_receivable"/>
182 <field name="name">Retención impuestos a las ganancias p. fisicas</field>
183 <field name="parent_id" ref="ri_creditos_ganancias_personas"/>
184 </record>
185
186 <record model="account.account.template" id="ri_anticipo_impuestos_ganancias_personas">
187 <field name="type">receivable</field>
188 <field name="code">1144001120</field>
189 <field name="user_type" ref="account.data_account_type_receivable"/>
190 <field name="name">Anticipo impuestos a las ganancias p. fisicas</field>
191 <field name="parent_id" ref="ri_creditos_ganancias_personas"/>
192 </record>
193
194 <record model="account.account.template" id="ri_saldo_favorable_ing_ganancias_personas">
195 <field name="type">receivable</field>
196 <field name="code">1144001130</field>
197 <field name="user_type" ref="account.data_account_type_receivable"/>
198 <field name="name">Saldo a favor ingresos a las ganancias sociedades</field>
199 <field name="parent_id" ref="ri_creditos_ganancias_personas"/>
200 </record>
201
202 <record model="account.account.template" id="ri_credito_iva">
203 <field name="type">view</field>
204 <field name="code">11440030*</field>
205 <field name="user_type" ref="account.data_account_type_view"/>
206 <field name="name">IMPUESTO AL VALOR AGREGADO</field>
207 <field name="parent_id" ref="ri_creditos_impuestos"/>
208 </record>
209193
210 <record model="account.account.template" id="ri_iva_credito_fiscal">194 <record model="account.account.template" id="ri_iva_credito_fiscal">
211 <field name="type">other</field>195 <field name="type">other</field>
212 <field name="code">1144003040</field>196 <field name="code">1142010</field>
213 <field name="user_type" ref="account.data_account_type_receivable"/>197 <field name="user_type" ref="account.data_account_type_receivable"/>
214 <field name="name">IVA crédito fiscal</field>198 <field name="name">IVA crédito fiscal</field>
215 <field name="parent_id" ref="ri_credito_iva"/>199 <field name="parent_id" ref="ri_creditos_impuestos_iva"/>
200 </record>
201
202 <record model="account.account.template" id="ri_iva_percepcion">
203 <field name="type">other</field>
204 <field name="code">1142020</field>
205 <field name="user_type" ref="account.data_account_type_receivable"/>
206 <field name="name">Percepciones IVA</field>
207 <field name="parent_id" ref="ri_creditos_impuestos_iva"/>
216 </record>208 </record>
217209
218 <record model="account.account.template" id="ri_iva_retencion">210 <record model="account.account.template" id="ri_iva_retencion">
219 <field name="type">receivable</field>211 <field name="type">other</field>
220 <field name="code">1144003099</field>212 <field name="code">1142030</field>
221 <field name="user_type" ref="account.data_account_type_receivable"/>213 <field name="user_type" ref="account.data_account_type_receivable"/>
222 <field name="name">Retención IVA</field>214 <field name="name">Retención IVA</field>
223 <field name="parent_id" ref="ri_credito_iva"/>215 <field name="parent_id" ref="ri_creditos_impuestos_iva"/>
224 </record>216 </record>
225217
226 <record model="account.account.template" id="ri_creditos_iibb">218 <record model="account.account.template" id="ri_creditos_iibb">
227 <field name="type">view</field>219 <field name="type">view</field>
228 <field name="code">11440099*</field>220 <field name="code">1143</field>
229 <field name="user_type" ref="account.data_account_type_view"/>221 <field name="user_type" ref="account.data_account_type_view"/>
230 <field name="name">INGRESOS BRUTOS</field>222 <field name="name">INGRESOS BRUTOS</field>
231 <field name="parent_id" ref="ri_creditos_impuestos"/>223 <field name="parent_id" ref="ri_creditos_impuestos"/>
@@ -233,23 +225,23 @@
233225
234 <record model="account.account.template" id="ri_creditos_iibb_cf">226 <record model="account.account.template" id="ri_creditos_iibb_cf">
235 <field name="type">view</field>227 <field name="type">view</field>
236 <field name="code">1144009900*</field>228 <field name="code">114310</field>
237 <field name="user_type" ref="account.data_account_type_view"/>229 <field name="user_type" ref="account.data_account_type_view"/>
238 <field name="name">INGRESOS BRUTOS CAPITAL FEDERAL</field>230 <field name="name">INGRESOS BRUTOS CAPITAL FEDERAL</field>
239 <field name="parent_id" ref="ri_creditos_iibb"/>231 <field name="parent_id" ref="ri_creditos_iibb"/>
240 </record>232 </record>
241233
242 <record model="account.account.template" id="ri_percepcion_iibb_cf">234 <record model="account.account.template" id="ri_percepcion_iibb_cf">
243 <field name="type">receivable</field>235 <field name="type">other</field>
244 <field name="code">114400990010</field>236 <field name="code">1143101</field>
245 <field name="user_type" ref="account.data_account_type_receivable"/>237 <field name="user_type" ref="account.data_account_type_receivable"/>
246 <field name="name">Percepciones ingresos brutos capital federal</field>238 <field name="name">Percepciones ingresos brutos capital federal</field>
247 <field name="parent_id" ref="ri_creditos_iibb_cf"/>239 <field name="parent_id" ref="ri_creditos_iibb_cf"/>
248 </record>240 </record>
249241
250 <record model="account.account.template" id="ri_retencion_iibb_cf">242 <record model="account.account.template" id="ri_retencion_iibb_cf">
251 <field name="type">receivable</field>243 <field name="type">other</field>
252 <field name="code">114400990020</field>244 <field name="code">1143102</field>
253 <field name="user_type" ref="account.data_account_type_receivable"/>245 <field name="user_type" ref="account.data_account_type_receivable"/>
254 <field name="name">Retención ingresos brutos capital federal</field>246 <field name="name">Retención ingresos brutos capital federal</field>
255 <field name="parent_id" ref="ri_creditos_iibb_cf"/>247 <field name="parent_id" ref="ri_creditos_iibb_cf"/>
@@ -257,15 +249,15 @@
257249
258 <record model="account.account.template" id="ri_creditos_iibb_ba">250 <record model="account.account.template" id="ri_creditos_iibb_ba">
259 <field name="type">view</field>251 <field name="type">view</field>
260 <field name="code">1144009901*</field>252 <field name="code">114320</field>
261 <field name="user_type" ref="account.data_account_type_view"/>253 <field name="user_type" ref="account.data_account_type_view"/>
262 <field name="name">INGRESOS BRUTOS PROV. BUENOS AIRES</field>254 <field name="name">INGRESOS BRUTOS PROV. BUENOS AIRES</field>
263 <field name="parent_id" ref="ri_creditos_iibb"/>255 <field name="parent_id" ref="ri_creditos_iibb"/>
264 </record>256 </record>
265257
266 <record model="account.account.template" id="ri_percepcion_iibb_ba">258 <record model="account.account.template" id="ri_percepcion_iibb_ba">
267 <field name="type">receivable</field>259 <field name="type">other</field>
268 <field name="code">114400990110</field>260 <field name="code">1143201</field>
269 <field name="user_type" ref="account.data_account_type_receivable"/>261 <field name="user_type" ref="account.data_account_type_receivable"/>
270 <field name="name">Percepciones ingresos brutos p. buenos aires</field>262 <field name="name">Percepciones ingresos brutos p. buenos aires</field>
271 <field name="parent_id" ref="ri_creditos_iibb_ba"/>263 <field name="parent_id" ref="ri_creditos_iibb_ba"/>
@@ -273,7 +265,7 @@
273265
274 <record model="account.account.template" id="ri_retencion_iibb_ba">266 <record model="account.account.template" id="ri_retencion_iibb_ba">
275 <field name="type">other</field>267 <field name="type">other</field>
276 <field name="code">114400990120</field>268 <field name="code">1143202</field>
277 <field name="user_type" ref="account.data_account_type_receivable"/>269 <field name="user_type" ref="account.data_account_type_receivable"/>
278 <field name="name">Retención ingresos brutos p. buenos aires</field>270 <field name="name">Retención ingresos brutos p. buenos aires</field>
279 <field name="parent_id" ref="ri_creditos_iibb_ba"/>271 <field name="parent_id" ref="ri_creditos_iibb_ba"/>
@@ -281,47 +273,47 @@
281273
282 <record model="account.account.template" id="ri_creditos_iibb_co">274 <record model="account.account.template" id="ri_creditos_iibb_co">
283 <field name="type">view</field>275 <field name="type">view</field>
284 <field name="code">1144009903*</field>276 <field name="code">114330</field>
285 <field name="user_type" ref="account.data_account_type_view"/>277 <field name="user_type" ref="account.data_account_type_view"/>
286 <field name="name">INGRESOS BRUTOS PROV. CORDOBA</field>278 <field name="name">INGRESOS BRUTOS PROV. CORDOBA</field>
287 <field name="parent_id" ref="ri_creditos_iibb"/>279 <field name="parent_id" ref="ri_creditos_iibb"/>
288 </record>280 </record>
289281
290 <record model="account.account.template" id="ri_percepcion_iibb_co">282 <record model="account.account.template" id="ri_percepcion_iibb_co">
291 <field name="type">receivable</field>283 <field name="type">other</field>
292 <field name="code">114400990310</field>284 <field name="code">1143301</field>
293 <field name="user_type" ref="account.data_account_type_receivable"/>285 <field name="user_type" ref="account.data_account_type_receivable"/>
294 <field name="name">Percepciones ingresos brutos p. córdoba</field>286 <field name="name">Percepciones ingresos brutos p. córdoba</field>
295 <field name="parent_id" ref="ri_creditos_iibb_co"/>287 <field name="parent_id" ref="ri_creditos_iibb_co"/>
296 </record>288 </record>
297289
298 <record model="account.account.template" id="ri_retencion_iibb_co">290 <record model="account.account.template" id="ri_retencion_iibb_co">
299 <field name="type">receivable</field>291 <field name="type">other</field>
300 <field name="code">114400990320</field>292 <field name="code">1143302</field>
301 <field name="user_type" ref="account.data_account_type_receivable"/>293 <field name="user_type" ref="account.data_account_type_receivable"/>
302 <field name="name">Retención ingresos brutos p. córdoba</field>294 <field name="name">Retención ingresos brutos p. córdoba</field>
303 <field name="parent_id" ref="ri_creditos_iibb_co"/>295 <field name="parent_id" ref="ri_creditos_iibb_co"/>
304 </record>296 </record>
305297
306 <record model="account.account.template" id="ri_creditos_iibb_sf">298 <record model="account.account.template" id="ri_creditos_iibb_sf">
307 <field name="type">view</field>299 <field name="type">other</field>
308 <field name="code">1144009912*</field>300 <field name="code">114340</field>
309 <field name="user_type" ref="account.data_account_type_view"/>301 <field name="user_type" ref="account.data_account_type_view"/>
310 <field name="name">INGRESOS BRUTOS PROV. SANTA FÉ</field>302 <field name="name">INGRESOS BRUTOS PROV. SANTA FÉ</field>
311 <field name="parent_id" ref="ri_creditos_iibb"/>303 <field name="parent_id" ref="ri_creditos_iibb"/>
312 </record>304 </record>
313305
314 <record model="account.account.template" id="ri_percepcion_iibb_sf">306 <record model="account.account.template" id="ri_percepcion_iibb_sf">
315 <field name="type">receivable</field>307 <field name="type">other</field>
316 <field name="code">114400991210</field>308 <field name="code">1143401</field>
317 <field name="user_type" ref="account.data_account_type_receivable"/>309 <field name="user_type" ref="account.data_account_type_receivable"/>
318 <field name="name">Percepciones ingresos brutos p. santa fé</field>310 <field name="name">Percepciones ingresos brutos p. santa fé</field>
319 <field name="parent_id" ref="ri_creditos_iibb_sf"/>311 <field name="parent_id" ref="ri_creditos_iibb_sf"/>
320 </record>312 </record>
321313
322 <record model="account.account.template" id="ri_retencion_iibb_sf">314 <record model="account.account.template" id="ri_retencion_iibb_sf">
323 <field name="type">receivable</field>315 <field name="type">other</field>
324 <field name="code">114400991220</field>316 <field name="code">1143402</field>
325 <field name="user_type" ref="account.data_account_type_receivable"/>317 <field name="user_type" ref="account.data_account_type_receivable"/>
326 <field name="name">Retención ingresos brutos p. santa fé</field>318 <field name="name">Retención ingresos brutos p. santa fé</field>
327 <field name="parent_id" ref="ri_creditos_iibb_sf"/>319 <field name="parent_id" ref="ri_creditos_iibb_sf"/>
@@ -329,31 +321,23 @@
329321
330 <record model="account.account.template" id="ri_bienes_de_cambio">322 <record model="account.account.template" id="ri_bienes_de_cambio">
331 <field name="type">view</field>323 <field name="type">view</field>
332 <field name="code">115*</field>324 <field name="code">115</field>
333 <field name="user_type" ref="account.data_account_type_view"/>325 <field name="user_type" ref="account.data_account_type_view"/>
334 <field name="name">BIENES DE CAMBIO</field>326 <field name="name">BIENES DE CAMBIO</field>
335 <field name="parent_id" ref="ri_activo_corriente"/>327 <field name="parent_id" ref="ri_activo_corriente"/>
336 </record>328 </record>
337329
338 <record model="account.account.template" id="ri_equipos">330 <record model="account.account.template" id="ri_mercaderia">
339 <field name="type">receivable</field>331 <field name="type">other</field>
340 <field name="code">11501</field>332 <field name="code">1150010</field>
341 <field name="user_type" ref="account.data_account_type_receivable"/>333 <field name="user_type" ref="account.data_account_type_asset"/>
342 <field name="name">Equipos</field>334 <field name="name">Mercaderia</field>
343 <field name="parent_id" ref="ri_bienes_de_cambio"/>
344 </record>
345
346 <record model="account.account.template" id="ri_equipos_en_demo">
347 <field name="type">receivable</field>
348 <field name="code">11502</field>
349 <field name="user_type" ref="account.data_account_type_receivable"/>
350 <field name="name">Equipos en Demo</field>
351 <field name="parent_id" ref="ri_bienes_de_cambio"/>335 <field name="parent_id" ref="ri_bienes_de_cambio"/>
352 </record>336 </record>
353337
354 <record model="account.account.template" id="ri_activo_no_corriente">338 <record model="account.account.template" id="ri_activo_no_corriente">
355 <field name="type">view</field>339 <field name="type">view</field>
356 <field name="code">12*</field>340 <field name="code">12</field>
357 <field name="user_type" ref="account.data_account_type_view"/>341 <field name="user_type" ref="account.data_account_type_view"/>
358 <field name="name">ACTIVO NO CORRIENTE</field>342 <field name="name">ACTIVO NO CORRIENTE</field>
359 <field name="parent_id" ref="ri_activo"/>343 <field name="parent_id" ref="ri_activo"/>
@@ -361,71 +345,71 @@
361345
362 <record model="account.account.template" id="ri_bienes_de_uso">346 <record model="account.account.template" id="ri_bienes_de_uso">
363 <field name="type">view</field>347 <field name="type">view</field>
364 <field name="code">124*</field>348 <field name="code">121</field>
365 <field name="user_type" ref="account.data_account_type_view"/>349 <field name="user_type" ref="account.data_account_type_view"/>
366 <field name="name">BIENES DE USO</field>350 <field name="name">BIENES DE USO</field>
367 <field name="parent_id" ref="ri_activo_no_corriente"/>351 <field name="parent_id" ref="ri_activo_no_corriente"/>
368 </record>352 </record>
369353
370 <record model="account.account.template" id="ri_equipos_de_computacion">354 <record model="account.account.template" id="ri_bienes_de_uso_2">
371 <field name="type">other</field>355 <field name="type">view</field>
372 <field name="code">12401</field>356 <field name="code">1211</field>
373 <field name="user_type" ref="account.data_account_type_view"/>357 <field name="user_type" ref="account.data_account_type_view"/>
374 <field name="name">Equipos computación</field>358 <field name="name">BIENES DE USO</field>
375 <field name="parent_id" ref="ri_bienes_de_uso"/>359 <field name="parent_id" ref="ri_bienes_de_uso"/>
376 </record>360 </record>
377361
378 <record model="account.account.template" id="ri_software">362 <record model="account.account.template" id="ri_maq_y_equipos">
379 <field name="type">other</field>363 <field name="type">other</field>
380 <field name="code">12402</field>364 <field name="code">1211010</field>
381 <field name="user_type" ref="account.data_account_type_asset"/>365 <field name="user_type" ref="account.data_account_type_view"/>
382 <field name="name">Software</field>366 <field name="name">Maquinarias y equipos</field>
383 <field name="parent_id" ref="ri_bienes_de_uso"/>367 <field name="parent_id" ref="ri_bienes_de_uso_2"/>
384 </record>368 </record>
385369
386 <record model="account.account.template" id="ri_instalaciones">370 <record model="account.account.template" id="ri_instalaciones">
387 <field name="type">other</field>371 <field name="type">other</field>
388 <field name="code">12403</field>372 <field name="code">1211020</field>
389 <field name="user_type" ref="account.data_account_type_asset"/>373 <field name="user_type" ref="account.data_account_type_asset"/>
390 <field name="name">Instalaciones</field>374 <field name="name">Instalaciones</field>
391 <field name="parent_id" ref="ri_bienes_de_uso"/>375 <field name="parent_id" ref="ri_bienes_de_uso_2"/>
392 </record>376 </record>
393377
394 <record model="account.account.template" id="ri_muebles_y_utiles">378 <record model="account.account.template" id="ri_muebles_y_utiles">
395 <field name="type">other</field>379 <field name="type">other</field>
396 <field name="code">12404</field>380 <field name="code">1211030</field>
397 <field name="user_type" ref="account.data_account_type_asset"/>381 <field name="user_type" ref="account.data_account_type_asset"/>
398 <field name="name">Muebles y útiles</field>382 <field name="name">Muebles y útiles</field>
399 <field name="parent_id" ref="ri_bienes_de_uso"/>383 <field name="parent_id" ref="ri_bienes_de_uso_2"/>
384 </record>
385
386 <record model="account.account.template" id="ri_rodados">
387 <field name="type">other</field>
388 <field name="code">1211040</field>
389 <field name="user_type" ref="account.data_account_type_asset"/>
390 <field name="name">Rodados</field>
391 <field name="parent_id" ref="ri_bienes_de_uso_2"/>
400 </record>392 </record>
401393
402 <record model="account.account.template" id="ri_amortizacion_acumulada_bs_uso">394 <record model="account.account.template" id="ri_amortizacion_acumulada_bs_uso">
403 <field name="type">view</field>395 <field name="type">view</field>
404 <field name="code">125*</field>396 <field name="code">1212</field>
405 <field name="user_type" ref="account.data_account_type_view"/>397 <field name="user_type" ref="account.data_account_type_view"/>
406 <field name="name">AMORTIZACIONES ACUMULADAS BIENES DE USO</field>398 <field name="name">AMORTIZACIONES ACUMULADAS BIENES DE USO</field>
407 <field name="parent_id" ref="ri_activo_no_corriente"/>399 <field name="parent_id" ref="ri_bienes_de_uso"/>
408 </record>400 </record>
409401
410 <record model="account.account.template" id="ri_amortizacion_acumulada_computacion">402 <record model="account.account.template" id="ri_amortizacion_acumulada_maq_y_equipos">
411 <field name="type">other</field>403 <field name="type">other</field>
412 <field name="code">12501</field>404 <field name="code">1212010</field>
413 <field name="user_type" ref="account.data_account_type_asset"/>405 <field name="user_type" ref="account.data_account_type_asset"/>
414 <field name="name">Amortización acumulada equipos computación</field>406 <field name="name">Amortización acumulada maquinarias y equipos</field>
415 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>
416 </record>
417
418 <record model="account.account.template" id="ri_amortizacion_acumulada_software">
419 <field name="type">other</field>
420 <field name="code">12502</field>
421 <field name="user_type" ref="account.data_account_type_asset"/>
422 <field name="name">Amortización acumulada software</field>
423 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>407 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>
424 </record>408 </record>
425409
426 <record model="account.account.template" id="ri_amortizacion_acumulada_instalaciones">410 <record model="account.account.template" id="ri_amortizacion_acumulada_instalaciones">
427 <field name="type">other</field>411 <field name="type">other</field>
428 <field name="code">12503</field>412 <field name="code">1212020</field>
429 <field name="user_type" ref="account.data_account_type_asset"/>413 <field name="user_type" ref="account.data_account_type_asset"/>
430 <field name="name">Amortización acumulada instalaciones</field>414 <field name="name">Amortización acumulada instalaciones</field>
431 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>415 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>
@@ -433,15 +417,47 @@
433417
434 <record model="account.account.template" id="ri_amortizacion_acumulada_muebles_utiles">418 <record model="account.account.template" id="ri_amortizacion_acumulada_muebles_utiles">
435 <field name="type">other</field>419 <field name="type">other</field>
436 <field name="code">12504</field>420 <field name="code">1212030</field>
437 <field name="user_type" ref="account.data_account_type_asset"/>421 <field name="user_type" ref="account.data_account_type_asset"/>
438 <field name="name">Amortización acumulada muebles y útiles</field>422 <field name="name">Amortización acumulada muebles y útiles</field>
439 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>423 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>
440 </record>424 </record>
441425
426 <record model="account.account.template" id="ri_amortizacion_acumulada_rodados">
427 <field name="type">other</field>
428 <field name="code">1212040</field>
429 <field name="user_type" ref="account.data_account_type_asset"/>
430 <field name="name">Amortización rodados</field>
431 <field name="parent_id" ref="ri_amortizacion_acumulada_bs_uso"/>
432 </record>
433
434 <record model="account.account.template" id="ri_intangibles">
435 <field name="type">view</field>
436 <field name="code">122</field>
437 <field name="user_type" ref="account.data_account_type_view"/>
438 <field name="name">INTANGIBLES</field>
439 <field name="parent_id" ref="ri_activo_no_corriente"/>
440 </record>
441
442 <record model="account.account.template" id="ri_software">
443 <field name="type">other</field>
444 <field name="code">1221010</field>
445 <field name="user_type" ref="account.data_account_type_asset"/>
446 <field name="name">Software</field>
447 <field name="parent_id" ref="ri_intangibles"/>
448 </record>
449
450 <record model="account.account.template" id="ri_gastos_de_construccion">
451 <field name="type">other</field>
452 <field name="code">1221020</field>
453 <field name="user_type" ref="account.data_account_type_asset"/>
454 <field name="name">Gastos de construccion</field>
455 <field name="parent_id" ref="ri_intangibles"/>
456 </record>
457
442 <record model="account.account.template" id="ri_pasivo">458 <record model="account.account.template" id="ri_pasivo">
443 <field name="type">view</field>459 <field name="type">view</field>
444 <field name="code">2*</field>460 <field name="code">2</field>
445 <field name="user_type" ref="account.data_account_type_view"/>461 <field name="user_type" ref="account.data_account_type_view"/>
446 <field name="name">PASIVO</field>462 <field name="name">PASIVO</field>
447 <field name="parent_id" ref="ri_a_root"/>463 <field name="parent_id" ref="ri_a_root"/>
@@ -449,7 +465,7 @@
449465
450 <record model="account.account.template" id="ri_pasivo_corriente">466 <record model="account.account.template" id="ri_pasivo_corriente">
451 <field name="type">view</field>467 <field name="type">view</field>
452 <field name="code">21*</field>468 <field name="code">21</field>
453 <field name="user_type" ref="account.data_account_type_view"/>469 <field name="user_type" ref="account.data_account_type_view"/>
454 <field name="name">PASIVO CORRIENTE</field>470 <field name="name">PASIVO CORRIENTE</field>
455 <field name="parent_id" ref="ri_pasivo"/>471 <field name="parent_id" ref="ri_pasivo"/>
@@ -457,7 +473,7 @@
457473
458 <record model="account.account.template" id="ri_deudas_sociales">474 <record model="account.account.template" id="ri_deudas_sociales">
459 <field name="type">view</field>475 <field name="type">view</field>
460 <field name="code">211*</field>476 <field name="code">211</field>
461 <field name="user_type" ref="account.data_account_type_view"/>477 <field name="user_type" ref="account.data_account_type_view"/>
462 <field name="name">DEUDAS SOCIALES</field>478 <field name="name">DEUDAS SOCIALES</field>
463 <field name="parent_id" ref="ri_pasivo_corriente"/>479 <field name="parent_id" ref="ri_pasivo_corriente"/>
@@ -465,47 +481,55 @@
465481
466 <record model="account.account.template" id="ri_sueldos_a_pagar">482 <record model="account.account.template" id="ri_sueldos_a_pagar">
467 <field name="type">payable</field>483 <field name="type">payable</field>
468 <field name="code">21101</field>484 <field name="code">2110010</field>
469 <field name="user_type" ref="account.data_account_type_payable"/>485 <field name="user_type" ref="account.data_account_type_payable"/>
470 <field name="name">Sueldos a pagar</field>486 <field name="name">Sueldos a pagar</field>
471 <field name="parent_id" ref="ri_deudas_sociales"/>487 <field name="parent_id" ref="ri_deudas_sociales"/>
472 </record>488 </record>
473489
474 <record model="account.account.template" id="ri_cargas_sociales_a_pagar">490 <record model="account.account.template" id="ri_cargas_sociales_a_pagar">
475 <field name="type">payable</field>491 <field name="type">other</field>
476 <field name="code">21102</field>492 <field name="code">2110020</field>
477 <field name="user_type" ref="account.data_account_type_payable"/>493 <field name="user_type" ref="account.data_account_type_payable"/>
478 <field name="name">Cargas sociales a pagar</field>494 <field name="name">Cargas sociales a pagar</field>
479 <field name="parent_id" ref="ri_deudas_sociales"/>495 <field name="parent_id" ref="ri_deudas_sociales"/>
480 </record>496 </record>
481497
482 <record model="account.account.template" id="ri_provision_sac_a_pagar">498 <record model="account.account.template" id="ri_provision_sac_a_pagar">
483 <field name="type">payable</field>499 <field name="type">other</field>
484 <field name="code">21103</field>500 <field name="code">2110030</field>
485 <field name="user_type" ref="account.data_account_type_payable"/>501 <field name="user_type" ref="account.data_account_type_payable"/>
486 <field name="name">Provision SAC a pagar</field>502 <field name="name">Prevision SAC a pagar</field>
487 <field name="parent_id" ref="ri_deudas_sociales"/>503 <field name="parent_id" ref="ri_deudas_sociales"/>
488 </record>504 </record>
489505
490 <record model="account.account.template" id="ri_provision_sac_cargas_sociales">506 <record model="account.account.template" id="ri_provision_sac_cargas_sociales">
507 <field name="type">other</field>
508 <field name="code">2110040</field>
509 <field name="user_type" ref="account.data_account_type_payable"/>
510 <field name="name">Prevision cargas sociales a pagar</field>
511 <field name="parent_id" ref="ri_deudas_sociales"/>
512 </record>
513
514 <record model="account.account.template" id="ri_comisiones_a_pagar">
491 <field name="type">payable</field>515 <field name="type">payable</field>
492 <field name="code">21104</field>516 <field name="code">2110050</field>
493 <field name="user_type" ref="account.data_account_type_payable"/>517 <field name="user_type" ref="account.data_account_type_payable"/>
494 <field name="name">Provision SAC cargas sociales a pagar</field>518 <field name="name">Comisiones a pagar</field>
495 <field name="parent_id" ref="ri_deudas_sociales"/>519 <field name="parent_id" ref="ri_deudas_sociales"/>
496 </record>520 </record>
497521
498 <record model="account.account.template" id="ri_beneficios_al_personal">522 <record model="account.account.template" id="ri_beneficios_al_personal">
499 <field name="type">payable</field>523 <field name="type">other</field>
500 <field name="code">21105</field>524 <field name="code">2110060</field>
501 <field name="user_type" ref="account.data_account_type_payable"/>525 <field name="user_type" ref="account.data_account_type_payable"/>
502 <field name="name">Beneficios al personal</field>526 <field name="name">Beneficios al personal</field>
503 <field name="parent_id" ref="ri_deudas_sociales"/>527 <field name="parent_id" ref="ri_deudas_sociales"/>
504 </record>528 </record>
505529
506 <record model="account.account.template" id="ri_prevision_despidos">530 <record model="account.account.template" id="ri_prevision_despidos">
507 <field name="type">payable</field>531 <field name="type">other</field>
508 <field name="code">21106</field>532 <field name="code">2110070</field>
509 <field name="user_type" ref="account.data_account_type_payable"/>533 <field name="user_type" ref="account.data_account_type_payable"/>
510 <field name="name">Previsión Despidos</field>534 <field name="name">Previsión Despidos</field>
511 <field name="parent_id" ref="ri_deudas_sociales"/>535 <field name="parent_id" ref="ri_deudas_sociales"/>
@@ -513,7 +537,7 @@
513537
514 <record model="account.account.template" id="ri_deudas_fiscales">538 <record model="account.account.template" id="ri_deudas_fiscales">
515 <field name="type">view</field>539 <field name="type">view</field>
516 <field name="code">212*</field>540 <field name="code">212</field>
517 <field name="user_type" ref="account.data_account_type_view"/>541 <field name="user_type" ref="account.data_account_type_view"/>
518 <field name="name">DEUDAS FISCALES</field>542 <field name="name">DEUDAS FISCALES</field>
519 <field name="parent_id" ref="ri_pasivo_corriente"/>543 <field name="parent_id" ref="ri_pasivo_corriente"/>
@@ -521,7 +545,7 @@
521545
522 <record model="account.account.template" id="ri_iibb_a_pagar">546 <record model="account.account.template" id="ri_iibb_a_pagar">
523 <field name="type">other</field>547 <field name="type">other</field>
524 <field name="code">21201</field>548 <field name="code">2120010</field>
525 <field name="user_type" ref="account.data_account_type_payable"/>549 <field name="user_type" ref="account.data_account_type_payable"/>
526 <field name="name">Ingresos brutos a pagar</field>550 <field name="name">Ingresos brutos a pagar</field>
527 <field name="parent_id" ref="ri_deudas_fiscales"/>551 <field name="parent_id" ref="ri_deudas_fiscales"/>
@@ -529,7 +553,7 @@
529553
530 <record model="account.account.template" id="ri_iva_debito_fiscal">554 <record model="account.account.template" id="ri_iva_debito_fiscal">
531 <field name="type">other</field>555 <field name="type">other</field>
532 <field name="code">21202</field>556 <field name="code">2120020</field>
533 <field name="user_type" ref="account.data_account_type_payable"/>557 <field name="user_type" ref="account.data_account_type_payable"/>
534 <field name="name">IVA débito fiscal</field>558 <field name="name">IVA débito fiscal</field>
535 <field name="parent_id" ref="ri_deudas_fiscales"/>559 <field name="parent_id" ref="ri_deudas_fiscales"/>
@@ -537,71 +561,184 @@
537561
538 <record model="account.account.template" id="ri_iva_a_pagar">562 <record model="account.account.template" id="ri_iva_a_pagar">
539 <field name="type">other</field>563 <field name="type">other</field>
540 <field name="code">21203</field>564 <field name="code">2120030</field>
541 <field name="user_type" ref="account.data_account_type_payable"/>565 <field name="user_type" ref="account.data_account_type_payable"/>
542 <field name="name">IVA a pagar</field>566 <field name="name">IVA saldo a pagar</field>
543 <field name="parent_id" ref="ri_deudas_fiscales"/>567 <field name="parent_id" ref="ri_deudas_fiscales"/>
544 </record>568 </record>
545569
546 <record model="account.account.template" id="ri_retencion_ganancias_a_depositar">570 <record model="account.account.template" id="ri_impuesto_ganancias_a_pagar">
547 <field name="type">other</field>571 <field name="type">other</field>
548 <field name="code">21204</field>572 <field name="code">2120040</field>
549 <field name="user_type" ref="account.data_account_type_payable"/>573 <field name="user_type" ref="account.data_account_type_payable"/>
550 <field name="name">Retención ganancias a depositar</field>574 <field name="name">Impuesto a las ganancias a pagar</field>
551 <field name="parent_id" ref="ri_deudas_fiscales"/>575 <field name="parent_id" ref="ri_deudas_fiscales"/>
552 </record>576 </record>
553577
554 <record model="account.account.template" id="ri_provision_impuesto_a_las_ganancias">578 <record model="account.account.template" id="ri_retencion_ganancias_a_pagar">
555 <field name="type">other</field>579 <field name="type">other</field>
556 <field name="code">21205</field>580 <field name="code">2120050</field>
557 <field name="user_type" ref="account.data_account_type_payable"/>581 <field name="user_type" ref="account.data_account_type_payable"/>
558 <field name="name">Provision impuesto a las ganancias</field>582 <field name="name">Retención ganancias a pagar</field>
583 <field name="parent_id" ref="ri_deudas_fiscales"/>
584 </record>
585
586 <record model="account.account.template" id="ri_autonomos_a_pagar">
587 <field name="type">other</field>
588 <field name="code">2120060</field>
589 <field name="user_type" ref="account.data_account_type_payable"/>
590 <field name="name">Autonomos a pagar</field>
591 <field name="parent_id" ref="ri_deudas_fiscales"/>
592 </record>
593
594 <record model="account.account.template" id="ri_retenciones_varias_a_pagar">
595 <field name="type">other</field>
596 <field name="code">2120070</field>
597 <field name="user_type" ref="account.data_account_type_payable"/>
598 <field name="name">Retenciones varias a pagar</field>
599 <field name="parent_id" ref="ri_deudas_fiscales"/>
600 </record>
601
602 <record model="account.account.template" id="ri_drei_a_pagar">
603 <field name="type">other</field>
604 <field name="code">2120080</field>
605 <field name="user_type" ref="account.data_account_type_payable"/>
606 <field name="name">DREI a pagar</field>
559 <field name="parent_id" ref="ri_deudas_fiscales"/>607 <field name="parent_id" ref="ri_deudas_fiscales"/>
560 </record>608 </record>
561609
562 <record model="account.account.template" id="ri_deudas_comerciales">610 <record model="account.account.template" id="ri_deudas_comerciales">
563 <field name="type">view</field>611 <field name="type">view</field>
564 <field name="code">213*</field>612 <field name="code">213</field>
565 <field name="user_type" ref="account.data_account_type_view"/>613 <field name="user_type" ref="account.data_account_type_view"/>
566 <field name="name">DEUDAS COMERCIALES</field>614 <field name="name">DEUDAS COMERCIALES</field>
567 <field name="parent_id" ref="ri_pasivo_corriente"/>615 <field name="parent_id" ref="ri_pasivo_corriente"/>
568 </record>616 </record>
569617
618 <record model="account.account.template" id="ri_comunes">
619 <field name="type">view</field>
620 <field name="code">2131</field>
621 <field name="user_type" ref="account.data_account_type_view"/>
622 <field name="name">COMUNES</field>
623 <field name="parent_id" ref="ri_deudas_comerciales"/>
624 </record>
625
570 <record model="account.account.template" id="ri_pago_proveedores">626 <record model="account.account.template" id="ri_pago_proveedores">
571 <field name="type">payable</field>627 <field name="type">payable</field>
572 <field name="code">21301</field>628 <field name="code">2131010</field>
573 <field name="user_type" ref="account.data_account_type_payable"/>629 <field name="user_type" ref="account.data_account_type_payable"/>
574 <field name="name">Proveedores</field>630 <field name="name">Proveedores</field>
575 <field name="parent_id" ref="ri_deudas_comerciales"/>631 <field name="parent_id" ref="ri_comunes"/>
576 </record>632 <field name="reconcile" eval="True"/>
577633 </record>
578 <record model="account.account.template" id="ri_anticipos_de_clientes">634
579 <field name="type">payable</field>635 <record model="account.account.template" id="ri_alquileres_a_pagar">
580 <field name="code">21302</field>636 <field name="type">payable</field>
581 <field name="user_type" ref="account.data_account_type_payable"/>637 <field name="code">2131020</field>
582 <field name="name">Anticipos de clientes</field>638 <field name="user_type" ref="account.data_account_type_payable"/>
583 <field name="parent_id" ref="ri_deudas_comerciales"/>639 <field name="name">Alquileres a pagar</field>
640 <field name="parent_id" ref="ri_comunes"/>
641 </record>
642
643 <record model="account.account.template" id="ri_pago_proveedores">
644 <field name="type">payable</field>
645 <field name="code">2131010</field>
646 <field name="user_type" ref="account.data_account_type_payable"/>
647 <field name="name">Acreedores varios</field>
648 <field name="parent_id" ref="ri_comunes"/>
649 </record>
650
651 <record model="account.account.template" id="ri_documentadas">
652 <field name="type">view</field>
653 <field name="code">2132</field>
654 <field name="user_type" ref="account.data_account_type_view"/>
655 <field name="name">DOCUMENTADAS</field>
656 <field name="parent_id" ref="ri_deudas_comerciales"/>
657 </record>
658
659 <record model="account.account.template" id="ri_cheques_diferidos">
660 <field name="type">other</field>
661 <field name="code">2132010</field>
662 <field name="user_type" ref="account.data_account_type_payable"/>
663 <field name="name">Cheques diferidos</field>
664 <field name="parent_id" ref="ri_documentadas"/>
665 </record>
666
667 <record model="account.account.template" id="ri_otras_deudas_documentadas">
668 <field name="type">other</field>
669 <field name="code">2132020</field>
670 <field name="user_type" ref="account.data_account_type_payable"/>
671 <field name="name">Otras deudas documentadas</field>
672 <field name="parent_id" ref="ri_documentadas"/>
673 </record>
674
675 <record model="account.account.template" id="ri_bancarias">
676 <field name="type">view</field>
677 <field name="code">214</field>
678 <field name="user_type" ref="account.data_account_type_view"/>
679 <field name="name">BANCARIAS</field>
680 <field name="parent_id" ref="ri_pasivo_corriente"/>
681 </record>
682
683 <record model="account.account.template" id="ri_tarjetas_de_credito">
684 <field name="type">other</field>
685 <field name="code">2140010</field>
686 <field name="user_type" ref="account.data_account_type_payable"/>
687 <field name="name">Tarjetas de crédito</field>
688 <field name="parent_id" ref="ri_bancarias"/>
689 </record>
690
691 <record model="account.account.template" id="ri_prestamos">
692 <field name="type">other</field>
693 <field name="code">2140020</field>
694 <field name="user_type" ref="account.data_account_type_payable"/>
695 <field name="name">Prestamos</field>
696 <field name="parent_id" ref="ri_bancarias"/>
697 </record>
698
699 <record model="account.account.template" id="ri_giro_en_descubierto">
700 <field name="type">other</field>
701 <field name="code">2140030</field>
702 <field name="user_type" ref="account.data_account_type_payable"/>
703 <field name="name">Giro en descubierto</field>
704 <field name="parent_id" ref="ri_bancarias"/>
584 </record>705 </record>
585706
586 <record model="account.account.template" id="ri_provisiones_varias">707 <record model="account.account.template" id="ri_provisiones_varias">
587 <field name="type">view</field>708 <field name="type">view</field>
588 <field name="code">214*</field>709 <field name="code">215</field>
589 <field name="user_type" ref="account.data_account_type_view"/>710 <field name="user_type" ref="account.data_account_type_view"/>
590 <field name="name">PROVISIONES VARIAS</field>711 <field name="name">PREVISIONES VARIAS</field>
591 <field name="parent_id" ref="ri_pasivo_corriente"/>712 <field name="parent_id" ref="ri_pasivo_corriente"/>
592 </record>713 </record>
593714
594 <record model="account.account.template" id="ri_provision_gastos">715 <record model="account.account.template" id="ri_provision_gastos">
595 <field name="type">payable</field>716 <field name="type">other</field>
596 <field name="code">21401</field>717 <field name="code">2150010</field>
597 <field name="user_type" ref="account.data_account_type_payable"/>718 <field name="user_type" ref="account.data_account_type_payable"/>
598 <field name="name">Provision gastos</field>719 <field name="name">Prevision gastos</field>
720 <field name="parent_id" ref="ri_provisiones_varias"/>
721 </record>
722
723 <record model="account.account.template" id="ri_cuentas_particulares">
724 <field name="type">view</field>
725 <field name="code">216</field>
726 <field name="user_type" ref="account.data_account_type_view"/>
727 <field name="name">CUENTAS PARTICULARES</field>
599 <field name="parent_id" ref="ri_pasivo_corriente"/>728 <field name="parent_id" ref="ri_pasivo_corriente"/>
600 </record>729 </record>
601730
731 <record model="account.account.template" id="ri_cta_particular_socio_x">
732 <field name="type">other</field>
733 <field name="code">2160010</field>
734 <field name="user_type" ref="account.data_account_type_payable"/>
735 <field name="name">Cta particular socio x</field>
736 <field name="parent_id" ref="ri_cuentas_particulares"/>
737 </record>
738
602 <record model="account.account.template" id="ri_pasivo_no_corriente">739 <record model="account.account.template" id="ri_pasivo_no_corriente">
603 <field name="type">view</field>740 <field name="type">view</field>
604 <field name="code">22*</field>741 <field name="code">22</field>
605 <field name="user_type" ref="account.data_account_type_view"/>742 <field name="user_type" ref="account.data_account_type_view"/>
606 <field name="name">PASIVO NO CORRIENTE</field>743 <field name="name">PASIVO NO CORRIENTE</field>
607 <field name="parent_id" ref="ri_pasivo"/>744 <field name="parent_id" ref="ri_pasivo"/>
@@ -609,15 +746,15 @@
609746
610 <record model="account.account.template" id="ri_deudas_comerciales_largo_plazo">747 <record model="account.account.template" id="ri_deudas_comerciales_largo_plazo">
611 <field name="type">view</field>748 <field name="type">view</field>
612 <field name="code">221*</field>749 <field name="code">221</field>
613 <field name="user_type" ref="account.data_account_type_view"/>750 <field name="user_type" ref="account.data_account_type_view"/>
614 <field name="name">DEUDAS COMERCIALES A LARGO PLAZO</field>751 <field name="name">DEUDAS COMERCIALES A LARGO PLAZO</field>
615 <field name="parent_id" ref="ri_pasivo_no_corriente"/>752 <field name="parent_id" ref="ri_pasivo_no_corriente"/>
616 </record>753 </record>
617754
618 <record model="account.account.template" id="ri_proveedores_largo_plazo">755 <record model="account.account.template" id="ri_proveedores_largo_plazo">
619 <field name="type">payable</field>756 <field name="type">other</field>
620 <field name="code">22101</field>757 <field name="code">2210010</field>
621 <field name="user_type" ref="account.data_account_type_payable"/>758 <field name="user_type" ref="account.data_account_type_payable"/>
622 <field name="name">Deudas proveedores a largo plazo</field>759 <field name="name">Deudas proveedores a largo plazo</field>
623 <field name="parent_id" ref="ri_deudas_comerciales_largo_plazo"/>760 <field name="parent_id" ref="ri_deudas_comerciales_largo_plazo"/>
@@ -625,15 +762,31 @@
625762
626 <record model="account.account.template" id="ri_otras_deudas">763 <record model="account.account.template" id="ri_otras_deudas">
627 <field name="type">view</field>764 <field name="type">view</field>
628 <field name="code">222*</field>765 <field name="code">222</field>
629 <field name="user_type" ref="account.data_account_type_view"/>766 <field name="user_type" ref="account.data_account_type_view"/>
630 <field name="name">OTRAS DEUDAS</field>767 <field name="name">OTRAS DEUDAS</field>
631 <field name="parent_id" ref="ri_pasivo_no_corriente"/>768 <field name="parent_id" ref="ri_pasivo_no_corriente"/>
632 </record>769 </record>
633770
771 <record model="account.account.template" id="ri_seguros_a_pagar">
772 <field name="type">other</field>
773 <field name="code">2220010</field>
774 <field name="user_type" ref="account.data_account_type_payable"/>
775 <field name="name">Seguros a pagar</field>
776 <field name="parent_id" ref="ri_otras_deudas"/>
777 </record>
778
779 <record model="account.account.template" id="ri_gastos_a_pagar">
780 <field name="type">other</field>
781 <field name="code">2220020</field>
782 <field name="user_type" ref="account.data_account_type_payable"/>
783 <field name="name">Gastos a pagar</field>
784 <field name="parent_id" ref="ri_otras_deudas"/>
785 </record>
786
634 <record model="account.account.template" id="ri_deudas_misc">787 <record model="account.account.template" id="ri_deudas_misc">
635 <field name="type">payable</field>788 <field name="type">other</field>
636 <field name="code">22201</field>789 <field name="code">2220030</field>
637 <field name="user_type" ref="account.data_account_type_payable"/>790 <field name="user_type" ref="account.data_account_type_payable"/>
638 <field name="name">Deudas misc</field>791 <field name="name">Deudas misc</field>
639 <field name="parent_id" ref="ri_otras_deudas"/>792 <field name="parent_id" ref="ri_otras_deudas"/>
@@ -641,55 +794,135 @@
641794
642 <record model="account.account.template" id="ri_patrimonio_neto">795 <record model="account.account.template" id="ri_patrimonio_neto">
643 <field name="type">view</field>796 <field name="type">view</field>
644 <field name="code">3*</field>797 <field name="code">3</field>
645 <field name="user_type" ref="account.data_account_type_view"/>798 <field name="user_type" ref="account.data_account_type_view"/>
646 <field name="name">PATRIMONIO NETO</field>799 <field name="name">PATRIMONIO NETO</field>
647 <field name="parent_id" ref="ri_a_root"/>800 <field name="parent_id" ref="ri_a_root"/>
648 </record>801 </record>
649802
803 <record model="account.account.template" id="ri_aportes_de_los_propietarios">
804 <field name="type">view</field>
805 <field name="code">31</field>
806 <field name="user_type" ref="account.data_account_type_view"/>
807 <field name="name">APORTES DE LOS PROPIETARIOS</field>
808 <field name="parent_id" ref="ri_patrimonio_neto"/>
809 </record>
810
811 <record model="account.account.template" id="ri_capital_social">
812 <field name="type">view</field>
813 <field name="code">311</field>
814 <field name="user_type" ref="account.data_account_type_view"/>
815 <field name="name">CAPITAL SOCIAL</field>
816 <field name="parent_id" ref="ri_aportes_de_los_propietarios"/>
817 </record>
818
650 <record model="account.account.template" id="ri_capital">819 <record model="account.account.template" id="ri_capital">
651 <field name="type">other</field>820 <field name="type">other</field>
652 <field name="code">31000</field>821 <field name="code">3110010</field>
653 <field name="user_type" ref="account.data_account_type_cash"/>822 <field name="user_type" ref="account.conf_account_type_equity"/>
654 <field name="name">Capital</field>823 <field name="name">Capital susctipto</field>
655 <field name="parent_id" ref="ri_patrimonio_neto"/>824 <field name="parent_id" ref="ri_capital_social"/>
656 </record>825 </record>
657826
658 <record model="account.account.template" id="ri_aporte_irrevocable">827 <record model="account.account.template" id="ri_ajustes_de_capital">
659 <field name="type">other</field>828 <field name="type">view</field>
660 <field name="code">32000</field>829 <field name="code">312</field>
661 <field name="user_type" ref="account.data_account_type_cash"/>830 <field name="user_type" ref="account.data_account_type_view"/>
662 <field name="name">Aporte irrevocable </field>831 <field name="name">AJUSTES DE CAPITAL</field>
663 <field name="parent_id" ref="ri_patrimonio_neto"/>832 <field name="parent_id" ref="ri_aportes_de_los_propietarios"/>
664 </record>833 </record>
834
835 <record model="account.account.template" id="ri_ajustes_de_capital_2">
836 <field name="type">other</field>
837 <field name="code">3120010</field>
838 <field name="user_type" ref="account.conf_account_type_equity"/>
839 <field name="name">Capital susctipto</field>
840 <field name="parent_id" ref="ri_ajustes_de_capital"/>
841 </record>
842
843 <record model="account.account.template" id="ri_aportes_no_capitalizados">
844 <field name="type">view</field>
845 <field name="code">313</field>
846 <field name="user_type" ref="account.data_account_type_view"/>
847 <field name="name">APORTES NO CAPITALIZADOS</field>
848 <field name="parent_id" ref="ri_aportes_de_los_propietarios"/>
849 </record>
850
851 <record model="account.account.template" id="ri_aportes_no_capitalizados_2">
852 <field name="type">other</field>
853 <field name="code">3130010</field>
854 <field name="user_type" ref="account.conf_account_type_equity"/>
855 <field name="name">Aportes no capitalizados</field>
856 <field name="parent_id" ref="ri_aportes_no_capitalizados"/>
857 </record>
858
859 <record model="account.account.template" id="ri_ganancias_reservadas">
860 <field name="type">view</field>
861 <field name="code">32</field>
862 <field name="user_type" ref="account.data_account_type_view"/>
863 <field name="name">GANANCIAS RESERVADAS</field>
864 <field name="parent_id" ref="ri_patrimonio_neto"/>
865 </record>
665866
666 <record model="account.account.template" id="ri_reserva_legal">867 <record model="account.account.template" id="ri_reserva_legal">
667 <field name="type">other</field>868 <field name="type">other</field>
668 <field name="code">33000</field>869 <field name="code">3200010</field>
669 <field name="user_type" ref="account.data_account_type_cash"/>870 <field name="user_type" ref="account.conf_account_type_equity"/>
670 <field name="name">Reserva legal</field>871 <field name="name">Reserva legal</field>
872 <field name="parent_id" ref="ri_ganancias_reservadas"/>
873 </record>
874
875 <record model="account.account.template" id="ri_reserva_legal">
876 <field name="type">other</field>
877 <field name="code">3200020</field>
878 <field name="user_type" ref="account.conf_account_type_equity"/>
879 <field name="name">Reserva estatuitaria</field>
880 <field name="parent_id" ref="ri_ganancias_reservadas"/>
881 </record>
882
883 <record model="account.account.template" id="ri_reserva_legal">
884 <field name="type">other</field>
885 <field name="code">3200030</field>
886 <field name="user_type" ref="account.conf_account_type_equity"/>
887 <field name="name">Reserva futuras inversiones</field>
888 <field name="parent_id" ref="ri_ganancias_reservadas"/>
889 </record>
890
891 <record model="account.account.template" id="ri_resultados">
892 <field name="type">view</field>
893 <field name="code">33</field>
894 <field name="user_type" ref="account.data_account_type_view"/>
895 <field name="name">RESULTADOS</field>
671 <field name="parent_id" ref="ri_patrimonio_neto"/>896 <field name="parent_id" ref="ri_patrimonio_neto"/>
897 </record>
898
899 <record model="account.account.template" id="ri_resultado_del_ejercicio">
900 <field name="type">other</field>
901 <field name="code">3300010</field>
902 <field name="user_type" ref="account.conf_account_type_equity"/>
903 <field name="name">Resultado del ejercicio</field>
904 <field name="parent_id" ref="ri_resultados"/>
905 </record>
906
907 <record model="account.account.template" id="ri_resultado_del_ejercicio">
908 <field name="type">other</field>
909 <field name="code">3300020</field>
910 <field name="user_type" ref="account.conf_account_type_equity"/>
911 <field name="name">Resultado acumlados</field>
912 <field name="parent_id" ref="ri_resultados"/>
672 </record>913 </record>
673914
674 <record model="account.account.template" id="ri_resultados_no_asignados">915 <record model="account.account.template" id="ri_resultados_no_asignados">
675 <field name="type">other</field>916 <field name="type">other</field>
676 <field name="code">34000</field>917 <field name="code">3300030</field>
677 <field name="user_type" ref="account.data_account_type_cash"/>918 <field name="user_type" ref="account.conf_account_type_equity"/>
678 <field name="name">Resultados no asignados</field>919 <field name="name">Ajuste resultados ejercicios anteriores</field>
679 <field name="parent_id" ref="ri_patrimonio_neto"/>920 <field name="parent_id" ref="ri_resultados"/>
680 </record>
681
682 <record model="account.account.template" id="ri_resultado_del_ejercicio">
683 <field name="type">other</field>
684 <field name="code">35000</field>
685 <field name="user_type" ref="account.data_account_type_cash"/>
686 <field name="name">Resultado del ejercicio</field>
687 <field name="parent_id" ref="ri_patrimonio_neto"/>
688 </record>921 </record>
689922
690 <record model="account.account.template" id='ri_ingresos'>923 <record model="account.account.template" id='ri_ingresos'>
691 <field name="type">view</field>924 <field name="type">view</field>
692 <field name="code">4*</field>925 <field name="code">4</field>
693 <field name="user_type" ref="account.data_account_type_view"/>926 <field name="user_type" ref="account.data_account_type_view"/>
694 <field name="name">INGRESOS</field>927 <field name="name">INGRESOS</field>
695 <field name="parent_id" ref="ri_a_root"/>928 <field name="parent_id" ref="ri_a_root"/>
@@ -697,7 +930,7 @@
697930
698 <record model="account.account.template" id="ri_ingresos_operativos">931 <record model="account.account.template" id="ri_ingresos_operativos">
699 <field name="type">view</field>932 <field name="type">view</field>
700 <field name="code">41*</field>933 <field name="code">41</field>
701 <field name="user_type" ref="account.data_account_type_view"/>934 <field name="user_type" ref="account.data_account_type_view"/>
702 <field name="name">INGRESOS OPERATIVOS</field>935 <field name="name">INGRESOS OPERATIVOS</field>
703 <field name="parent_id" ref="ri_ingresos"/>936 <field name="parent_id" ref="ri_ingresos"/>
@@ -705,31 +938,23 @@
705938
706 <record model="account.account.template" id="ri_ventas">939 <record model="account.account.template" id="ri_ventas">
707 <field name="type">view</field>940 <field name="type">view</field>
708 <field name="code">411*</field>941 <field name="code">411</field>
709 <field name="user_type" ref="account.data_account_type_view"/>942 <field name="user_type" ref="account.data_account_type_view"/>
710 <field name="name">VENTAS</field>943 <field name="name">INGRESOS POR VENTAS</field>
711 <field name="parent_id" ref="ri_ingresos_operativos"/>944 <field name="parent_id" ref="ri_ingresos_operativos"/>
712 </record>945 </record>
713946
714 <record model="account.account.template" id="ri_ingresos_ventas">947 <record model="account.account.template" id="ri_venta_de_mercaderia">
715 <field name="type">other</field>948 <field name="type">other</field>
716 <field name="code">41100</field>949 <field name="code">4110010</field>
717 <field name="user_type" ref="account.data_account_type_income"/>950 <field name="user_type" ref="account.data_account_type_income"/>
718 <field name="name">Ingresos por ventas</field>951 <field name="name">Venta de mercaderia</field>
719 <field name="parent_id" ref="ri_ventas"/>
720 </record>
721
722 <record model="account.account.template" id="ri_venta_de_equipos">
723 <field name="type">other</field>
724 <field name="code">41101</field>
725 <field name="user_type" ref="account.data_account_type_income"/>
726 <field name="name">Venta de equipos</field>
727 <field name="parent_id" ref="ri_ventas"/>952 <field name="parent_id" ref="ri_ventas"/>
728 </record>953 </record>
729954
730 <record model="account.account.template" id="ri_venta_de_servicios_misc">955 <record model="account.account.template" id="ri_venta_de_servicios_misc">
731 <field name="type">other</field>956 <field name="type">other</field>
732 <field name="code">41102</field>957 <field name="code">4110020</field>
733 <field name="user_type" ref="account.data_account_type_income"/>958 <field name="user_type" ref="account.data_account_type_income"/>
734 <field name="name">Venta servicios misc</field>959 <field name="name">Venta servicios misc</field>
735 <field name="parent_id" ref="ri_ventas"/>960 <field name="parent_id" ref="ri_ventas"/>
@@ -737,7 +962,7 @@
737962
738 <record model="account.account.template" id="ri_otros_ingresos">963 <record model="account.account.template" id="ri_otros_ingresos">
739 <field name="type">view</field>964 <field name="type">view</field>
740 <field name="code">42*</field>965 <field name="code">42</field>
741 <field name="user_type" ref="account.data_account_type_view"/>966 <field name="user_type" ref="account.data_account_type_view"/>
742 <field name="name">OTROS INGRESOS</field>967 <field name="name">OTROS INGRESOS</field>
743 <field name="parent_id" ref="ri_ingresos"/>968 <field name="parent_id" ref="ri_ingresos"/>
@@ -745,7 +970,7 @@
745970
746 <record model="account.account.template" id="ri_ingresos_financieros">971 <record model="account.account.template" id="ri_ingresos_financieros">
747 <field name="type">view</field>972 <field name="type">view</field>
748 <field name="code">421*</field>973 <field name="code">421</field>
749 <field name="user_type" ref="account.data_account_type_view"/>974 <field name="user_type" ref="account.data_account_type_view"/>
750 <field name="name">INGRESOS FINANCIEROS</field>975 <field name="name">INGRESOS FINANCIEROS</field>
751 <field name="parent_id" ref="ri_otros_ingresos"/>976 <field name="parent_id" ref="ri_otros_ingresos"/>
@@ -753,15 +978,71 @@
753978
754 <record model="account.account.template" id="ri_resultado_invesiones_financieras">979 <record model="account.account.template" id="ri_resultado_invesiones_financieras">
755 <field name="type">other</field>980 <field name="type">other</field>
756 <field name="code">42110</field>981 <field name="code">4210010</field>
757 <field name="user_type" ref="account.data_account_type_income"/>982 <field name="user_type" ref="account.data_account_type_income"/>
758 <field name="name">Resultado de inversiones financieras</field>983 <field name="name">Resultado de inversiones financieras</field>
759 <field name="parent_id" ref="ri_ingresos_financieros"/>984 <field name="parent_id" ref="ri_ingresos_financieros"/>
760 </record>985 </record>
761986
987 <record model="account.account.template" id="ri_resultado_invesiones_financieras">
988 <field name="type">other</field>
989 <field name="code">4210020</field>
990 <field name="user_type" ref="account.data_account_type_income"/>
991 <field name="name">Intereses ganados</field>
992 <field name="parent_id" ref="ri_ingresos_financieros"/>
993 </record>
994
995 <record model="account.account.template" id="ri_diferencias_de_cambio">
996 <field name="type">other</field>
997 <field name="code">4210030</field>
998 <field name="user_type" ref="account.data_account_type_income"/>
999 <field name="name">Diferencias de cambio</field>
1000 <field name="parent_id" ref="ri_ingresos_financieros"/>
1001 </record>
1002
1003 <record model="account.account.template" id="ri_otros_ingresos_2">
1004 <field name="type">view</field>
1005 <field name="code">422</field>
1006 <field name="user_type" ref="account.data_account_type_view"/>
1007 <field name="name">OTROS INGRESOS</field>
1008 <field name="parent_id" ref="ri_otros_ingresos"/>
1009 </record>
1010
1011 <record model="account.account.template" id="ri_resultado_venta_bienes_de_uso">
1012 <field name="type">other</field>
1013 <field name="code">4220010</field>
1014 <field name="user_type" ref="account.data_account_type_income"/>
1015 <field name="name">Resultado venta bienes de uso</field>
1016 <field name="parent_id" ref="ri_otros_ingresos_2"/>
1017 </record>
1018
1019 <record model="account.account.template" id="ri_ajuste_por_redondeo">
1020 <field name="type">other</field>
1021 <field name="code">4220020</field>
1022 <field name="user_type" ref="account.data_account_type_income"/>
1023 <field name="name">Ajuste por redondeo</field>
1024 <field name="parent_id" ref="ri_otros_ingresos_2"/>
1025 </record>
1026
1027 <record model="account.account.template" id="ri_descuentos_obtenidos">
1028 <field name="type">other</field>
1029 <field name="code">4220030</field>
1030 <field name="user_type" ref="account.data_account_type_income"/>
1031 <field name="name">Descuentos obtenidos</field>
1032 <field name="parent_id" ref="ri_otros_ingresos_2"/>
1033 </record>
1034
1035 <record model="account.account.template" id="ri_recupero_de_gastos">
1036 <field name="type">other</field>
1037 <field name="code">4220040</field>
1038 <field name="user_type" ref="account.data_account_type_income"/>
1039 <field name="name">Recupero de gastos</field>
1040 <field name="parent_id" ref="ri_otros_ingresos_2"/>
1041 </record>
1042
762 <record model="account.account.template" id="ri_gastos">1043 <record model="account.account.template" id="ri_gastos">
763 <field name="type">view</field>1044 <field name="type">view</field>
764 <field name="code">5*</field>1045 <field name="code">5</field>
765 <field name="user_type" ref="account.data_account_type_view"/>1046 <field name="user_type" ref="account.data_account_type_view"/>
766 <field name="name">GASTOS</field>1047 <field name="name">GASTOS</field>
767 <field name="parent_id" ref="ri_a_root"/>1048 <field name="parent_id" ref="ri_a_root"/>
@@ -769,7 +1050,7 @@
7691050
770 <record model="account.account.template" id="ri_gastos_operativos">1051 <record model="account.account.template" id="ri_gastos_operativos">
771 <field name="type">view</field>1052 <field name="type">view</field>
772 <field name="code">51*</field>1053 <field name="code">51</field>
773 <field name="user_type" ref="account.data_account_type_view"/>1054 <field name="user_type" ref="account.data_account_type_view"/>
774 <field name="name">GASTOS OPERATIVOS</field>1055 <field name="name">GASTOS OPERATIVOS</field>
775 <field name="parent_id" ref="ri_gastos"/>1056 <field name="parent_id" ref="ri_gastos"/>
@@ -777,55 +1058,71 @@
7771058
778 <record model="account.account.template" id="ri_gastos_de_produccion">1059 <record model="account.account.template" id="ri_gastos_de_produccion">
779 <field name="type">view</field>1060 <field name="type">view</field>
780 <field name="code">511*</field>1061 <field name="code">511</field>
781 <field name="user_type" ref="account.data_account_type_view"/>1062 <field name="user_type" ref="account.data_account_type_view"/>
782 <field name="name">GASTOS DE PRODUCCION</field>1063 <field name="name">GASTOS DE PRODUCCION</field>
783 <field name="parent_id" ref="ri_gastos_operativos"/>1064 <field name="parent_id" ref="ri_gastos_operativos"/>
784 </record>1065 </record>
7851066
786 <record model="account.account.template" id="ri_gastos_operativos_generales">1067 <record model="account.account.template" id="ri_haberes_produccion">
787 <field name="type">other</field>1068 <field name="type">other</field>
788 <field name="code">51100</field>1069 <field name="code">5110010</field>
789 <field name="user_type" ref="account.data_account_type_expense"/>1070 <field name="user_type" ref="account.data_account_type_expense"/>
790 <field name="name">Gastos operativos general</field>1071 <field name="name">Sueldos y SAC operativos</field>
791 <field name="parent_id" ref="ri_gastos_de_produccion"/>1072 <field name="parent_id" ref="ri_gastos_de_produccion"/>
792 </record>1073 </record>
7931074
794 <record model="account.account.template" id="ri_haberes">1075 <record model="account.account.template" id="ri_cargas_sociales_produccion">
795 <field name="type">other</field>1076 <field name="type">other</field>
796 <field name="code">51101</field>1077 <field name="code">5110020</field>
797 <field name="user_type" ref="account.data_account_type_expense"/>
798 <field name="name">Haberes</field>
799 <field name="parent_id" ref="ri_gastos_de_produccion"/>
800 </record>
801
802 <record model="account.account.template" id="ri_cargas_sociales">
803 <field name="type">other</field>
804 <field name="code">51102</field>
805 <field name="user_type" ref="account.data_account_type_expense"/>1078 <field name="user_type" ref="account.data_account_type_expense"/>
806 <field name="name">Cargas Sociales</field>1079 <field name="name">Cargas Sociales</field>
807 <field name="parent_id" ref="ri_gastos_de_produccion"/>1080 <field name="parent_id" ref="ri_gastos_de_produccion"/>
808 </record>1081 </record>
8091082
810 <record model="account.account.template" id="ri_costo_de_equipos">1083 <record model="account.account.template" id="ri_costo_de_mercaderia_vendida">
811 <field name="type">other</field>1084 <field name="type">other</field>
812 <field name="code">51103</field>1085 <field name="code">5110030</field>
813 <field name="user_type" ref="account.data_account_type_expense"/>1086 <field name="user_type" ref="account.data_account_type_expense"/>
814 <field name="name">Costo de equipos</field>1087 <field name="name">Costo de mercadería vendida</field>
815 <field name="parent_id" ref="ri_gastos_de_produccion"/>1088 <field name="parent_id" ref="ri_gastos_de_produccion"/>
816 </record>1089 </record>
8171090
818 <record model="account.account.template" id="ri_materiales">1091 <record model="account.account.template" id="ri_materiales">
819 <field name="type">other</field>1092 <field name="type">other</field>
820 <field name="code">51104</field>1093 <field name="code">5110040</field>
821 <field name="user_type" ref="account.data_account_type_expense"/>1094 <field name="user_type" ref="account.data_account_type_expense"/>
822 <field name="name">Materiales</field>1095 <field name="name">Materiales</field>
823 <field name="parent_id" ref="ri_gastos_de_produccion"/>1096 <field name="parent_id" ref="ri_gastos_de_produccion"/>
824 </record>1097 </record>
8251098
1099 <record model="account.account.template" id="ri_gastos_operativos_generales">
1100 <field name="type">other</field>
1101 <field name="code">5110050</field>
1102 <field name="user_type" ref="account.data_account_type_expense"/>
1103 <field name="name">Gastos varios produccion</field>
1104 <field name="parent_id" ref="ri_gastos_de_produccion"/>
1105 </record>
1106
1107 <record model="account.account.template" id="ri_alquileres_produccion">
1108 <field name="type">other</field>
1109 <field name="code">5110060</field>
1110 <field name="user_type" ref="account.data_account_type_expense"/>
1111 <field name="name">Alquileres produccion</field>
1112 <field name="parent_id" ref="ri_gastos_de_produccion"/>
1113 </record>
1114
1115 <record model="account.account.template" id="ri_servicios_agua_luz_etc_produccion">
1116 <field name="type">other</field>
1117 <field name="code">5110070</field>
1118 <field name="user_type" ref="account.data_account_type_expense"/>
1119 <field name="name">Servicios de luz, agua, etc. produccion</field>
1120 <field name="parent_id" ref="ri_gastos_de_produccion"/>
1121 </record>
1122
826 <record model="account.account.template" id="ri_gastos_comerciales">1123 <record model="account.account.template" id="ri_gastos_comerciales">
827 <field name="type">view</field>1124 <field name="type">view</field>
828 <field name="code">512*</field>1125 <field name="code">512</field>
829 <field name="user_type" ref="account.data_account_type_view"/>1126 <field name="user_type" ref="account.data_account_type_view"/>
830 <field name="name">GASTOS COMERCIALES</field>1127 <field name="name">GASTOS COMERCIALES</field>
831 <field name="parent_id" ref="ri_gastos_operativos"/>1128 <field name="parent_id" ref="ri_gastos_operativos"/>
@@ -833,15 +1130,15 @@
8331130
834 <record model="account.account.template" id="ri_haberes_comerciales">1131 <record model="account.account.template" id="ri_haberes_comerciales">
835 <field name="type">other</field>1132 <field name="type">other</field>
836 <field name="code">51201</field>1133 <field name="code">5120010</field>
837 <field name="user_type" ref="account.data_account_type_expense"/>1134 <field name="user_type" ref="account.data_account_type_expense"/>
838 <field name="name">Haberes comerciales</field>1135 <field name="name">Sueldos y SAC comerciales</field>
839 <field name="parent_id" ref="ri_gastos_comerciales"/>1136 <field name="parent_id" ref="ri_gastos_comerciales"/>
840 </record>1137 </record>
8411138
842 <record model="account.account.template" id="ri_cargas_sociales_comerciales">1139 <record model="account.account.template" id="ri_cargas_sociales_comerciales">
843 <field name="type">other</field>1140 <field name="type">other</field>
844 <field name="code">51202</field>1141 <field name="code">5120020</field>
845 <field name="user_type" ref="account.data_account_type_expense"/>1142 <field name="user_type" ref="account.data_account_type_expense"/>
846 <field name="name">Cargas sociales comerciales</field>1143 <field name="name">Cargas sociales comerciales</field>
847 <field name="parent_id" ref="ri_gastos_comerciales"/>1144 <field name="parent_id" ref="ri_gastos_comerciales"/>
@@ -849,7 +1146,7 @@
8491146
850 <record model="account.account.template" id="ri_comisiones_comerciales">1147 <record model="account.account.template" id="ri_comisiones_comerciales">
851 <field name="type">other</field>1148 <field name="type">other</field>
852 <field name="code">51203</field>1149 <field name="code">5120030</field>
853 <field name="user_type" ref="account.data_account_type_expense"/>1150 <field name="user_type" ref="account.data_account_type_expense"/>
854 <field name="name">Comisiones</field>1151 <field name="name">Comisiones</field>
855 <field name="parent_id" ref="ri_gastos_comerciales"/>1152 <field name="parent_id" ref="ri_gastos_comerciales"/>
@@ -857,15 +1154,55 @@
8571154
858 <record model="account.account.template" id="ri_publicidad">1155 <record model="account.account.template" id="ri_publicidad">
859 <field name="type">other</field>1156 <field name="type">other</field>
860 <field name="code">51204</field>1157 <field name="code">5120040</field>
861 <field name="user_type" ref="account.data_account_type_expense"/>1158 <field name="user_type" ref="account.data_account_type_expense"/>
862 <field name="name">Publicidad</field>1159 <field name="name">Publicidad</field>
863 <field name="parent_id" ref="ri_gastos_comerciales"/>1160 <field name="parent_id" ref="ri_gastos_comerciales"/>
864 </record>1161 </record>
8651162
1163 <record model="account.account.template" id="ri_movilidad_y_viaticos_comerciales">
1164 <field name="type">other</field>
1165 <field name="code">5120050</field>
1166 <field name="user_type" ref="account.data_account_type_expense"/>
1167 <field name="name">Movilidad y viáticos comerciales</field>
1168 <field name="parent_id" ref="ri_gastos_comerciales"/>
1169 </record>
1170
1171 <record model="account.account.template" id="ri_gastos_de_eventos_comerciales">
1172 <field name="type">other</field>
1173 <field name="code">5120060</field>
1174 <field name="user_type" ref="account.data_account_type_expense"/>
1175 <field name="name">Gastos de eventos comerciales</field>
1176 <field name="parent_id" ref="ri_gastos_comerciales"/>
1177 </record>
1178
1179 <record model="account.account.template" id="ri_gastos_varios_comerciales">
1180 <field name="type">other</field>
1181 <field name="code">5120070</field>
1182 <field name="user_type" ref="account.data_account_type_expense"/>
1183 <field name="name">Gastos varios comerciales</field>
1184 <field name="parent_id" ref="ri_gastos_comerciales"/>
1185 </record>
1186
1187 <record model="account.account.template" id="ri_alquileres_comerciales">
1188 <field name="type">other</field>
1189 <field name="code">5120080</field>
1190 <field name="user_type" ref="account.data_account_type_expense"/>
1191 <field name="name">Alquileres comerciales</field>
1192 <field name="parent_id" ref="ri_gastos_comerciales"/>
1193 </record>
1194
1195 <record model="account.account.template" id="ri_servicios_agua_luz_etc_comerciales">
1196 <field name="type">other</field>
1197 <field name="code">5120090</field>
1198 <field name="user_type" ref="account.data_account_type_expense"/>
1199 <field name="name">Servicios de luz, agua, etc. comerciales</field>
1200 <field name="parent_id" ref="ri_gastos_comerciales"/>
1201 </record>
1202
866 <record model="account.account.template" id="ri_gastos_de_administracion">1203 <record model="account.account.template" id="ri_gastos_de_administracion">
867 <field name="type">view</field>1204 <field name="type">view</field>
868 <field name="code">513*</field>1205 <field name="code">513</field>
869 <field name="user_type" ref="account.data_account_type_view"/>1206 <field name="user_type" ref="account.data_account_type_view"/>
870 <field name="name">GASTOS DE ADMINISTRACION</field>1207 <field name="name">GASTOS DE ADMINISTRACION</field>
871 <field name="parent_id" ref="ri_gastos_operativos"/>1208 <field name="parent_id" ref="ri_gastos_operativos"/>
@@ -873,78 +1210,87 @@
8731210
874 <record model="account.account.template" id="ri_haberes_administrativos">1211 <record model="account.account.template" id="ri_haberes_administrativos">
875 <field name="type">other</field>1212 <field name="type">other</field>
876 <field name="code">51301</field>1213 <field name="code">5130010</field>
877 <field name="user_type" ref="account.data_account_type_expense"/>1214 <field name="user_type" ref="account.data_account_type_expense"/>
878 <field name="name">Haberes administrativos</field>1215 <field name="name">Sueldos y SAC administrativos</field>
879 <field name="parent_id" ref="ri_gastos_de_administracion"/>1216 <field name="parent_id" ref="ri_gastos_de_administracion"/>
880 </record>1217 </record>
8811218
882 <record model="account.account.template" id="ri_cargas_sociales_administrativas">1219 <record model="account.account.template" id="ri_cargas_sociales_administrativas">
883 <field name="type">other</field>1220 <field name="type">other</field>
884 <field name="code">51302</field>1221 <field name="code">5130020</field>
885 <field name="user_type" ref="account.data_account_type_expense"/>1222 <field name="user_type" ref="account.data_account_type_expense"/>
886 <field name="name">Cargas sociales administrativas</field>1223 <field name="name">Cargas sociales administrativas</field>
887 <field name="parent_id" ref="ri_gastos_de_administracion"/>1224 <field name="parent_id" ref="ri_gastos_de_administracion"/>
888 </record>1225 </record>
8891226
890 <record model="account.account.template" id="ri_honorarios">1227 <record model="account.account.template" id="ri_honorarios_administrativas">
891 <field name="type">other</field>1228 <field name="type">other</field>
892 <field name="code">51303</field>1229 <field name="code">5130030</field>
893 <field name="user_type" ref="account.data_account_type_expense"/>1230 <field name="user_type" ref="account.data_account_type_expense"/>
894 <field name="name">Honorarios</field>1231 <field name="name">Honorarios profesionales administracion</field>
895 <field name="parent_id" ref="ri_gastos_de_administracion"/>1232 <field name="parent_id" ref="ri_gastos_de_administracion"/>
896 </record>1233 </record>
8971234
898 <record model="account.account.template" id="ri_alquileres">1235 <record model="account.account.template" id="ri_gastos_varios_administrativas">
899 <field name="type">other</field>1236 <field name="type">other</field>
900 <field name="code">51304</field>1237 <field name="code">5130040</field>
901 <field name="user_type" ref="account.data_account_type_expense"/>1238 <field name="user_type" ref="account.data_account_type_expense"/>
902 <field name="name">Alquileres</field>1239 <field name="name">Gastos varios administracion</field>
1240 <field name="parent_id" ref="ri_gastos_de_administracion"/>
1241 </record>
1242
1243 <record model="account.account.template" id="ri_alquileres_administrativas">
1244 <field name="type">other</field>
1245 <field name="code">5130050</field>
1246 <field name="user_type" ref="account.data_account_type_expense"/>
1247 <field name="name">Alquileres administracion</field>
903 <field name="parent_id" ref="ri_gastos_de_administracion"/>1248 <field name="parent_id" ref="ri_gastos_de_administracion"/>
904 </record>1249 </record>
9051250
906 <record model="account.account.template" id="ri_servicios_agua_luz_etc">1251 <record model="account.account.template" id="ri_servicios_agua_luz_etc">
907 <field name="type">other</field>1252 <field name="type">other</field>
908 <field name="code">51305</field>1253 <field name="code">5130060</field>
909 <field name="user_type" ref="account.data_account_type_expense"/>1254 <field name="user_type" ref="account.data_account_type_expense"/>
910 <field name="name">Servicios de luz, agua, etc</field>1255 <field name="name">Servicios de luz, agua, etc. administracion</field>
911 <field name="parent_id" ref="ri_gastos_de_administracion"/>1256 <field name="parent_id" ref="ri_gastos_de_administracion"/>
912 </record>1257 </record>
9131258
914 <record model="account.account.template" id="ri_mantenimiento_y_limpieza">1259 <record model="account.account.template" id="ri_mantenimiento_y_limpieza">
915 <field name="type">other</field>1260 <field name="type">other</field>
916 <field name="code">51306</field>1261 <field name="code">5130070</field>
917 <field name="user_type" ref="account.data_account_type_expense"/>1262 <field name="user_type" ref="account.data_account_type_expense"/>
918 <field name="name">Mantenimiento y limpieza</field>1263 <field name="name">Mantenimiento y limpieza adminsitracion</field>
919 <field name="parent_id" ref="ri_gastos_de_administracion"/>1264 <field name="parent_id" ref="ri_gastos_de_administracion"/>
920 </record>1265 </record>
9211266
922 <record model="account.account.template" id="ri_articulos_libreria">1267 <record model="account.account.template" id="ri_articulos_libreria">
923 <field name="type">other</field>1268 <field name="type">other</field>
924 <field name="code">51307</field>1269 <field name="code">5130080</field>
925 <field name="user_type" ref="account.data_account_type_expense"/>1270 <field name="user_type" ref="account.data_account_type_expense"/>
926 <field name="name">Artículos librería</field>1271 <field name="name">Artículos librería administracion</field>
1272 <field name="parent_id" ref="ri_gastos_de_administracion"/>
927 </record>1273 </record>
9281274
929 <record model="account.account.template" id="ri_cadeteria_y_correo">1275 <record model="account.account.template" id="ri_cadeteria_y_correo">
930 <field name="type">other</field>1276 <field name="type">other</field>
931 <field name="code">51308</field>1277 <field name="code">5130090</field>
932 <field name="user_type" ref="account.data_account_type_expense"/>1278 <field name="user_type" ref="account.data_account_type_expense"/>
933 <field name="name">Cadetería y correo</field>1279 <field name="name">Cadetería y correo adminsitracion</field>
934 <field name="parent_id" ref="ri_gastos_de_administracion"/>1280 <field name="parent_id" ref="ri_gastos_de_administracion"/>
935 </record>1281 </record>
9361282
937 <record model="account.account.template" id="ri_seguros">1283 <record model="account.account.template" id="ri_seguros">
938 <field name="type">other</field>1284 <field name="type">other</field>
939 <field name="code">51309</field>1285 <field name="code">5130110</field>
940 <field name="user_type" ref="account.data_account_type_expense"/>1286 <field name="user_type" ref="account.data_account_type_expense"/>
941 <field name="name">Seguros</field>1287 <field name="name">Seguros adminsitracion</field>
942 <field name="parent_id" ref="ri_gastos_de_administracion"/>1288 <field name="parent_id" ref="ri_gastos_de_administracion"/>
943 </record>1289 </record>
9441290
945 <record model="account.account.template" id="ri_gastos_fiscales">1291 <record model="account.account.template" id="ri_gastos_fiscales">
946 <field name="type">view</field>1292 <field name="type">view</field>
947 <field name="code">514*</field>1293 <field name="code">514</field>
948 <field name="user_type" ref="account.data_account_type_view"/>1294 <field name="user_type" ref="account.data_account_type_view"/>
949 <field name="name">GASTOS FISCALES</field>1295 <field name="name">GASTOS FISCALES</field>
950 <field name="parent_id" ref="ri_gastos_operativos"/>1296 <field name="parent_id" ref="ri_gastos_operativos"/>
@@ -952,7 +1298,7 @@
9521298
953 <record model="account.account.template" id="ri_impuestos_iibb_cf">1299 <record model="account.account.template" id="ri_impuestos_iibb_cf">
954 <field name="type">other</field>1300 <field name="type">other</field>
955 <field name="code">5149999</field>1301 <field name="code">5140010</field>
956 <field name="user_type" ref="account.data_account_type_expense"/>1302 <field name="user_type" ref="account.data_account_type_expense"/>
957 <field name="name">Impuestos ingresos brutos CABA</field>1303 <field name="name">Impuestos ingresos brutos CABA</field>
958 <field name="parent_id" ref="ri_gastos_fiscales"/>1304 <field name="parent_id" ref="ri_gastos_fiscales"/>
@@ -960,7 +1306,7 @@
9601306
961 <record model="account.account.template" id="ri_impuestos_iibb_ba">1307 <record model="account.account.template" id="ri_impuestos_iibb_ba">
962 <field name="type">other</field>1308 <field name="type">other</field>
963 <field name="code">5142429</field>1309 <field name="code">5140020</field>
964 <field name="user_type" ref="account.data_account_type_expense"/>1310 <field name="user_type" ref="account.data_account_type_expense"/>
965 <field name="name">Impuestos ingresos brutos Prov. Bs. As.</field>1311 <field name="name">Impuestos ingresos brutos Prov. Bs. As.</field>
966 <field name="parent_id" ref="ri_gastos_fiscales"/>1312 <field name="parent_id" ref="ri_gastos_fiscales"/>
@@ -968,7 +1314,7 @@
9681314
969 <record model="account.account.template" id="ri_impuestos_iibb_co">1315 <record model="account.account.template" id="ri_impuestos_iibb_co">
970 <field name="type">other</field>1316 <field name="type">other</field>
971 <field name="code">5142452</field>1317 <field name="code">5140030</field>
972 <field name="user_type" ref="account.data_account_type_expense"/>1318 <field name="user_type" ref="account.data_account_type_expense"/>
973 <field name="name">Impuestos ingresos brutos Prov. Córdoba</field>1319 <field name="name">Impuestos ingresos brutos Prov. Córdoba</field>
974 <field name="parent_id" ref="ri_gastos_fiscales"/>1320 <field name="parent_id" ref="ri_gastos_fiscales"/>
@@ -976,7 +1322,7 @@
9761322
977 <record model="account.account.template" id="ri_impuestos_iibb_sf">1323 <record model="account.account.template" id="ri_impuestos_iibb_sf">
978 <field name="type">other</field>1324 <field name="type">other</field>
979 <field name="code">5149998</field>1325 <field name="code">5140040</field>
980 <field name="user_type" ref="account.data_account_type_expense"/>1326 <field name="user_type" ref="account.data_account_type_expense"/>
981 <field name="name">Impuestos ingresos brutos Prov. Santa Fé</field>1327 <field name="name">Impuestos ingresos brutos Prov. Santa Fé</field>
982 <field name="parent_id" ref="ri_gastos_fiscales"/>1328 <field name="parent_id" ref="ri_gastos_fiscales"/>
@@ -984,7 +1330,7 @@
9841330
985 <record model="account.account.template" id="ri_impuestos_a_las_ganancias">1331 <record model="account.account.template" id="ri_impuestos_a_las_ganancias">
986 <field name="type">other</field>1332 <field name="type">other</field>
987 <field name="code">5142424</field>1333 <field name="code">5140050</field>
988 <field name="user_type" ref="account.data_account_type_expense"/>1334 <field name="user_type" ref="account.data_account_type_expense"/>
989 <field name="name">Impuestos a las ganancias</field>1335 <field name="name">Impuestos a las ganancias</field>
990 <field name="parent_id" ref="ri_gastos_fiscales"/>1336 <field name="parent_id" ref="ri_gastos_fiscales"/>
@@ -992,22 +1338,31 @@
9921338
993 <record model="account.account.template" id="ri_impuestos_transacciones_bancarias">1339 <record model="account.account.template" id="ri_impuestos_transacciones_bancarias">
994 <field name="type">other</field>1340 <field name="type">other</field>
995 <field name="code">5149980</field>1341 <field name="code">5140060</field>
996 <field name="user_type" ref="account.data_account_type_expense"/>1342 <field name="user_type" ref="account.data_account_type_expense"/>
997 <field name="name">Impuestos transacciones bancarias</field>1343 <field name="name">Impuestos a los créditos bancarios</field>
1344 <field name="parent_id" ref="ri_gastos_fiscales"/>
1345 </record>
1346
1347 <record model="account.account.template" id="ri_impuestos_transacciones_bancarias">
1348 <field name="type">other</field>
1349 <field name="code">5140070</field>
1350 <field name="user_type" ref="account.data_account_type_expense"/>
1351 <field name="name">Impuestos a los débitos bancarios</field>
998 <field name="parent_id" ref="ri_gastos_fiscales"/>1352 <field name="parent_id" ref="ri_gastos_fiscales"/>
999 </record>1353 </record>
10001354
1001 <record model="account.account.template" id="ri_otros_gastos">1355 <record model="account.account.template" id="ri_otros_gastos">
1002 <field name="type">view</field>1356 <field name="type">view</field>
1003 <field name="code">515*</field>1357 <field name="code">515</field>
1004 <field name="user_type" ref="account.data_account_type_view"/>1358 <field name="user_type" ref="account.data_account_type_view"/>
1005 <field name="name">OTROS GASTOS </field>1359 <field name="name">OTROS GASTOS </field>
1360 <field name="parent_id" ref="ri_gastos_operativos"/>
1006 </record>1361 </record>
10071362
1008 <record model="account.account.template" id="ri_intereses_y_recargos">1363 <record model="account.account.template" id="ri_intereses_y_recargos">
1009 <field name="type">other</field>1364 <field name="type">other</field>
1010 <field name="code">51501</field>1365 <field name="code">5150010</field>
1011 <field name="user_type" ref="account.data_account_type_expense"/>1366 <field name="user_type" ref="account.data_account_type_expense"/>
1012 <field name="name">Intereses y recargos</field>1367 <field name="name">Intereses y recargos</field>
1013 <field name="parent_id" ref="ri_otros_gastos"/>1368 <field name="parent_id" ref="ri_otros_gastos"/>
@@ -1015,7 +1370,7 @@
10151370
1016 <record model="account.account.template" id="ri_gastos_no_operativos">1371 <record model="account.account.template" id="ri_gastos_no_operativos">
1017 <field name="type">view</field>1372 <field name="type">view</field>
1018 <field name="code">52*</field>1373 <field name="code">52</field>
1019 <field name="user_type" ref="account.data_account_type_view"/>1374 <field name="user_type" ref="account.data_account_type_view"/>
1020 <field name="name">GASTOS NO OPERATIVOS</field>1375 <field name="name">GASTOS NO OPERATIVOS</field>
1021 <field name="parent_id" ref="ri_gastos"/>1376 <field name="parent_id" ref="ri_gastos"/>
@@ -1023,44 +1378,45 @@
10231378
1024 <record model="account.account.template" id="ri_amortizaciones">1379 <record model="account.account.template" id="ri_amortizaciones">
1025 <field name="type">view</field>1380 <field name="type">view</field>
1026 <field name="code">521*</field>1381 <field name="code">521</field>
1027 <field name="user_type" ref="account.data_account_type_view"/>1382 <field name="user_type" ref="account.data_account_type_view"/>
1028 <field name="name">AMORTIZACIONES</field>1383 <field name="name">AMORTIZACIONES</field>
1029 <field name="parent_id" ref="ri_gastos_no_operativos"/>1384 <field name="parent_id" ref="ri_gastos_no_operativos"/>
1030 </record>1385 </record>
10311386
1387 <record model="account.account.template" id="ri_amortizaciones_equipos_computacion">
1388 <field name="type">other</field>
1389 <field name="code">5210010</field>
1390 <field name="user_type" ref="account.data_account_type_expense"/>
1391 <field name="name">Amortizaciones maquinaria y equipos</field>
1392 <field name="parent_id" ref="ri_amortizaciones"/>
1393 </record>
1394
1032 <record model="account.account.template" id="ri_amortizaciones_instalaciones">1395 <record model="account.account.template" id="ri_amortizaciones_instalaciones">
1033 <field name="type">other</field>1396 <field name="type">other</field>
1034 <field name="code">52101</field>1397 <field name="code">5210020</field>
1035 <field name="user_type" ref="account.data_account_type_expense"/>1398 <field name="user_type" ref="account.data_account_type_expense"/>
1036 <field name="name">Amortizaciones instalaciones</field>1399 <field name="name">Amortizaciones instalaciones</field>
1037 <field name="parent_id" ref="ri_amortizaciones"/>1400 <field name="parent_id" ref="ri_amortizaciones"/>
1038 </record>1401 </record>
10391402
1040 <record model="account.account.template" id="ri_amortizaciones_equipos_computacion">
1041 <field name="type">other</field>
1042 <field name="code">52102</field>
1043 <field name="user_type" ref="account.data_account_type_expense"/>
1044 <field name="name">Amortizaciones equipos de computación</field>
1045 <field name="parent_id" ref="ri_amortizaciones"/>
1046 </record>
1047
1048 <record model="account.account.template" id="ri_amortizacion_software">
1049 <field name="type">other</field>
1050 <field name="code">52103</field>
1051 <field name="user_type" ref="account.data_account_type_expense"/>
1052 <field name="name">Amortizacion software</field>
1053 <field name="parent_id" ref="ri_amortizaciones"/>
1054 </record>
1055
1056 <record model="account.account.template" id="ri_amortizacion_muebles_y_utiles">1403 <record model="account.account.template" id="ri_amortizacion_muebles_y_utiles">
1057 <field name="type">other</field>1404 <field name="type">other</field>
1058 <field name="code">52104</field>1405 <field name="code">5210030</field>
1059 <field name="user_type" ref="account.data_account_type_expense"/>1406 <field name="user_type" ref="account.data_account_type_expense"/>
1060 <field name="name">Amortizacion muebles y útiles</field>1407 <field name="name">Amortizacion muebles y útiles</field>
1061 <field name="parent_id" ref="ri_amortizaciones"/>1408 <field name="parent_id" ref="ri_amortizaciones"/>
1062 </record>1409 </record>
10631410
1411 <record model="account.account.template" id="ri_amortizacion_rodados">
1412 <field name="type">other</field>
1413 <field name="code">5210040</field>
1414 <field name="user_type" ref="account.data_account_type_expense"/>
1415 <field name="name">Amortizacion rodados</field>
1416 <field name="parent_id" ref="ri_amortizaciones"/>
1417 </record>
1418
1419
1064#1420#
1065# Tax Code Templates1421# Tax Code Templates
1066#1422#
@@ -1276,12 +1632,13 @@
1276 <record id="ri_l10nAR_chart_template" model="account.chart.template">1632 <record id="ri_l10nAR_chart_template" model="account.chart.template">
1277 <field name="name">Plan Contable Genérico de Argentina para Responsables Inscriptos</field>1633 <field name="name">Plan Contable Genérico de Argentina para Responsables Inscriptos</field>
1278 <field name="account_root_id" ref="ri_a_root"/>1634 <field name="account_root_id" ref="ri_a_root"/>
1635 <field name="code_digits">7</field>
1279 <field name="tax_code_root_id" ref="ri_tax_code_chart_root"/>1636 <field name="tax_code_root_id" ref="ri_tax_code_chart_root"/>
1280 <field name="bank_account_view_id" ref="ri_banco"/>1637 <field name="bank_account_view_id" ref="ri_bancos"/>
1281 <field name="property_account_receivable" ref="ri_deudores_por_ventas"/>1638 <field name="property_account_receivable" ref="ri_deudores_por_ventas"/>
1282 <field name="property_account_payable" ref="ri_pago_proveedores"/>1639 <field name="property_account_payable" ref="ri_pago_proveedores"/>
1283 <field name="property_account_expense_categ" ref="ri_gastos_operativos_generales"/>1640 <field name="property_account_expense_categ" ref="ri_mercaderia"/>
1284 <field name="property_account_income_categ" ref="ri_ingresos_ventas"/>1641 <field name="property_account_income_categ" ref="ri_venta_de_mercaderia"/>
1285 </record>1642 </record>
12861643
1287#1644#
12881645
=== modified file 'l10n_ar_chart_generic/data/res_partner.xml'
--- l10n_ar_chart_generic/data/res_partner.xml 2013-10-15 22:33:53 +0000
+++ l10n_ar_chart_generic/data/res_partner.xml 2014-01-20 20:26:39 +0000
@@ -23,8 +23,9 @@
23 <field name="is_company" eval="True"/>23 <field name="is_company" eval="True"/>
24 <field name="customer" eval="True"/>24 <field name="customer" eval="True"/>
25 <field name="supplier" eval="True"/>25 <field name="supplier" eval="True"/>
26 <field name="property_account_receivable" ref="ri_iva_retencion"/>26 <!-- Esta configuracion hace que no quede una property predeterminada de manera correcta -->
27 <field name="property_account_payable" ref="ri_iva_a_pagar"/>27<!-- <field name="property_account_receivable" ref="ri_iva_retencion"/>
28 <field name="property_account_payable" ref="ri_iva_a_pagar"/> -->
28 </record>29 </record>
29 </data>30 </data>
30</openerp>31</openerp>
3132
=== added directory 'l10n_ar_chart_generic/static'
=== added directory 'l10n_ar_chart_generic/static/src'
=== added directory 'l10n_ar_chart_generic/static/src/img'
=== added file 'l10n_ar_chart_generic/static/src/img/icon.png'
32Binary files l10n_ar_chart_generic/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_ar_chart_generic/static/src/img/icon.png 2014-01-20 20:26:39 +0000 differ33Binary files l10n_ar_chart_generic/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_ar_chart_generic/static/src/img/icon.png 2014-01-20 20:26:39 +0000 differ
=== added directory 'l10n_ar_debit_note'
=== added file 'l10n_ar_debit_note/__init__.py'
--- l10n_ar_debit_note/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_debit_note/__init__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,27 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22#
23# Insert all includes necesary for this module
24
25import account_journal
26
27# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
0\ No newline at end of file28\ No newline at end of file
129
=== added file 'l10n_ar_debit_note/__openerp__.py'
--- l10n_ar_debit_note/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_debit_note/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,37 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{ 'active': False,
22 'author': 'Sistemas ADHOC',
23 'category': 'Accounting & Finance',
24 'demo_xml': [],
25 'depends': ['account_voucher'],
26 'description': 'Extends Account Journal and adds a field on Sale and Purchase journals to indicate if they are a Debit Note Journal. It also adds filters on search of invoices',
27 'init_xml': [],
28 'installable': True,
29 'name': 'Account Journal Debit Notes',
30 'test': [],
31 'update_xml': [
32 'account_journal_view.xml',
33 'account_invoice_view.xml',
34 ],
35 'version': '0.0',
36 'website': 'http://www.sistemasadhoc.com.ar/'}
37# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
0\ No newline at end of file38\ No newline at end of file
139
=== added file 'l10n_ar_debit_note/account_invoice_view.xml'
--- l10n_ar_debit_note/account_invoice_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_debit_note/account_invoice_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,21 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <!-- Invoices -->
6 <record id="view_account_invoice_filter" model="ir.ui.view">
7 <field name="name">account.invoice.select</field>
8 <field name="model">account.invoice</field>
9 <field name="inherit_id" ref="account.view_account_invoice_filter"/>
10 <field name="arch" type="xml">
11 <field name="period_id" position="after">
12 <separator/>
13 <filter domain="[('journal_id.is_debit_note','=',False)]" help="Invoices"/>
14 <filter domain="[('journal_id.is_debit_note','=',True)]" help="Debit Notes"/>
15 </field>
16 </field>
17 </record>
18
19
20 </data>
21</openerp>
022
=== added file 'l10n_ar_debit_note/account_journal.py'
--- l10n_ar_debit_note/account_journal.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_debit_note/account_journal.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,39 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import logging
23
24from openerp import SUPERUSER_ID
25from openerp.osv import fields, osv
26from openerp.tools.translate import _
27
28_logger = logging.getLogger(__name__)
29
30
31class account_journal(osv.osv):
32 _name = "account.journal"
33 _inherit = "account.journal"
34 _columns = {
35 'is_debit_note': fields.boolean('Is Debit Note?',),
36 }
37
38
39# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
040
=== added file 'l10n_ar_debit_note/account_journal_view.xml'
--- l10n_ar_debit_note/account_journal_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_debit_note/account_journal_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,20 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5
6 <!-- Account Journal -->
7
8 <record id="view_account_journal_form" model="ir.ui.view">
9 <field name="name">account.journal.form</field>
10 <field name="model">account.journal</field>
11 <field name="inherit_id" ref="account.view_account_journal_form"/>
12 <field name="arch" type="xml">
13 <field name="type" position="after">
14 <field name="is_debit_note" attrs="{'invisible':[('type','not in', ('sale', 'purchase'))]}"/>
15 </field>
16 </field>
17 </record>
18
19 </data>
20</openerp>
021
=== added directory 'l10n_ar_debit_note/i18n'
=== modified file 'l10n_ar_invoice/__openerp__.py'
--- l10n_ar_invoice/__openerp__.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -24,9 +24,11 @@
24 'demo_xml': [],24 'demo_xml': [],
25 'depends': [ 'base_setup',25 'depends': [ 'base_setup',
26 'account_voucher',26 'account_voucher',
27 'l10n_ar_debit_note',
27 'l10n_ar_base_vat',28 'l10n_ar_base_vat',
28 'l10n_ar_chart_generic',29 'l10n_ar_chart_generic',
29 'l10n_ar_states'],30 'l10n_ar_states'
31 ],
30 'description': '\n\nM\xc3\xb3dulo de Facturaci\xc3\xb3n de la localizaci\xc3\xb3n Argentina\n\n\n\nIncluye:\n\n\n\n - Configuraci\xc3\xb3n de libros, diarios y otros detalles para facturaci\xc3\xb3n argentina.\n\n - Wizard para configurar los talonarios necesarios para facturar.\n\n\n\nFalta:\n\n - Terminar de completar la lista de codigos del AFIP de monedas (http://www.afip.gob.ar/fe/documentos/TABLA%20MONEDAS%20V.0%20%2025082010.xls)\n\n',32 'description': '\n\nM\xc3\xb3dulo de Facturaci\xc3\xb3n de la localizaci\xc3\xb3n Argentina\n\n\n\nIncluye:\n\n\n\n - Configuraci\xc3\xb3n de libros, diarios y otros detalles para facturaci\xc3\xb3n argentina.\n\n - Wizard para configurar los talonarios necesarios para facturar.\n\n\n\nFalta:\n\n - Terminar de completar la lista de codigos del AFIP de monedas (http://www.afip.gob.ar/fe/documentos/TABLA%20MONEDAS%20V.0%20%2025082010.xls)\n\n',
31 'init_xml': [],33 'init_xml': [],
32 'installable': True,34 'installable': True,
@@ -48,7 +50,8 @@
48 'data/document_type.xml',50 'data/document_type.xml',
49 'data/partner.xml',51 'data/partner.xml',
50 'data/invoice_workflow.xml',52 'data/invoice_workflow.xml',
51 'data/reports.xml',53 # Disable reports
54 # 'data/reports.xml',
52 'data/country.xml',55 'data/country.xml',
53 'data/res.currency.csv',56 'data/res.currency.csv',
54 'data/afip.journal_template.csv',57 'data/afip.journal_template.csv',
5558
=== modified file 'l10n_ar_invoice/config.py'
--- l10n_ar_invoice/config.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/config.py 2014-01-20 20:26:39 +0000
@@ -241,7 +241,8 @@
241 currency_id = obj_company.browse(cr, uid, company_id).currency_id.id241 currency_id = obj_company.browse(cr, uid, company_id).currency_id.id
242242
243 cr.execute("""243 cr.execute("""
244 select row_number() over () as row,244 (select
245 JC.id as row,
245 Ri.name as Ri,246 Ri.name as Ri,
246 Dc.name as document_class,247 Dc.name as document_class,
247 JC.name as name,248 JC.name as name,
@@ -254,17 +255,37 @@
254 left join afip_responsability as Rr on (RC.receptor_id = Rr.id)255 left join afip_responsability as Rr on (RC.receptor_id = Rr.id)
255 left join afip_document_class as DC on (RC.document_class_id = DC.id)256 left join afip_document_class as DC on (RC.document_class_id = DC.id)
256 left join afip_journal_class as JC on (RC.document_class_id = JC.document_class_id)257 left join afip_journal_class as JC on (RC.document_class_id = JC.document_class_id)
257 where Ri.id = %s258 where Ri.id = %s and (type = 'sale' or type = 'sale_refund')
258 and Ri.name is not Null259 and Ri.name is not Null
259 and Dc.name is not Null260 and Dc.name is not Null
260 and JC.name is not Null261 and JC.name is not Null
261 group by Ri.name, JC.name, JC.type, DC.name, DC.id order by name262 group by JC.id, Ri.name, JC.name, JC.type, DC.name, DC.id order by name)
263 union
264 (select
265 JC.id as row,
266 Rr.name as Ri,
267 Dc.name as document_class,
268 JC.name as name,
269 max(JC.code) as code,
270 JC.type as type,
271 DC.id as document_class_id,
272 max(JC.id) as journal_class_id
273 from afip_responsability_relation as RC
274 left join afip_responsability as Ri on (RC.issuer_id = Ri.id)
275 left join afip_responsability as Rr on (RC.receptor_id = Rr.id)
276 left join afip_document_class as DC on (RC.document_class_id = DC.id)
277 left join afip_journal_class as JC on (RC.document_class_id = JC.document_class_id)
278 where Rr.id = %s and (type = 'purchase' or type = 'purchase_refund')
279 and Rr.name is not Null
280 and Dc.name is not Null
281 and JC.name is not Null
282 group by JC.id, Rr.name, JC.name, JC.type, DC.name, DC.id order by type)
262 """,283 """,
263 (responsability_id,))284 (responsability_id,responsability_id,))
264285
265 fetch_items = list(cr.fetchall())286 fetch_items = list(cr.fetchall())
266 items = [ dict(zip([c.name for c in cr.description], item)) for item in fetch_items ]287 items = [ dict(zip([c.name for c in cr.description], item)) for item in fetch_items ]
267288 print items
268 if not do_export:289 if not do_export:
269 items = [ i for i in items if i['code'] not in ['FVE', 'FCE', 'DVE', 'DCE', 'CVE', 'CCE'] ]290 items = [ i for i in items if i['code'] not in ['FVE', 'FCE', 'DVE', 'DCE', 'CVE', 'CCE'] ]
270291
271292
=== modified file 'l10n_ar_invoice/invoice.py'
--- l10n_ar_invoice/invoice.py 2013-12-05 21:01:41 +0000
+++ l10n_ar_invoice/invoice.py 2014-01-20 20:26:39 +0000
@@ -97,40 +97,22 @@
97 _inherit = "account.invoice"97 _inherit = "account.invoice"
9898
99 def afip_validation(self, cr, uid, ids, context={}):99 def afip_validation(self, cr, uid, ids, context={}):
100 obj_resp_class = self.pool.get('afip.responsability_relation')
101100
102 for invoice in self.browse(cr, uid, ids):101 for invoice in self.browse(cr, uid, ids):
103 # If parter is not in Argentina, ignore it.102 if invoice.type == 'in_invoice':
104 if invoice.partner_id.country_id.name != 'Argentina':103 journal_type = 'purchase'
105 continue104 elif invoice.type == 'in_refund':
106105 journal_type = 'purchase_refund'
107 # Partner responsability ?106 elif invoice.type == 'out_invoice':
108 if isinstance(invoice.partner_id.responsability_id, orm.browse_null):107 journal_type = 'sale'
109 raise osv.except_osv(_('No responsability'),108 elif invoice.type == 'out_refund':
110 _('Your partner have not afip responsability assigned. Assign one please.'))109 journal_type = 'sale_refund'
111110
112 # Take responsability classes for this journal111 journal_ids = self.get_valid_journals(cr, uid, invoice.partner_id.id, journal_type, company_id=invoice.company_id.id)
113 invoice_class = invoice.journal_id.journal_class_id.document_class_id112
114 resp_class_ids = obj_resp_class.search(cr, uid, [('document_class_id','=', invoice_class.id)])113 if invoice.journal_id.id not in journal_ids:
115114 raise osv.except_osv(_('Invalid Journal'),
116 # You can emmit this document?115 _('Invalid journal selection for actual partner and company.'))
117 resp_class = [ rc.issuer_id.code for rc in obj_resp_class.browse(cr, uid, resp_class_ids) ]
118 if invoice.journal_id.company_id.partner_id.responsability_id.code not in resp_class:
119 raise osv.except_osv(_('Invalid emisor'),
120 _('Your responsability with AFIP dont let you generate this kind of document.'))
121
122 # Partner can receive this document?
123 resp_class = [ rc.receptor_id.code for rc in obj_resp_class.browse(cr, uid, resp_class_ids) ]
124 if False and invoice.partner_id.responsability_id.code not in resp_class:
125 raise osv.except_osv(_('Invalid receptor'),
126 _('Your partner cant recive this document. Check AFIP responsability of the partner, or Journal Account of the invoice.'))
127
128 # If Final Consumer have pay more than 1000$, you need more information to generate document.
129 if invoice.partner_id.responsability_id.code == 'CF' and invoice.amount_total > 1000 and \
130 (invoice.partner_id.document_type.code in [ None, 'Sigd' ] or invoice.partner_id.document_number is None):
131 raise osv.except_osv(_('Partner without Identification for total invoices > $1000.-'),
132 _('You must define valid document type and number for this Final Consumer.'))
133 return True
134116
135 def compute_all(self, cr, uid, ids, line_filter=lambda line: True, tax_filter=lambda tax: True, context=None):117 def compute_all(self, cr, uid, ids, line_filter=lambda line: True, tax_filter=lambda tax: True, context=None):
136 res = {}118 res = {}
@@ -156,79 +138,129 @@
156138
157 def onchange_partner_id(self, cr, uid, ids, type, partner_id,139 def onchange_partner_id(self, cr, uid, ids, type, partner_id,
158 date_invoice=False, payment_term=False,140 date_invoice=False, payment_term=False,
159 partner_bank_id=False, company_id=False):141 partner_bank_id=False, company_id=False, context=None):
160 result = super(account_invoice,self).onchange_partner_id(cr, uid, ids,142 result = super(account_invoice,self).onchange_partner_id(cr, uid, ids,
161 type, partner_id, date_invoice, payment_term,143 type, partner_id, date_invoice, payment_term,
162 partner_bank_id, company_id)144 partner_bank_id, company_id,)
145
146
147 if type == 'in_invoice':
148 journal_type = 'purchase'
149 elif type == 'in_refund':
150 journal_type = 'purchase_refund'
151 elif type == 'out_invoice':
152 journal_type = 'sale'
153 elif type == 'out_refund':
154 journal_type = 'sale_refund'
163155
156 journal_id = False
157 journal_ids = False
158 normal_journal_ids = False
159
164 if company_id and partner_id:160 if company_id and partner_id:
165 # Set list of valid journals by partner responsability161 normal_journal_ids = self.get_valid_journals(cr, uid, partner_id, journal_type, is_debit_note=False, company_id=company_id)
166 partner_obj = self.pool.get('res.partner')162 journal_ids = self.get_valid_journals(cr, uid, partner_id, journal_type, company_id=company_id)
167 company_obj = self.pool.get('res.company')163
168 partner = partner_obj.browse(cr, uid, partner_id)164 if normal_journal_ids:
169 company = company_obj.browse(cr, uid, company_id)165 journal_id = normal_journal_ids[0]
170 responsability = partner.responsability_id166
171 if responsability.issuer_relation_ids is None:167 if 'value' not in result: result['value'] = {}
172 return result168 result['value'].update({
173169 'journal_id': journal_id,
174 document_class_set = set([ i.document_class_id.id for i in responsability.issuer_relation_ids ])170 })
175171
176 type_map = {172 if 'domain' not in result: result['domain'] = {}
177 'out_invoice': ['sale'],173 result['domain'].update({
178 'out_refund': ['sale_refund'],174 'journal_id': [('id', 'in', journal_ids)],
179 'in_invoice': ['purchase'],175 })
180 'in_refund': ['purchase_refund'],
181 }
182
183 if not company.partner_id:
184 result['warning']={'title': _('Your company has not setted any partner'),
185 'message': _('That\'s is really strange. You must have a partner associated to your company.')}
186 _logger.warning('Your company "%s" has not setted any partner.' % company.name)
187 return result
188
189 if not company.partner_id.responsability_id.id:
190 result['warning']={'title': _('Your company has not setted any responsability'),
191 'message': _('Please, set your company responsability in the company partner before continue.')}
192 _logger.warning('Your company "%s" has not setted any responsability.' % company.name)
193 return result
194
195 cr.execute("""
196 SELECT DISTINCT J.id, J.name, IRSEQ.number_next
197 FROM account_journal J
198 LEFT join ir_sequence IRSEQ on (J.sequence_id = IRSEQ.id)
199 LEFT join afip_journal_class JC on (J.journal_class_id = JC.id)
200 LEFT join afip_document_class DC on (JC.document_class_id = DC.id)
201 LEFT join afip_responsability_relation RR on (DC.id = RR.document_class_id)
202 WHERE
203 (RR.id is Null OR (RR.id is not Null AND RR.issuer_id = %s AND RR.receptor_id = %s)) AND
204 J.type in %s AND
205 J.id is not NULL AND
206 J.sequence_id is not NULL
207 AND IRSEQ.number_next is not NULL
208 ORDER BY IRSEQ.number_next DESC;
209 """, (company.partner_id.responsability_id.id, partner.responsability_id.id, tuple(type_map[type])))
210 accepted_journal_ids = [ x[0] for x in cr.fetchall() ]
211
212 if 'domain' not in result: result['domain'] = {}
213 if 'value' not in result: result['value'] = {}
214
215 if accepted_journal_ids:
216 result['domain'].update({
217 'journal_id': [('id','in', accepted_journal_ids)],
218 })
219 #result['value'].update({
220 # 'journal_id': accepted_journal_ids[0],
221 #})
222 else:
223 result['domain'].update({
224 'journal_id': [('id','in',[])],
225 })
226 #result['value'].update({
227 # 'journal_id': False,
228 #})
229
230 return result176 return result
231177
178 def get_valid_journals(self, cr, uid, partner_id, journal_type, is_debit_note=None, company_id=False, context=None):
179 # Type could be purchase or sale
180 journal_obj = self.pool.get('account.journal')
181 resp_relation_obj = self.pool.get('afip.responsability_relation')
182 responsability_obj = self.pool.get('afip.responsability')
183 user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
184 partner = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context)
185
186 if context is None:
187 context = {}
188 if company_id == False:
189 company_id = context.get('company_id', user.company_id.id)
190 company = self.pool.get('res.company').browse(cr, uid, company_id, context)
191
192 if not company.partner_id.responsability_id.id:
193 raise orm.except_orm(_('Your company has not setted any responsability'),
194 _('Please, set your company responsability in the company partner before continue.'))
195 _logger.warning('Your company "%s" has not setted any responsability.' % company.name)
196
197 if journal_type in ['sale','sale_refund']:
198 issuer_responsability_id = company.partner_id.responsability_id.id
199 receptor_responsability_id = partner.responsability_id.id
200 elif journal_type in ['purchase','purchase_refund']:
201 issuer_responsability_id = partner.responsability_id.id
202 receptor_responsability_id = company.partner_id.responsability_id.id
203 else:
204 raise orm.except_orm(_('Journal Type Error'),
205 _('Journal Type Not defined)'))
206
207 document_class_ids = []
208 journal_ids = []
209 journal_filter = []
210 journal_filter.append(('company_id','=',company_id))
211
212 if journal_type:
213 journal_filter.append(('type','=',journal_type))
214 if is_debit_note != None:
215 journal_filter.append(('is_debit_note','=',is_debit_note))
216
217 resp_relation_ids = resp_relation_obj.search(cr, uid, [('issuer_id', '=', issuer_responsability_id),('receptor_id', '=', receptor_responsability_id)], context=context)
218
219 for resp_relation in resp_relation_obj.browse(cr, uid, resp_relation_ids, context):
220 if resp_relation.document_class_id not in document_class_ids:
221 document_class_ids.append(resp_relation.document_class_id.id)
222 journal_filter.append(('journal_class_id.document_class_id','in',document_class_ids))
223 journal_ids = journal_obj.search(cr, uid, journal_filter, context)
224 return journal_ids
225
226
227 def onchange_company_id(self, cr, uid, ids, company_id, part_id, type, invoice_line, currency_id):
228 result = super(account_invoice,self).onchange_partner_id(cr, uid, ids,
229 company_id, part_id, type, invoice_line, currency_id)
230 partner_id = part_id
231
232 if type == 'in_invoice':
233 journal_type = 'purchase'
234 elif type == 'in_refund':
235 journal_type = 'purchase_refund'
236 elif type == 'out_invoice':
237 journal_type = 'sale'
238 elif type == 'out_refund':
239 journal_type = 'sale_refund'
240
241 journal_id = False
242 journal_ids = False
243 normal_journal_ids = False
244
245 if company_id and partner_id:
246 normal_journal_ids = self.get_valid_journals(cr, uid, partner_id, journal_type, is_debit_note=False, company_id=company_id)
247 journal_ids = self.get_valid_journals(cr, uid, partner_id, journal_type, company_id=company_id)
248
249 if normal_journal_ids:
250 journal_id = normal_journal_ids[0]
251
252 if 'value' not in result: result['value'] = {}
253 result['value'].update({
254 'journal_id': journal_id,
255 })
256
257 if 'domain' not in result: result['domain'] = {}
258 result['domain'].update({
259 'journal_id': [('id', 'in', journal_ids)],
260 })
261
262 return result
263
232account_invoice()264account_invoice()
233265
234# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:266# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
235267
=== modified file 'l10n_ar_invoice/report/__init__.py'
--- l10n_ar_invoice/report/__init__.py 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/report/__init__.py 2014-01-20 20:26:39 +0000
@@ -19,6 +19,6 @@
19#19#
20##############################################################################20##############################################################################
2121
22import invoice22# import invoice
2323
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2525
=== modified file 'l10n_ar_invoice/security/ir.model.access.csv'
--- l10n_ar_invoice/security/ir.model.access.csv 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/security/ir.model.access.csv 2014-01-20 20:26:39 +0000
@@ -1,17 +1,17 @@
1"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"1id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2"access_afip_responsability_manager","afip.responsability.manager","model_afip_responsability","group_l10n_ar_invoice_admin",1,1,1,12access_afip_responsability_manager,afip.responsability.manager,model_afip_responsability,account.group_account_manager,1,1,1,1
3"access_afip_responsability_user","afip.responsability.user","model_afip_responsability","group_l10n_ar_invoice_user",1,0,0,03access_afip_responsability_user,afip.responsability.user,model_afip_responsability,,1,0,0,0
4"access_afip_responsability_relation_manager","afip.responsability_relation.manager","model_afip_responsability_relation","group_l10n_ar_invoice_admin",1,1,1,14access_afip_responsability_relation_manager,afip.responsability_relation.manager,model_afip_responsability_relation,account.group_account_manager,1,1,1,1
5"access_afip_responsability_relation_user","afip.responsability_relation.user","model_afip_responsability_relation","group_l10n_ar_invoice_user",1,0,0,05access_afip_responsability_relation_user,afip.responsability_relation.user,model_afip_responsability_relation,,1,0,0,0
6"access_afip_journal_class_manager","afip.journal_class.manager","model_afip_journal_class","group_l10n_ar_invoice_admin",1,1,1,16access_afip_journal_class_manager,afip.journal_class.manager,model_afip_journal_class,account.group_account_manager,1,1,1,1
7"access_afip_journal_class_user","afip.journal_class.user","model_afip_journal_class","group_l10n_ar_invoice_user",1,0,0,07access_afip_journal_class_user,afip.journal_class.user,model_afip_journal_class,,1,0,0,0
8"access_afip_document_type_manager","afip.document_type.manager","model_afip_document_type","group_l10n_ar_invoice_admin",1,1,1,18access_afip_document_type_manager,afip.document_type.manager,model_afip_document_type,account.group_account_manager,1,1,1,1
9"access_afip_document_type_user","afip.document_type.user","model_afip_document_type","group_l10n_ar_invoice_user",1,0,0,09access_afip_document_type_user,afip.document_type.user,model_afip_document_type,,1,0,0,0
10"access_afip_concept_type_manager","afip.concept_type.manager","model_afip_concept_type","group_l10n_ar_invoice_admin",1,1,1,110access_afip_concept_type_manager,afip.concept_type.manager,model_afip_concept_type,account.group_account_manager,1,1,1,1
11"access_afip_concept_type_user","afip.concept_type.user","model_afip_concept_type","group_l10n_ar_invoice_user",1,0,0,011access_afip_concept_type_user,afip.concept_type.user,model_afip_concept_type,,1,0,0,0
12"access_afip_document_class_manager","afip.document_class.manager","model_afip_document_class","group_l10n_ar_invoice_admin",1,1,1,112access_afip_document_class_manager,afip.document_class.manager,model_afip_document_class,account.group_account_manager,1,1,1,1
13"access_afip_document_class_user","afip.document_class.user","model_afip_document_class","group_l10n_ar_invoice_user",1,0,0,013access_afip_document_class_user,afip.document_class.user,model_afip_document_class,,1,0,0,0
14"access_afip_journal_template_manager","afip.journal_template.manager","model_afip_journal_template","group_l10n_ar_invoice_admin",1,1,1,114access_afip_journal_template_manager,afip.journal_template.manager,model_afip_journal_template,account.group_account_manager,1,1,1,1
15"access_afip_journal_template_user","afip.journal_template.user","model_afip_journal_template","group_l10n_ar_invoice_user",1,0,0,015access_afip_journal_template_user,afip.journal_template.user,model_afip_journal_template,,1,0,0,0
16"access_afip_optional_type_manager","afip.optional_type.manager","model_afip_optional_type","group_l10n_ar_invoice_admin",1,1,1,116access_afip_optional_type_manager,afip.optional_type.manager,model_afip_optional_type,account.group_account_manager,1,1,1,1
17"access_afip_optional_type_user","afip.optional_type.user","model_afip_optional_type","group_l10n_ar_invoice_user",1,0,0,017access_afip_optional_type_user,afip.optional_type.user,model_afip_optional_type,,1,0,0,0
1818
=== modified file 'l10n_ar_invoice/security/l10n_ar_invoice_security.xml'
--- l10n_ar_invoice/security/l10n_ar_invoice_security.xml 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/security/l10n_ar_invoice_security.xml 2014-01-20 20:26:39 +0000
@@ -1,17 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp>2<openerp>
3 <data>3 <data>
4 <record id="group_l10n_ar_invoice_user" model="res.groups" context="{'noadmin':True}">
5 <field name="name">Argentine Invoice User</field>
6 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
7 <field name="implied_ids" eval="[(4, ref('account.group_account_invoice'))]"/>
8 </record>
9
10 <record id="group_l10n_ar_invoice_admin" model="res.groups">
11 <field name="name">Argentine Invoice Manager</field>
12 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
13 <field name="implied_ids" eval="[(4,ref('base.group_user'))]"/>
14 </record>
154
16 </data>5 </data>
17</openerp>6</openerp>
187
=== modified file 'l10n_ar_invoice/view/afip_menuitem.xml'
--- l10n_ar_invoice/view/afip_menuitem.xml 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/view/afip_menuitem.xml 2014-01-20 20:26:39 +0000
@@ -23,7 +23,7 @@
23<openerp>23<openerp>
24 <data>24 <data>
2525
26 <menuitem id="menu_afip_config" name="AFIP Configuration" parent="base.menu_config" sequence="30"/>26 <menuitem id="menu_afip_config" name="AFIP Configuration" parent="account.menu_finance_configuration" sequence="25"/>
2727
28 </data>28 </data>
29</openerp>29</openerp>
3030
=== modified file 'l10n_ar_invoice/view/invoice_view.xml'
--- l10n_ar_invoice/view/invoice_view.xml 2013-09-30 15:07:23 +0000
+++ l10n_ar_invoice/view/invoice_view.xml 2014-01-20 20:26:39 +0000
@@ -29,8 +29,21 @@
29 <field name="inherit_id" ref="account.invoice_form"/>29 <field name="inherit_id" ref="account.invoice_form"/>
30 <field name="arch" type="xml">30 <field name="arch" type="xml">
31 <data>31 <data>
32 <field name="journal_id" position="replace">32 <field name="journal_id" position="attributes">
33 <field name="journal_id" groups="account.group_account_user" on_change="onchange_journal_id(journal_id, context)" widget="many2one"/>33 <attribute name="widget">many2one</attribute>
34 </field>
35 </data>
36 </field>
37 </record>
38
39 <record id="view_supplier_invoice_form" model="ir.ui.view">
40 <field name="name">l10n_ar.invoice.form</field>
41 <field name="model">account.invoice</field>
42 <field name="inherit_id" ref="account.invoice_supplier_form"/>
43 <field name="arch" type="xml">
44 <data>
45 <field name="journal_id" position="attributes">
46 <attribute name="widget">many2one</attribute>
34 </field>47 </field>
35 </data>48 </data>
36 </field>49 </field>
3750
=== modified file 'l10n_ar_invoice/view/partner_view.xml'
--- l10n_ar_invoice/view/partner_view.xml 2014-01-09 15:19:22 +0000
+++ l10n_ar_invoice/view/partner_view.xml 2014-01-20 20:26:39 +0000
@@ -29,20 +29,14 @@
29 <field name="inherit_id" ref="base.view_partner_form"/>29 <field name="inherit_id" ref="base.view_partner_form"/>
30 <field name="arch" type="xml">30 <field name="arch" type="xml">
31 <data>31 <data>
32 <field name="parent_id" position="before">
33 <group col="2">
34 <label for="document_type_id" colspan="1" class="oe_edit_only"/>
35 <label for="document_number" colspan="1" class="oe_edit_only"/>
36 <field name="document_type_id" nolabel="1" colspan="1"
37 on_change="onchange_document(vat,document_type_id,document_number)"/>
38 <field name="document_number" nolabel="1" colspan="1"
39 on_change="onchange_document(vat,document_type_id,document_number)"/>
40 </group>
41 </field>
42 <field name="property_account_position" position="before">32 <field name="property_account_position" position="before">
43 <field name="responsability_id" widget="selection"/>33 <field name="responsability_id" widget="selection"/>
44 <field name="iibb"/>34 <field name="iibb"/>
45 <field name="start_date"/>35 <field name="start_date"/>
36 <field name="document_type_id" colspan="1"
37 on_change="onchange_document(vat,document_type_id,document_number)"/>
38 <field name="document_number" colspan="1"
39 on_change="onchange_document(vat,document_type_id,document_number)"/>
46 </field>40 </field>
47 </data>41 </data>
48 </field>42 </field>
4943
=== added directory 'l10n_ar_invoice_sale'
=== added file 'l10n_ar_invoice_sale/AUTHORS'
--- l10n_ar_invoice_sale/AUTHORS 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_sale/AUTHORS 2014-01-20 20:26:39 +0000
@@ -0,0 +1,38 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21#
22# En este archivo encontrará la lista de contribuyentes al código del
23# presente módulo de la localización argentina.
24#
25# Si usted ha contribuido debe indicar su nombre y correo electrónico tal
26# como se presenta a continuación.
27#
28# El órden de contribución será determinado en forma alfabética. Si quiere
29# saber como ha contribuido cada autor en el módulo le recomendamos ver la
30# página de launchpad
31#
32# http://bazaar.launchpad.net/~openerp-l10n-ar-localization/openerp-l10n-ar-localization/6.0/changes
33#
34##############################################################################
35
36Juan José Scarafía <scarafia.juanjose@gmail.com>
37
38# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
039
=== added file 'l10n_ar_invoice_sale/LICENSE'
--- l10n_ar_invoice_sale/LICENSE 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_sale/LICENSE 2014-01-20 20:26:39 +0000
@@ -0,0 +1,661 @@
1 GNU AFFERO GENERAL PUBLIC LICENSE
2 Version 3, 19 November 2007
3
4 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5 Everyone is permitted to copy and distribute verbatim copies
6 of this license document, but changing it is not allowed.
7
8 Preamble
9
10 The GNU Affero General Public License is a free, copyleft license for
11software and other kinds of works, specifically designed to ensure
12cooperation with the community in the case of network server software.
13
14 The licenses for most software and other practical works are designed
15to take away your freedom to share and change the works. By contrast,
16our General Public Licenses are intended to guarantee your freedom to
17share and change all versions of a program--to make sure it remains free
18software for all its users.
19
20 When we speak of free software, we are referring to freedom, not
21price. Our General Public Licenses are designed to make sure that you
22have the freedom to distribute copies of free software (and charge for
23them if you wish), that you receive source code or can get it if you
24want it, that you can change the software or use pieces of it in new
25free programs, and that you know you can do these things.
26
27 Developers that use our General Public Licenses protect your rights
28with two steps: (1) assert copyright on the software, and (2) offer
29you this License which gives you legal permission to copy, distribute
30and/or modify the software.
31
32 A secondary benefit of defending all users' freedom is that
33improvements made in alternate versions of the program, if they
34receive widespread use, become available for other developers to
35incorporate. Many developers of free software are heartened and
36encouraged by the resulting cooperation. However, in the case of
37software used on network servers, this result may fail to come about.
38The GNU General Public License permits making a modified version and
39letting the public access it on a server without ever releasing its
40source code to the public.
41
42 The GNU Affero General Public License is designed specifically to
43ensure that, in such cases, the modified source code becomes available
44to the community. It requires the operator of a network server to
45provide the source code of the modified version running there to the
46users of that server. Therefore, public use of a modified version, on
47a publicly accessible server, gives the public access to the source
48code of the modified version.
49
50 An older license, called the Affero General Public License and
51published by Affero, was designed to accomplish similar goals. This is
52a different license, not a version of the Affero GPL, but Affero has
53released a new version of the Affero GPL which permits relicensing under
54this license.
55
56 The precise terms and conditions for copying, distribution and
57modification follow.
58
59 TERMS AND CONDITIONS
60
61 0. Definitions.
62
63 "This License" refers to version 3 of the GNU Affero General Public License.
64
65 "Copyright" also means copyright-like laws that apply to other kinds of
66works, such as semiconductor masks.
67
68 "The Program" refers to any copyrightable work licensed under this
69License. Each licensee is addressed as "you". "Licensees" and
70"recipients" may be individuals or organizations.
71
72 To "modify" a work means to copy from or adapt all or part of the work
73in a fashion requiring copyright permission, other than the making of an
74exact copy. The resulting work is called a "modified version" of the
75earlier work or a work "based on" the earlier work.
76
77 A "covered work" means either the unmodified Program or a work based
78on the Program.
79
80 To "propagate" a work means to do anything with it that, without
81permission, would make you directly or secondarily liable for
82infringement under applicable copyright law, except executing it on a
83computer or modifying a private copy. Propagation includes copying,
84distribution (with or without modification), making available to the
85public, and in some countries other activities as well.
86
87 To "convey" a work means any kind of propagation that enables other
88parties to make or receive copies. Mere interaction with a user through
89a computer network, with no transfer of a copy, is not conveying.
90
91 An interactive user interface displays "Appropriate Legal Notices"
92to the extent that it includes a convenient and prominently visible
93feature that (1) displays an appropriate copyright notice, and (2)
94tells the user that there is no warranty for the work (except to the
95extent that warranties are provided), that licensees may convey the
96work under this License, and how to view a copy of this License. If
97the interface presents a list of user commands or options, such as a
98menu, a prominent item in the list meets this criterion.
99
100 1. Source Code.
101
102 The "source code" for a work means the preferred form of the work
103for making modifications to it. "Object code" means any non-source
104form of a work.
105
106 A "Standard Interface" means an interface that either is an official
107standard defined by a recognized standards body, or, in the case of
108interfaces specified for a particular programming language, one that
109is widely used among developers working in that language.
110
111 The "System Libraries" of an executable work include anything, other
112than the work as a whole, that (a) is included in the normal form of
113packaging a Major Component, but which is not part of that Major
114Component, and (b) serves only to enable use of the work with that
115Major Component, or to implement a Standard Interface for which an
116implementation is available to the public in source code form. A
117"Major Component", in this context, means a major essential component
118(kernel, window system, and so on) of the specific operating system
119(if any) on which the executable work runs, or a compiler used to
120produce the work, or an object code interpreter used to run it.
121
122 The "Corresponding Source" for a work in object code form means all
123the source code needed to generate, install, and (for an executable
124work) run the object code and to modify the work, including scripts to
125control those activities. However, it does not include the work's
126System Libraries, or general-purpose tools or generally available free
127programs which are used unmodified in performing those activities but
128which are not part of the work. For example, Corresponding Source
129includes interface definition files associated with source files for
130the work, and the source code for shared libraries and dynamically
131linked subprograms that the work is specifically designed to require,
132such as by intimate data communication or control flow between those
133subprograms and other parts of the work.
134
135 The Corresponding Source need not include anything that users
136can regenerate automatically from other parts of the Corresponding
137Source.
138
139 The Corresponding Source for a work in source code form is that
140same work.
141
142 2. Basic Permissions.
143
144 All rights granted under this License are granted for the term of
145copyright on the Program, and are irrevocable provided the stated
146conditions are met. This License explicitly affirms your unlimited
147permission to run the unmodified Program. The output from running a
148covered work is covered by this License only if the output, given its
149content, constitutes a covered work. This License acknowledges your
150rights of fair use or other equivalent, as provided by copyright law.
151
152 You may make, run and propagate covered works that you do not
153convey, without conditions so long as your license otherwise remains
154in force. You may convey covered works to others for the sole purpose
155of having them make modifications exclusively for you, or provide you
156with facilities for running those works, provided that you comply with
157the terms of this License in conveying all material for which you do
158not control copyright. Those thus making or running the covered works
159for you must do so exclusively on your behalf, under your direction
160and control, on terms that prohibit them from making any copies of
161your copyrighted material outside their relationship with you.
162
163 Conveying under any other circumstances is permitted solely under
164the conditions stated below. Sublicensing is not allowed; section 10
165makes it unnecessary.
166
167 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
169 No covered work shall be deemed part of an effective technological
170measure under any applicable law fulfilling obligations under article
17111 of the WIPO copyright treaty adopted on 20 December 1996, or
172similar laws prohibiting or restricting circumvention of such
173measures.
174
175 When you convey a covered work, you waive any legal power to forbid
176circumvention of technological measures to the extent such circumvention
177is effected by exercising rights under this License with respect to
178the covered work, and you disclaim any intention to limit operation or
179modification of the work as a means of enforcing, against the work's
180users, your or third parties' legal rights to forbid circumvention of
181technological measures.
182
183 4. Conveying Verbatim Copies.
184
185 You may convey verbatim copies of the Program's source code as you
186receive it, in any medium, provided that you conspicuously and
187appropriately publish on each copy an appropriate copyright notice;
188keep intact all notices stating that this License and any
189non-permissive terms added in accord with section 7 apply to the code;
190keep intact all notices of the absence of any warranty; and give all
191recipients a copy of this License along with the Program.
192
193 You may charge any price or no price for each copy that you convey,
194and you may offer support or warranty protection for a fee.
195
196 5. Conveying Modified Source Versions.
197
198 You may convey a work based on the Program, or the modifications to
199produce it from the Program, in the form of source code under the
200terms of section 4, provided that you also meet all of these conditions:
201
202 a) The work must carry prominent notices stating that you modified
203 it, and giving a relevant date.
204
205 b) The work must carry prominent notices stating that it is
206 released under this License and any conditions added under section
207 7. This requirement modifies the requirement in section 4 to
208 "keep intact all notices".
209
210 c) You must license the entire work, as a whole, under this
211 License to anyone who comes into possession of a copy. This
212 License will therefore apply, along with any applicable section 7
213 additional terms, to the whole of the work, and all its parts,
214 regardless of how they are packaged. This License gives no
215 permission to license the work in any other way, but it does not
216 invalidate such permission if you have separately received it.
217
218 d) If the work has interactive user interfaces, each must display
219 Appropriate Legal Notices; however, if the Program has interactive
220 interfaces that do not display Appropriate Legal Notices, your
221 work need not make them do so.
222
223 A compilation of a covered work with other separate and independent
224works, which are not by their nature extensions of the covered work,
225and which are not combined with it such as to form a larger program,
226in or on a volume of a storage or distribution medium, is called an
227"aggregate" if the compilation and its resulting copyright are not
228used to limit the access or legal rights of the compilation's users
229beyond what the individual works permit. Inclusion of a covered work
230in an aggregate does not cause this License to apply to the other
231parts of the aggregate.
232
233 6. Conveying Non-Source Forms.
234
235 You may convey a covered work in object code form under the terms
236of sections 4 and 5, provided that you also convey the
237machine-readable Corresponding Source under the terms of this License,
238in one of these ways:
239
240 a) Convey the object code in, or embodied in, a physical product
241 (including a physical distribution medium), accompanied by the
242 Corresponding Source fixed on a durable physical medium
243 customarily used for software interchange.
244
245 b) Convey the object code in, or embodied in, a physical product
246 (including a physical distribution medium), accompanied by a
247 written offer, valid for at least three years and valid for as
248 long as you offer spare parts or customer support for that product
249 model, to give anyone who possesses the object code either (1) a
250 copy of the Corresponding Source for all the software in the
251 product that is covered by this License, on a durable physical
252 medium customarily used for software interchange, for a price no
253 more than your reasonable cost of physically performing this
254 conveying of source, or (2) access to copy the
255 Corresponding Source from a network server at no charge.
256
257 c) Convey individual copies of the object code with a copy of the
258 written offer to provide the Corresponding Source. This
259 alternative is allowed only occasionally and noncommercially, and
260 only if you received the object code with such an offer, in accord
261 with subsection 6b.
262
263 d) Convey the object code by offering access from a designated
264 place (gratis or for a charge), and offer equivalent access to the
265 Corresponding Source in the same way through the same place at no
266 further charge. You need not require recipients to copy the
267 Corresponding Source along with the object code. If the place to
268 copy the object code is a network server, the Corresponding Source
269 may be on a different server (operated by you or a third party)
270 that supports equivalent copying facilities, provided you maintain
271 clear directions next to the object code saying where to find the
272 Corresponding Source. Regardless of what server hosts the
273 Corresponding Source, you remain obligated to ensure that it is
274 available for as long as needed to satisfy these requirements.
275
276 e) Convey the object code using peer-to-peer transmission, provided
277 you inform other peers where the object code and Corresponding
278 Source of the work are being offered to the general public at no
279 charge under subsection 6d.
280
281 A separable portion of the object code, whose source code is excluded
282from the Corresponding Source as a System Library, need not be
283included in conveying the object code work.
284
285 A "User Product" is either (1) a "consumer product", which means any
286tangible personal property which is normally used for personal, family,
287or household purposes, or (2) anything designed or sold for incorporation
288into a dwelling. In determining whether a product is a consumer product,
289doubtful cases shall be resolved in favor of coverage. For a particular
290product received by a particular user, "normally used" refers to a
291typical or common use of that class of product, regardless of the status
292of the particular user or of the way in which the particular user
293actually uses, or expects or is expected to use, the product. A product
294is a consumer product regardless of whether the product has substantial
295commercial, industrial or non-consumer uses, unless such uses represent
296the only significant mode of use of the product.
297
298 "Installation Information" for a User Product means any methods,
299procedures, authorization keys, or other information required to install
300and execute modified versions of a covered work in that User Product from
301a modified version of its Corresponding Source. The information must
302suffice to ensure that the continued functioning of the modified object
303code is in no case prevented or interfered with solely because
304modification has been made.
305
306 If you convey an object code work under this section in, or with, or
307specifically for use in, a User Product, and the conveying occurs as
308part of a transaction in which the right of possession and use of the
309User Product is transferred to the recipient in perpetuity or for a
310fixed term (regardless of how the transaction is characterized), the
311Corresponding Source conveyed under this section must be accompanied
312by the Installation Information. But this requirement does not apply
313if neither you nor any third party retains the ability to install
314modified object code on the User Product (for example, the work has
315been installed in ROM).
316
317 The requirement to provide Installation Information does not include a
318requirement to continue to provide support service, warranty, or updates
319for a work that has been modified or installed by the recipient, or for
320the User Product in which it has been modified or installed. Access to a
321network may be denied when the modification itself materially and
322adversely affects the operation of the network or violates the rules and
323protocols for communication across the network.
324
325 Corresponding Source conveyed, and Installation Information provided,
326in accord with this section must be in a format that is publicly
327documented (and with an implementation available to the public in
328source code form), and must require no special password or key for
329unpacking, reading or copying.
330
331 7. Additional Terms.
332
333 "Additional permissions" are terms that supplement the terms of this
334License by making exceptions from one or more of its conditions.
335Additional permissions that are applicable to the entire Program shall
336be treated as though they were included in this License, to the extent
337that they are valid under applicable law. If additional permissions
338apply only to part of the Program, that part may be used separately
339under those permissions, but the entire Program remains governed by
340this License without regard to the additional permissions.
341
342 When you convey a copy of a covered work, you may at your option
343remove any additional permissions from that copy, or from any part of
344it. (Additional permissions may be written to require their own
345removal in certain cases when you modify the work.) You may place
346additional permissions on material, added by you to a covered work,
347for which you have or can give appropriate copyright permission.
348
349 Notwithstanding any other provision of this License, for material you
350add to a covered work, you may (if authorized by the copyright holders of
351that material) supplement the terms of this License with terms:
352
353 a) Disclaiming warranty or limiting liability differently from the
354 terms of sections 15 and 16 of this License; or
355
356 b) Requiring preservation of specified reasonable legal notices or
357 author attributions in that material or in the Appropriate Legal
358 Notices displayed by works containing it; or
359
360 c) Prohibiting misrepresentation of the origin of that material, or
361 requiring that modified versions of such material be marked in
362 reasonable ways as different from the original version; or
363
364 d) Limiting the use for publicity purposes of names of licensors or
365 authors of the material; or
366
367 e) Declining to grant rights under trademark law for use of some
368 trade names, trademarks, or service marks; or
369
370 f) Requiring indemnification of licensors and authors of that
371 material by anyone who conveys the material (or modified versions of
372 it) with contractual assumptions of liability to the recipient, for
373 any liability that these contractual assumptions directly impose on
374 those licensors and authors.
375
376 All other non-permissive additional terms are considered "further
377restrictions" within the meaning of section 10. If the Program as you
378received it, or any part of it, contains a notice stating that it is
379governed by this License along with a term that is a further
380restriction, you may remove that term. If a license document contains
381a further restriction but permits relicensing or conveying under this
382License, you may add to a covered work material governed by the terms
383of that license document, provided that the further restriction does
384not survive such relicensing or conveying.
385
386 If you add terms to a covered work in accord with this section, you
387must place, in the relevant source files, a statement of the
388additional terms that apply to those files, or a notice indicating
389where to find the applicable terms.
390
391 Additional terms, permissive or non-permissive, may be stated in the
392form of a separately written license, or stated as exceptions;
393the above requirements apply either way.
394
395 8. Termination.
396
397 You may not propagate or modify a covered work except as expressly
398provided under this License. Any attempt otherwise to propagate or
399modify it is void, and will automatically terminate your rights under
400this License (including any patent licenses granted under the third
401paragraph of section 11).
402
403 However, if you cease all violation of this License, then your
404license from a particular copyright holder is reinstated (a)
405provisionally, unless and until the copyright holder explicitly and
406finally terminates your license, and (b) permanently, if the copyright
407holder fails to notify you of the violation by some reasonable means
408prior to 60 days after the cessation.
409
410 Moreover, your license from a particular copyright holder is
411reinstated permanently if the copyright holder notifies you of the
412violation by some reasonable means, this is the first time you have
413received notice of violation of this License (for any work) from that
414copyright holder, and you cure the violation prior to 30 days after
415your receipt of the notice.
416
417 Termination of your rights under this section does not terminate the
418licenses of parties who have received copies or rights from you under
419this License. If your rights have been terminated and not permanently
420reinstated, you do not qualify to receive new licenses for the same
421material under section 10.
422
423 9. Acceptance Not Required for Having Copies.
424
425 You are not required to accept this License in order to receive or
426run a copy of the Program. Ancillary propagation of a covered work
427occurring solely as a consequence of using peer-to-peer transmission
428to receive a copy likewise does not require acceptance. However,
429nothing other than this License grants you permission to propagate or
430modify any covered work. These actions infringe copyright if you do
431not accept this License. Therefore, by modifying or propagating a
432covered work, you indicate your acceptance of this License to do so.
433
434 10. Automatic Licensing of Downstream Recipients.
435
436 Each time you convey a covered work, the recipient automatically
437receives a license from the original licensors, to run, modify and
438propagate that work, subject to this License. You are not responsible
439for enforcing compliance by third parties with this License.
440
441 An "entity transaction" is a transaction transferring control of an
442organization, or substantially all assets of one, or subdividing an
443organization, or merging organizations. If propagation of a covered
444work results from an entity transaction, each party to that
445transaction who receives a copy of the work also receives whatever
446licenses to the work the party's predecessor in interest had or could
447give under the previous paragraph, plus a right to possession of the
448Corresponding Source of the work from the predecessor in interest, if
449the predecessor has it or can get it with reasonable efforts.
450
451 You may not impose any further restrictions on the exercise of the
452rights granted or affirmed under this License. For example, you may
453not impose a license fee, royalty, or other charge for exercise of
454rights granted under this License, and you may not initiate litigation
455(including a cross-claim or counterclaim in a lawsuit) alleging that
456any patent claim is infringed by making, using, selling, offering for
457sale, or importing the Program or any portion of it.
458
459 11. Patents.
460
461 A "contributor" is a copyright holder who authorizes use under this
462License of the Program or a work on which the Program is based. The
463work thus licensed is called the contributor's "contributor version".
464
465 A contributor's "essential patent claims" are all patent claims
466owned or controlled by the contributor, whether already acquired or
467hereafter acquired, that would be infringed by some manner, permitted
468by this License, of making, using, or selling its contributor version,
469but do not include claims that would be infringed only as a
470consequence of further modification of the contributor version. For
471purposes of this definition, "control" includes the right to grant
472patent sublicenses in a manner consistent with the requirements of
473this License.
474
475 Each contributor grants you a non-exclusive, worldwide, royalty-free
476patent license under the contributor's essential patent claims, to
477make, use, sell, offer for sale, import and otherwise run, modify and
478propagate the contents of its contributor version.
479
480 In the following three paragraphs, a "patent license" is any express
481agreement or commitment, however denominated, not to enforce a patent
482(such as an express permission to practice a patent or covenant not to
483sue for patent infringement). To "grant" such a patent license to a
484party means to make such an agreement or commitment not to enforce a
485patent against the party.
486
487 If you convey a covered work, knowingly relying on a patent license,
488and the Corresponding Source of the work is not available for anyone
489to copy, free of charge and under the terms of this License, through a
490publicly available network server or other readily accessible means,
491then you must either (1) cause the Corresponding Source to be so
492available, or (2) arrange to deprive yourself of the benefit of the
493patent license for this particular work, or (3) arrange, in a manner
494consistent with the requirements of this License, to extend the patent
495license to downstream recipients. "Knowingly relying" means you have
496actual knowledge that, but for the patent license, your conveying the
497covered work in a country, or your recipient's use of the covered work
498in a country, would infringe one or more identifiable patents in that
499country that you have reason to believe are valid.
500
501 If, pursuant to or in connection with a single transaction or
502arrangement, you convey, or propagate by procuring conveyance of, a
503covered work, and grant a patent license to some of the parties
504receiving the covered work authorizing them to use, propagate, modify
505or convey a specific copy of the covered work, then the patent license
506you grant is automatically extended to all recipients of the covered
507work and works based on it.
508
509 A patent license is "discriminatory" if it does not include within
510the scope of its coverage, prohibits the exercise of, or is
511conditioned on the non-exercise of one or more of the rights that are
512specifically granted under this License. You may not convey a covered
513work if you are a party to an arrangement with a third party that is
514in the business of distributing software, under which you make payment
515to the third party based on the extent of your activity of conveying
516the work, and under which the third party grants, to any of the
517parties who would receive the covered work from you, a discriminatory
518patent license (a) in connection with copies of the covered work
519conveyed by you (or copies made from those copies), or (b) primarily
520for and in connection with specific products or compilations that
521contain the covered work, unless you entered into that arrangement,
522or that patent license was granted, prior to 28 March 2007.
523
524 Nothing in this License shall be construed as excluding or limiting
525any implied license or other defenses to infringement that may
526otherwise be available to you under applicable patent law.
527
528 12. No Surrender of Others' Freedom.
529
530 If conditions are imposed on you (whether by court order, agreement or
531otherwise) that contradict the conditions of this License, they do not
532excuse you from the conditions of this License. If you cannot convey a
533covered work so as to satisfy simultaneously your obligations under this
534License and any other pertinent obligations, then as a consequence you may
535not convey it at all. For example, if you agree to terms that obligate you
536to collect a royalty for further conveying from those to whom you convey
537the Program, the only way you could satisfy both those terms and this
538License would be to refrain entirely from conveying the Program.
539
540 13. Remote Network Interaction; Use with the GNU General Public License.
541
542 Notwithstanding any other provision of this License, if you modify the
543Program, your modified version must prominently offer all users
544interacting with it remotely through a computer network (if your version
545supports such interaction) an opportunity to receive the Corresponding
546Source of your version by providing access to the Corresponding Source
547from a network server at no charge, through some standard or customary
548means of facilitating copying of software. This Corresponding Source
549shall include the Corresponding Source for any work covered by version 3
550of the GNU General Public License that is incorporated pursuant to the
551following paragraph.
552
553 Notwithstanding any other provision of this License, you have
554permission to link or combine any covered work with a work licensed
555under version 3 of the GNU General Public License into a single
556combined work, and to convey the resulting work. The terms of this
557License will continue to apply to the part which is the covered work,
558but the work with which it is combined will remain governed by version
5593 of the GNU General Public License.
560
561 14. Revised Versions of this License.
562
563 The Free Software Foundation may publish revised and/or new versions of
564the GNU Affero General Public License from time to time. Such new versions
565will be similar in spirit to the present version, but may differ in detail to
566address new problems or concerns.
567
568 Each version is given a distinguishing version number. If the
569Program specifies that a certain numbered version of the GNU Affero General
570Public License "or any later version" applies to it, you have the
571option of following the terms and conditions either of that numbered
572version or of any later version published by the Free Software
573Foundation. If the Program does not specify a version number of the
574GNU Affero General Public License, you may choose any version ever published
575by the Free Software Foundation.
576
577 If the Program specifies that a proxy can decide which future
578versions of the GNU Affero General Public License can be used, that proxy's
579public statement of acceptance of a version permanently authorizes you
580to choose that version for the Program.
581
582 Later license versions may give you additional or different
583permissions. However, no additional obligations are imposed on any
584author or copyright holder as a result of your choosing to follow a
585later version.
586
587 15. Disclaimer of Warranty.
588
589 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
598 16. Limitation of Liability.
599
600 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608SUCH DAMAGES.
609
610 17. Interpretation of Sections 15 and 16.
611
612 If the disclaimer of warranty and limitation of liability provided
613above cannot be given local legal effect according to their terms,
614reviewing courts shall apply local law that most closely approximates
615an absolute waiver of all civil liability in connection with the
616Program, unless a warranty or assumption of liability accompanies a
617copy of the Program in return for a fee.
618
619 END OF TERMS AND CONDITIONS
620
621 How to Apply These Terms to Your New Programs
622
623 If you develop a new program, and you want it to be of the greatest
624possible use to the public, the best way to achieve this is to make it
625free software which everyone can redistribute and change under these terms.
626
627 To do so, attach the following notices to the program. It is safest
628to attach them to the start of each source file to most effectively
629state the exclusion of warranty; and each file should have at least
630the "copyright" line and a pointer to where the full notice is found.
631
632 <one line to give the program's name and a brief idea of what it does.>
633 Copyright (C) <year> <name of author>
634
635 This program is free software: you can redistribute it and/or modify
636 it under the terms of the GNU Affero General Public License as published by
637 the Free Software Foundation, either version 3 of the License, or
638 (at your option) any later version.
639
640 This program is distributed in the hope that it will be useful,
641 but WITHOUT ANY WARRANTY; without even the implied warranty of
642 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 GNU Affero General Public License for more details.
644
645 You should have received a copy of the GNU Affero General Public License
646 along with this program. If not, see <http://www.gnu.org/licenses/>.
647
648Also add information on how to contact you by electronic and paper mail.
649
650 If your software can interact with users remotely through a computer
651network, you should also make sure that it provides a way for users to
652get its source. For example, if your program is a web application, its
653interface could display a "Source" link that leads users to an archive
654of the code. There are many ways you could offer source, and different
655solutions will be better for different programs; see section 13 for the
656specific requirements.
657
658 You should also get your employer (if you work as a programmer) or school,
659if any, to sign a "copyright disclaimer" for the program, if necessary.
660For more information on this, and how to apply and follow the GNU AGPL, see
661<http://www.gnu.org/licenses/>.
0662
=== added file 'l10n_ar_invoice_sale/__init__.py'
--- l10n_ar_invoice_sale/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_sale/__init__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,24 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import sale
23
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
025
=== added file 'l10n_ar_invoice_sale/__openerp__.py'
--- l10n_ar_invoice_sale/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_sale/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,43 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{ 'active': False,
22 'author': 'OpenERP - Team de Localizaci\xc3\xb3n Argentina',
23 'category': 'Localization/Argentina',
24 'demo_xml': [],
25 'depends': [
26 'l10n_ar_invoice',
27 'sale'],
28 'description': '''
29Modulo que integra l10n_ar_invoice y sale. Permite asignación automatica de diario al crear una factura desde una orden de venta
30TODO: ver si ya se hizo el merge del procedimiento de sale/wizard/sale_line_invoice.py, en ese caso no habria que hacer nada mas, si no hay que sobreescribir dicho procedimiento para elegir el jorunal correcto.
31''',
32 'init_xml': [],
33 'installable': True,
34 'auto_install': True,
35 'license': 'AGPL-3',
36 'name': 'Argentina - Asignación automática de Diarios',
37 'test': [
38 ],
39 'update_xml': [
40 ],
41 'version': '2.7.232',
42 'website': 'https://launchpad.net/~openerp-l10n-ar-localization'}
43# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
044
=== added directory 'l10n_ar_invoice_sale/data'
=== added directory 'l10n_ar_invoice_sale/i18n'
=== added directory 'l10n_ar_invoice_sale/report'
=== added file 'l10n_ar_invoice_sale/sale.py'
--- l10n_ar_invoice_sale/sale.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_sale/sale.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,63 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from datetime import datetime, timedelta
23from dateutil.relativedelta import relativedelta
24import time
25from openerp import pooler
26from openerp.osv import fields, osv
27from openerp.tools.translate import _
28from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare
29import openerp.addons.decimal_precision as dp
30from openerp import netsvc
31
32
33class sale_order(osv.osv):
34 _inherit = "sale.order"
35
36 def _prepare_invoice(self, cr, uid, order, lines, context=None):
37 if context is None:
38 context = {}
39
40 invoice_obj = self.pool.get('account.invoice')
41
42 result = super(sale_order,self)._prepare_invoice(cr, uid, order, lines, context=context)
43 journal_ids = self.pool.get('account.journal').search(cr, uid,
44 [('type', '=', 'sale'), ('company_id', '=', order.company_id.id)],
45 limit=1)
46
47 partner_id = result.get('partner_id' or False)
48 company_id = result.get('company_id' or False)
49 journal_type = 'sale'
50
51 journal_ids = False
52 journal_id = False
53
54 if company_id and partner_id:
55 journal_ids = invoice_obj.get_valid_journals(cr, uid, partner_id, journal_type, is_debit_note=False, company_id=company_id)
56
57 if journal_ids:
58 journal_id = journal_ids[0]
59
60 result['journal_id'] = journal_id
61
62 return result
63
0\ No newline at end of file64\ No newline at end of file
165
=== added directory 'l10n_ar_invoice_sale/security'
=== added directory 'l10n_ar_invoice_sale/test'
=== added directory 'l10n_ar_invoice_sale/view'
=== added directory 'l10n_ar_invoice_sale/wizard'
=== added directory 'l10n_ar_invoice_stock'
=== added file 'l10n_ar_invoice_stock/AUTHORS'
--- l10n_ar_invoice_stock/AUTHORS 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/AUTHORS 2014-01-20 20:26:39 +0000
@@ -0,0 +1,38 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21#
22# En este archivo encontrará la lista de contribuyentes al código del
23# presente módulo de la localización argentina.
24#
25# Si usted ha contribuido debe indicar su nombre y correo electrónico tal
26# como se presenta a continuación.
27#
28# El órden de contribución será determinado en forma alfabética. Si quiere
29# saber como ha contribuido cada autor en el módulo le recomendamos ver la
30# página de launchpad
31#
32# http://bazaar.launchpad.net/~openerp-l10n-ar-localization/openerp-l10n-ar-localization/6.0/changes
33#
34##############################################################################
35
36Juan José Scarafía <scarafia.juanjose@gmail.com>
37
38# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
039
=== added file 'l10n_ar_invoice_stock/LICENSE'
--- l10n_ar_invoice_stock/LICENSE 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/LICENSE 2014-01-20 20:26:39 +0000
@@ -0,0 +1,661 @@
1 GNU AFFERO GENERAL PUBLIC LICENSE
2 Version 3, 19 November 2007
3
4 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5 Everyone is permitted to copy and distribute verbatim copies
6 of this license document, but changing it is not allowed.
7
8 Preamble
9
10 The GNU Affero General Public License is a free, copyleft license for
11software and other kinds of works, specifically designed to ensure
12cooperation with the community in the case of network server software.
13
14 The licenses for most software and other practical works are designed
15to take away your freedom to share and change the works. By contrast,
16our General Public Licenses are intended to guarantee your freedom to
17share and change all versions of a program--to make sure it remains free
18software for all its users.
19
20 When we speak of free software, we are referring to freedom, not
21price. Our General Public Licenses are designed to make sure that you
22have the freedom to distribute copies of free software (and charge for
23them if you wish), that you receive source code or can get it if you
24want it, that you can change the software or use pieces of it in new
25free programs, and that you know you can do these things.
26
27 Developers that use our General Public Licenses protect your rights
28with two steps: (1) assert copyright on the software, and (2) offer
29you this License which gives you legal permission to copy, distribute
30and/or modify the software.
31
32 A secondary benefit of defending all users' freedom is that
33improvements made in alternate versions of the program, if they
34receive widespread use, become available for other developers to
35incorporate. Many developers of free software are heartened and
36encouraged by the resulting cooperation. However, in the case of
37software used on network servers, this result may fail to come about.
38The GNU General Public License permits making a modified version and
39letting the public access it on a server without ever releasing its
40source code to the public.
41
42 The GNU Affero General Public License is designed specifically to
43ensure that, in such cases, the modified source code becomes available
44to the community. It requires the operator of a network server to
45provide the source code of the modified version running there to the
46users of that server. Therefore, public use of a modified version, on
47a publicly accessible server, gives the public access to the source
48code of the modified version.
49
50 An older license, called the Affero General Public License and
51published by Affero, was designed to accomplish similar goals. This is
52a different license, not a version of the Affero GPL, but Affero has
53released a new version of the Affero GPL which permits relicensing under
54this license.
55
56 The precise terms and conditions for copying, distribution and
57modification follow.
58
59 TERMS AND CONDITIONS
60
61 0. Definitions.
62
63 "This License" refers to version 3 of the GNU Affero General Public License.
64
65 "Copyright" also means copyright-like laws that apply to other kinds of
66works, such as semiconductor masks.
67
68 "The Program" refers to any copyrightable work licensed under this
69License. Each licensee is addressed as "you". "Licensees" and
70"recipients" may be individuals or organizations.
71
72 To "modify" a work means to copy from or adapt all or part of the work
73in a fashion requiring copyright permission, other than the making of an
74exact copy. The resulting work is called a "modified version" of the
75earlier work or a work "based on" the earlier work.
76
77 A "covered work" means either the unmodified Program or a work based
78on the Program.
79
80 To "propagate" a work means to do anything with it that, without
81permission, would make you directly or secondarily liable for
82infringement under applicable copyright law, except executing it on a
83computer or modifying a private copy. Propagation includes copying,
84distribution (with or without modification), making available to the
85public, and in some countries other activities as well.
86
87 To "convey" a work means any kind of propagation that enables other
88parties to make or receive copies. Mere interaction with a user through
89a computer network, with no transfer of a copy, is not conveying.
90
91 An interactive user interface displays "Appropriate Legal Notices"
92to the extent that it includes a convenient and prominently visible
93feature that (1) displays an appropriate copyright notice, and (2)
94tells the user that there is no warranty for the work (except to the
95extent that warranties are provided), that licensees may convey the
96work under this License, and how to view a copy of this License. If
97the interface presents a list of user commands or options, such as a
98menu, a prominent item in the list meets this criterion.
99
100 1. Source Code.
101
102 The "source code" for a work means the preferred form of the work
103for making modifications to it. "Object code" means any non-source
104form of a work.
105
106 A "Standard Interface" means an interface that either is an official
107standard defined by a recognized standards body, or, in the case of
108interfaces specified for a particular programming language, one that
109is widely used among developers working in that language.
110
111 The "System Libraries" of an executable work include anything, other
112than the work as a whole, that (a) is included in the normal form of
113packaging a Major Component, but which is not part of that Major
114Component, and (b) serves only to enable use of the work with that
115Major Component, or to implement a Standard Interface for which an
116implementation is available to the public in source code form. A
117"Major Component", in this context, means a major essential component
118(kernel, window system, and so on) of the specific operating system
119(if any) on which the executable work runs, or a compiler used to
120produce the work, or an object code interpreter used to run it.
121
122 The "Corresponding Source" for a work in object code form means all
123the source code needed to generate, install, and (for an executable
124work) run the object code and to modify the work, including scripts to
125control those activities. However, it does not include the work's
126System Libraries, or general-purpose tools or generally available free
127programs which are used unmodified in performing those activities but
128which are not part of the work. For example, Corresponding Source
129includes interface definition files associated with source files for
130the work, and the source code for shared libraries and dynamically
131linked subprograms that the work is specifically designed to require,
132such as by intimate data communication or control flow between those
133subprograms and other parts of the work.
134
135 The Corresponding Source need not include anything that users
136can regenerate automatically from other parts of the Corresponding
137Source.
138
139 The Corresponding Source for a work in source code form is that
140same work.
141
142 2. Basic Permissions.
143
144 All rights granted under this License are granted for the term of
145copyright on the Program, and are irrevocable provided the stated
146conditions are met. This License explicitly affirms your unlimited
147permission to run the unmodified Program. The output from running a
148covered work is covered by this License only if the output, given its
149content, constitutes a covered work. This License acknowledges your
150rights of fair use or other equivalent, as provided by copyright law.
151
152 You may make, run and propagate covered works that you do not
153convey, without conditions so long as your license otherwise remains
154in force. You may convey covered works to others for the sole purpose
155of having them make modifications exclusively for you, or provide you
156with facilities for running those works, provided that you comply with
157the terms of this License in conveying all material for which you do
158not control copyright. Those thus making or running the covered works
159for you must do so exclusively on your behalf, under your direction
160and control, on terms that prohibit them from making any copies of
161your copyrighted material outside their relationship with you.
162
163 Conveying under any other circumstances is permitted solely under
164the conditions stated below. Sublicensing is not allowed; section 10
165makes it unnecessary.
166
167 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
169 No covered work shall be deemed part of an effective technological
170measure under any applicable law fulfilling obligations under article
17111 of the WIPO copyright treaty adopted on 20 December 1996, or
172similar laws prohibiting or restricting circumvention of such
173measures.
174
175 When you convey a covered work, you waive any legal power to forbid
176circumvention of technological measures to the extent such circumvention
177is effected by exercising rights under this License with respect to
178the covered work, and you disclaim any intention to limit operation or
179modification of the work as a means of enforcing, against the work's
180users, your or third parties' legal rights to forbid circumvention of
181technological measures.
182
183 4. Conveying Verbatim Copies.
184
185 You may convey verbatim copies of the Program's source code as you
186receive it, in any medium, provided that you conspicuously and
187appropriately publish on each copy an appropriate copyright notice;
188keep intact all notices stating that this License and any
189non-permissive terms added in accord with section 7 apply to the code;
190keep intact all notices of the absence of any warranty; and give all
191recipients a copy of this License along with the Program.
192
193 You may charge any price or no price for each copy that you convey,
194and you may offer support or warranty protection for a fee.
195
196 5. Conveying Modified Source Versions.
197
198 You may convey a work based on the Program, or the modifications to
199produce it from the Program, in the form of source code under the
200terms of section 4, provided that you also meet all of these conditions:
201
202 a) The work must carry prominent notices stating that you modified
203 it, and giving a relevant date.
204
205 b) The work must carry prominent notices stating that it is
206 released under this License and any conditions added under section
207 7. This requirement modifies the requirement in section 4 to
208 "keep intact all notices".
209
210 c) You must license the entire work, as a whole, under this
211 License to anyone who comes into possession of a copy. This
212 License will therefore apply, along with any applicable section 7
213 additional terms, to the whole of the work, and all its parts,
214 regardless of how they are packaged. This License gives no
215 permission to license the work in any other way, but it does not
216 invalidate such permission if you have separately received it.
217
218 d) If the work has interactive user interfaces, each must display
219 Appropriate Legal Notices; however, if the Program has interactive
220 interfaces that do not display Appropriate Legal Notices, your
221 work need not make them do so.
222
223 A compilation of a covered work with other separate and independent
224works, which are not by their nature extensions of the covered work,
225and which are not combined with it such as to form a larger program,
226in or on a volume of a storage or distribution medium, is called an
227"aggregate" if the compilation and its resulting copyright are not
228used to limit the access or legal rights of the compilation's users
229beyond what the individual works permit. Inclusion of a covered work
230in an aggregate does not cause this License to apply to the other
231parts of the aggregate.
232
233 6. Conveying Non-Source Forms.
234
235 You may convey a covered work in object code form under the terms
236of sections 4 and 5, provided that you also convey the
237machine-readable Corresponding Source under the terms of this License,
238in one of these ways:
239
240 a) Convey the object code in, or embodied in, a physical product
241 (including a physical distribution medium), accompanied by the
242 Corresponding Source fixed on a durable physical medium
243 customarily used for software interchange.
244
245 b) Convey the object code in, or embodied in, a physical product
246 (including a physical distribution medium), accompanied by a
247 written offer, valid for at least three years and valid for as
248 long as you offer spare parts or customer support for that product
249 model, to give anyone who possesses the object code either (1) a
250 copy of the Corresponding Source for all the software in the
251 product that is covered by this License, on a durable physical
252 medium customarily used for software interchange, for a price no
253 more than your reasonable cost of physically performing this
254 conveying of source, or (2) access to copy the
255 Corresponding Source from a network server at no charge.
256
257 c) Convey individual copies of the object code with a copy of the
258 written offer to provide the Corresponding Source. This
259 alternative is allowed only occasionally and noncommercially, and
260 only if you received the object code with such an offer, in accord
261 with subsection 6b.
262
263 d) Convey the object code by offering access from a designated
264 place (gratis or for a charge), and offer equivalent access to the
265 Corresponding Source in the same way through the same place at no
266 further charge. You need not require recipients to copy the
267 Corresponding Source along with the object code. If the place to
268 copy the object code is a network server, the Corresponding Source
269 may be on a different server (operated by you or a third party)
270 that supports equivalent copying facilities, provided you maintain
271 clear directions next to the object code saying where to find the
272 Corresponding Source. Regardless of what server hosts the
273 Corresponding Source, you remain obligated to ensure that it is
274 available for as long as needed to satisfy these requirements.
275
276 e) Convey the object code using peer-to-peer transmission, provided
277 you inform other peers where the object code and Corresponding
278 Source of the work are being offered to the general public at no
279 charge under subsection 6d.
280
281 A separable portion of the object code, whose source code is excluded
282from the Corresponding Source as a System Library, need not be
283included in conveying the object code work.
284
285 A "User Product" is either (1) a "consumer product", which means any
286tangible personal property which is normally used for personal, family,
287or household purposes, or (2) anything designed or sold for incorporation
288into a dwelling. In determining whether a product is a consumer product,
289doubtful cases shall be resolved in favor of coverage. For a particular
290product received by a particular user, "normally used" refers to a
291typical or common use of that class of product, regardless of the status
292of the particular user or of the way in which the particular user
293actually uses, or expects or is expected to use, the product. A product
294is a consumer product regardless of whether the product has substantial
295commercial, industrial or non-consumer uses, unless such uses represent
296the only significant mode of use of the product.
297
298 "Installation Information" for a User Product means any methods,
299procedures, authorization keys, or other information required to install
300and execute modified versions of a covered work in that User Product from
301a modified version of its Corresponding Source. The information must
302suffice to ensure that the continued functioning of the modified object
303code is in no case prevented or interfered with solely because
304modification has been made.
305
306 If you convey an object code work under this section in, or with, or
307specifically for use in, a User Product, and the conveying occurs as
308part of a transaction in which the right of possession and use of the
309User Product is transferred to the recipient in perpetuity or for a
310fixed term (regardless of how the transaction is characterized), the
311Corresponding Source conveyed under this section must be accompanied
312by the Installation Information. But this requirement does not apply
313if neither you nor any third party retains the ability to install
314modified object code on the User Product (for example, the work has
315been installed in ROM).
316
317 The requirement to provide Installation Information does not include a
318requirement to continue to provide support service, warranty, or updates
319for a work that has been modified or installed by the recipient, or for
320the User Product in which it has been modified or installed. Access to a
321network may be denied when the modification itself materially and
322adversely affects the operation of the network or violates the rules and
323protocols for communication across the network.
324
325 Corresponding Source conveyed, and Installation Information provided,
326in accord with this section must be in a format that is publicly
327documented (and with an implementation available to the public in
328source code form), and must require no special password or key for
329unpacking, reading or copying.
330
331 7. Additional Terms.
332
333 "Additional permissions" are terms that supplement the terms of this
334License by making exceptions from one or more of its conditions.
335Additional permissions that are applicable to the entire Program shall
336be treated as though they were included in this License, to the extent
337that they are valid under applicable law. If additional permissions
338apply only to part of the Program, that part may be used separately
339under those permissions, but the entire Program remains governed by
340this License without regard to the additional permissions.
341
342 When you convey a copy of a covered work, you may at your option
343remove any additional permissions from that copy, or from any part of
344it. (Additional permissions may be written to require their own
345removal in certain cases when you modify the work.) You may place
346additional permissions on material, added by you to a covered work,
347for which you have or can give appropriate copyright permission.
348
349 Notwithstanding any other provision of this License, for material you
350add to a covered work, you may (if authorized by the copyright holders of
351that material) supplement the terms of this License with terms:
352
353 a) Disclaiming warranty or limiting liability differently from the
354 terms of sections 15 and 16 of this License; or
355
356 b) Requiring preservation of specified reasonable legal notices or
357 author attributions in that material or in the Appropriate Legal
358 Notices displayed by works containing it; or
359
360 c) Prohibiting misrepresentation of the origin of that material, or
361 requiring that modified versions of such material be marked in
362 reasonable ways as different from the original version; or
363
364 d) Limiting the use for publicity purposes of names of licensors or
365 authors of the material; or
366
367 e) Declining to grant rights under trademark law for use of some
368 trade names, trademarks, or service marks; or
369
370 f) Requiring indemnification of licensors and authors of that
371 material by anyone who conveys the material (or modified versions of
372 it) with contractual assumptions of liability to the recipient, for
373 any liability that these contractual assumptions directly impose on
374 those licensors and authors.
375
376 All other non-permissive additional terms are considered "further
377restrictions" within the meaning of section 10. If the Program as you
378received it, or any part of it, contains a notice stating that it is
379governed by this License along with a term that is a further
380restriction, you may remove that term. If a license document contains
381a further restriction but permits relicensing or conveying under this
382License, you may add to a covered work material governed by the terms
383of that license document, provided that the further restriction does
384not survive such relicensing or conveying.
385
386 If you add terms to a covered work in accord with this section, you
387must place, in the relevant source files, a statement of the
388additional terms that apply to those files, or a notice indicating
389where to find the applicable terms.
390
391 Additional terms, permissive or non-permissive, may be stated in the
392form of a separately written license, or stated as exceptions;
393the above requirements apply either way.
394
395 8. Termination.
396
397 You may not propagate or modify a covered work except as expressly
398provided under this License. Any attempt otherwise to propagate or
399modify it is void, and will automatically terminate your rights under
400this License (including any patent licenses granted under the third
401paragraph of section 11).
402
403 However, if you cease all violation of this License, then your
404license from a particular copyright holder is reinstated (a)
405provisionally, unless and until the copyright holder explicitly and
406finally terminates your license, and (b) permanently, if the copyright
407holder fails to notify you of the violation by some reasonable means
408prior to 60 days after the cessation.
409
410 Moreover, your license from a particular copyright holder is
411reinstated permanently if the copyright holder notifies you of the
412violation by some reasonable means, this is the first time you have
413received notice of violation of this License (for any work) from that
414copyright holder, and you cure the violation prior to 30 days after
415your receipt of the notice.
416
417 Termination of your rights under this section does not terminate the
418licenses of parties who have received copies or rights from you under
419this License. If your rights have been terminated and not permanently
420reinstated, you do not qualify to receive new licenses for the same
421material under section 10.
422
423 9. Acceptance Not Required for Having Copies.
424
425 You are not required to accept this License in order to receive or
426run a copy of the Program. Ancillary propagation of a covered work
427occurring solely as a consequence of using peer-to-peer transmission
428to receive a copy likewise does not require acceptance. However,
429nothing other than this License grants you permission to propagate or
430modify any covered work. These actions infringe copyright if you do
431not accept this License. Therefore, by modifying or propagating a
432covered work, you indicate your acceptance of this License to do so.
433
434 10. Automatic Licensing of Downstream Recipients.
435
436 Each time you convey a covered work, the recipient automatically
437receives a license from the original licensors, to run, modify and
438propagate that work, subject to this License. You are not responsible
439for enforcing compliance by third parties with this License.
440
441 An "entity transaction" is a transaction transferring control of an
442organization, or substantially all assets of one, or subdividing an
443organization, or merging organizations. If propagation of a covered
444work results from an entity transaction, each party to that
445transaction who receives a copy of the work also receives whatever
446licenses to the work the party's predecessor in interest had or could
447give under the previous paragraph, plus a right to possession of the
448Corresponding Source of the work from the predecessor in interest, if
449the predecessor has it or can get it with reasonable efforts.
450
451 You may not impose any further restrictions on the exercise of the
452rights granted or affirmed under this License. For example, you may
453not impose a license fee, royalty, or other charge for exercise of
454rights granted under this License, and you may not initiate litigation
455(including a cross-claim or counterclaim in a lawsuit) alleging that
456any patent claim is infringed by making, using, selling, offering for
457sale, or importing the Program or any portion of it.
458
459 11. Patents.
460
461 A "contributor" is a copyright holder who authorizes use under this
462License of the Program or a work on which the Program is based. The
463work thus licensed is called the contributor's "contributor version".
464
465 A contributor's "essential patent claims" are all patent claims
466owned or controlled by the contributor, whether already acquired or
467hereafter acquired, that would be infringed by some manner, permitted
468by this License, of making, using, or selling its contributor version,
469but do not include claims that would be infringed only as a
470consequence of further modification of the contributor version. For
471purposes of this definition, "control" includes the right to grant
472patent sublicenses in a manner consistent with the requirements of
473this License.
474
475 Each contributor grants you a non-exclusive, worldwide, royalty-free
476patent license under the contributor's essential patent claims, to
477make, use, sell, offer for sale, import and otherwise run, modify and
478propagate the contents of its contributor version.
479
480 In the following three paragraphs, a "patent license" is any express
481agreement or commitment, however denominated, not to enforce a patent
482(such as an express permission to practice a patent or covenant not to
483sue for patent infringement). To "grant" such a patent license to a
484party means to make such an agreement or commitment not to enforce a
485patent against the party.
486
487 If you convey a covered work, knowingly relying on a patent license,
488and the Corresponding Source of the work is not available for anyone
489to copy, free of charge and under the terms of this License, through a
490publicly available network server or other readily accessible means,
491then you must either (1) cause the Corresponding Source to be so
492available, or (2) arrange to deprive yourself of the benefit of the
493patent license for this particular work, or (3) arrange, in a manner
494consistent with the requirements of this License, to extend the patent
495license to downstream recipients. "Knowingly relying" means you have
496actual knowledge that, but for the patent license, your conveying the
497covered work in a country, or your recipient's use of the covered work
498in a country, would infringe one or more identifiable patents in that
499country that you have reason to believe are valid.
500
501 If, pursuant to or in connection with a single transaction or
502arrangement, you convey, or propagate by procuring conveyance of, a
503covered work, and grant a patent license to some of the parties
504receiving the covered work authorizing them to use, propagate, modify
505or convey a specific copy of the covered work, then the patent license
506you grant is automatically extended to all recipients of the covered
507work and works based on it.
508
509 A patent license is "discriminatory" if it does not include within
510the scope of its coverage, prohibits the exercise of, or is
511conditioned on the non-exercise of one or more of the rights that are
512specifically granted under this License. You may not convey a covered
513work if you are a party to an arrangement with a third party that is
514in the business of distributing software, under which you make payment
515to the third party based on the extent of your activity of conveying
516the work, and under which the third party grants, to any of the
517parties who would receive the covered work from you, a discriminatory
518patent license (a) in connection with copies of the covered work
519conveyed by you (or copies made from those copies), or (b) primarily
520for and in connection with specific products or compilations that
521contain the covered work, unless you entered into that arrangement,
522or that patent license was granted, prior to 28 March 2007.
523
524 Nothing in this License shall be construed as excluding or limiting
525any implied license or other defenses to infringement that may
526otherwise be available to you under applicable patent law.
527
528 12. No Surrender of Others' Freedom.
529
530 If conditions are imposed on you (whether by court order, agreement or
531otherwise) that contradict the conditions of this License, they do not
532excuse you from the conditions of this License. If you cannot convey a
533covered work so as to satisfy simultaneously your obligations under this
534License and any other pertinent obligations, then as a consequence you may
535not convey it at all. For example, if you agree to terms that obligate you
536to collect a royalty for further conveying from those to whom you convey
537the Program, the only way you could satisfy both those terms and this
538License would be to refrain entirely from conveying the Program.
539
540 13. Remote Network Interaction; Use with the GNU General Public License.
541
542 Notwithstanding any other provision of this License, if you modify the
543Program, your modified version must prominently offer all users
544interacting with it remotely through a computer network (if your version
545supports such interaction) an opportunity to receive the Corresponding
546Source of your version by providing access to the Corresponding Source
547from a network server at no charge, through some standard or customary
548means of facilitating copying of software. This Corresponding Source
549shall include the Corresponding Source for any work covered by version 3
550of the GNU General Public License that is incorporated pursuant to the
551following paragraph.
552
553 Notwithstanding any other provision of this License, you have
554permission to link or combine any covered work with a work licensed
555under version 3 of the GNU General Public License into a single
556combined work, and to convey the resulting work. The terms of this
557License will continue to apply to the part which is the covered work,
558but the work with which it is combined will remain governed by version
5593 of the GNU General Public License.
560
561 14. Revised Versions of this License.
562
563 The Free Software Foundation may publish revised and/or new versions of
564the GNU Affero General Public License from time to time. Such new versions
565will be similar in spirit to the present version, but may differ in detail to
566address new problems or concerns.
567
568 Each version is given a distinguishing version number. If the
569Program specifies that a certain numbered version of the GNU Affero General
570Public License "or any later version" applies to it, you have the
571option of following the terms and conditions either of that numbered
572version or of any later version published by the Free Software
573Foundation. If the Program does not specify a version number of the
574GNU Affero General Public License, you may choose any version ever published
575by the Free Software Foundation.
576
577 If the Program specifies that a proxy can decide which future
578versions of the GNU Affero General Public License can be used, that proxy's
579public statement of acceptance of a version permanently authorizes you
580to choose that version for the Program.
581
582 Later license versions may give you additional or different
583permissions. However, no additional obligations are imposed on any
584author or copyright holder as a result of your choosing to follow a
585later version.
586
587 15. Disclaimer of Warranty.
588
589 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
598 16. Limitation of Liability.
599
600 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608SUCH DAMAGES.
609
610 17. Interpretation of Sections 15 and 16.
611
612 If the disclaimer of warranty and limitation of liability provided
613above cannot be given local legal effect according to their terms,
614reviewing courts shall apply local law that most closely approximates
615an absolute waiver of all civil liability in connection with the
616Program, unless a warranty or assumption of liability accompanies a
617copy of the Program in return for a fee.
618
619 END OF TERMS AND CONDITIONS
620
621 How to Apply These Terms to Your New Programs
622
623 If you develop a new program, and you want it to be of the greatest
624possible use to the public, the best way to achieve this is to make it
625free software which everyone can redistribute and change under these terms.
626
627 To do so, attach the following notices to the program. It is safest
628to attach them to the start of each source file to most effectively
629state the exclusion of warranty; and each file should have at least
630the "copyright" line and a pointer to where the full notice is found.
631
632 <one line to give the program's name and a brief idea of what it does.>
633 Copyright (C) <year> <name of author>
634
635 This program is free software: you can redistribute it and/or modify
636 it under the terms of the GNU Affero General Public License as published by
637 the Free Software Foundation, either version 3 of the License, or
638 (at your option) any later version.
639
640 This program is distributed in the hope that it will be useful,
641 but WITHOUT ANY WARRANTY; without even the implied warranty of
642 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 GNU Affero General Public License for more details.
644
645 You should have received a copy of the GNU Affero General Public License
646 along with this program. If not, see <http://www.gnu.org/licenses/>.
647
648Also add information on how to contact you by electronic and paper mail.
649
650 If your software can interact with users remotely through a computer
651network, you should also make sure that it provides a way for users to
652get its source. For example, if your program is a web application, its
653interface could display a "Source" link that leads users to an archive
654of the code. There are many ways you could offer source, and different
655solutions will be better for different programs; see section 13 for the
656specific requirements.
657
658 You should also get your employer (if you work as a programmer) or school,
659if any, to sign a "copyright disclaimer" for the program, if necessary.
660For more information on this, and how to apply and follow the GNU AGPL, see
661<http://www.gnu.org/licenses/>.
0662
=== added file 'l10n_ar_invoice_stock/__init__.py'
--- l10n_ar_invoice_stock/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/__init__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,24 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import stock
23
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
025
=== added file 'l10n_ar_invoice_stock/__openerp__.py'
--- l10n_ar_invoice_stock/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,41 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 OpenERP - Team de Localización Argentina.
5# https://launchpad.net/~openerp-l10n-ar-localization
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{ 'active': False,
22 'author': 'OpenERP - Team de Localizaci\xc3\xb3n Argentina',
23 'category': 'Localization/Argentina',
24 'demo_xml': [],
25 'depends': [
26 'l10n_ar_invoice',
27 'stock'],
28 'description': 'Modulo que integra l10n_ar_invoice y stock. Permite asignación automatica de diario al crear una factura desde un picking',
29 'init_xml': [],
30 'installable': True,
31 'auto_install': True,
32 'license': 'AGPL-3',
33 'name': 'Argentina - Asignación automática de Diarios desde Picking',
34 'test': [
35 ],
36 'update_xml': [
37 'wizard/stock_inventory_merge_view.xml',
38 ],
39 'version': '2.7.232',
40 'website': 'https://launchpad.net/~openerp-l10n-ar-localization'}
41# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
042
=== added directory 'l10n_ar_invoice_stock/data'
=== added directory 'l10n_ar_invoice_stock/i18n'
=== added directory 'l10n_ar_invoice_stock/report'
=== added directory 'l10n_ar_invoice_stock/security'
=== added file 'l10n_ar_invoice_stock/stock.py'
--- l10n_ar_invoice_stock/stock.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/stock.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,81 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from datetime import datetime
23from dateutil.relativedelta import relativedelta
24import time
25from operator import itemgetter
26from itertools import groupby
27
28from openerp.osv import fields, osv, orm
29from openerp.tools.translate import _
30from openerp import netsvc
31from openerp import tools
32from openerp.tools import float_compare, DEFAULT_SERVER_DATETIME_FORMAT
33import openerp.addons.decimal_precision as dp
34import logging
35_logger = logging.getLogger(__name__)
36
37class stock_picking(osv.osv):
38 _inherit = "stock.picking"
39
40 def _prepare_invoice(self, cr, uid, picking, partner, inv_type, journal_id, context=None):
41 """ Builds the dict containing the values for the invoice
42 @param picking: picking object
43 @param partner: object of the partner to invoice
44 @param inv_type: type of the invoice ('out_invoice', 'in_invoice', ...)
45 @param journal_id: ID of the accounting journal
46 @return: dict that will be used to create the invoice object
47 """
48
49 if context is None:
50 context = {}
51
52 invoice_obj = self.pool.get('account.invoice')
53
54 invoice_vals = super(stock_picking,self)._prepare_invoice(cr, uid, picking, partner, inv_type, journal_id, context=context)
55
56 if inv_type == 'in_invoice':
57 journal_type = 'purchase'
58 elif inv_type == 'in_refund':
59 journal_type = 'purchase_refund'
60 elif inv_type == 'out_invoice':
61 journal_type = 'sale'
62 elif inv_type == 'out_refund':
63 journal_type = 'sale_refund'
64
65 partner_id = invoice_vals.get('partner_id' or False)
66 company_id = invoice_vals.get('company_id' or False)
67 journal_type = 'sale'
68
69 journal_ids = False
70 journal_id = False
71
72 if company_id and partner_id:
73 journal_ids = invoice_obj.get_valid_journals(cr, uid, partner_id, journal_type, is_debit_note=False, company_id=company_id)
74
75 if journal_ids:
76 journal_id = journal_ids[0]
77
78 invoice_vals['journal_id'] = journal_id
79
80 return invoice_vals
81
082
=== added directory 'l10n_ar_invoice_stock/test'
=== added directory 'l10n_ar_invoice_stock/view'
=== added directory 'l10n_ar_invoice_stock/wizard'
=== added file 'l10n_ar_invoice_stock/wizard/__init__.py'
=== added file 'l10n_ar_invoice_stock/wizard/stock_inventory_merge_view.xml'
--- l10n_ar_invoice_stock/wizard/stock_inventory_merge_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_invoice_stock/wizard/stock_inventory_merge_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,16 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <record id="view_stock_invoice_onshipping" model="ir.ui.view">
5 <field name="name">Stock Invoice Onshipping</field>
6 <field name="model">stock.invoice.onshipping</field>
7 <field name="inherit_id" ref="stock.view_stock_invoice_onshipping"/>
8 <field name="arch" type="xml">
9 <!-- We hide this field because it is choosen accordly the partner -->
10 <field name="journal_id" position="attributes">
11 <attribute name="invisible">True</attribute>
12 </field>
13 </field>
14 </record>
15 </data>
16</openerp>
017
=== added directory 'l10n_ar_pyafipws'
=== added file 'l10n_ar_pyafipws/__init__.py'
--- l10n_ar_pyafipws/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/__init__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,4 @@
1import authentication
2import journal
3import electronic_invoice
4
05
=== added file 'l10n_ar_pyafipws/__openerp__.py'
--- l10n_ar_pyafipws/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/__openerp__.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,17 @@
1{
2 "name": "PyAfipWs - Argentina AFIP Webservices", #
3 "version": "1.0",
4 "author": "Mariano Reingart / Sistemas �giles",
5 "description": "Autenticación, Facturación Electrónica y otros servicios",
6 "license": "AGPL-3",
7 "website": "http://www.sistemasagiles.com.ar/",
8 "category": "Localization/America/Argentina",
9 "depends": ["base","sale","account","crm"],
10 "init_xml": [],
11 "demo_xml": [],
12 "update_xml": ["data/res_company_view.xml",
13 "data/account_journal_view.xml",
14 "data/account_invoice_view.xml",
15 ],
16 "active": False
17}
018
=== added file 'l10n_ar_pyafipws/afip_auth.py'
--- l10n_ar_pyafipws/afip_auth.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/afip_auth.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,110 @@
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the Affero GNU General Public License as published by
5# the Software Foundation; either version 3, or (at your option) any later
6# version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11# for more details.
12#
13# Copyright 2013 by
14# Based on code "factura_electronica" by Luis Falcon (GPLv3)
15# Based on code by "openerp-iva-argentina" by Gerardo Allende / Daniel Blanco
16
17"Authentication functions for Argentina's Federal Tax Agency (AFIP) webservices"
18
19__author__ = "Mariano Reingart (reingart@gmail.com)"
20__copyright__ = "Copyright (C) 2013 Mariano Reingart and others"
21__license__ = "AGPL 3.0"
22
23# Están muchos valores de importe con valor absoluto, puesto que el CAE
24# en AFIP no acepta valores negativos.
25
26import hashlib
27import time
28import os
29import sys
30import traceback
31
32
33DEFAULT_TTL = 60*60*5 # five hours
34WSAA_URL = "" # change to production server (testing default)
35PROXY = "" # proxy credentials and host
36CACHE = "" # cache folder path, use default
37DEBUG = False
38
39
40def authenticate(service, certificate, private_key, force=False,
41 cache=CACHE, wsdl=WSAA_URL, proxy=PROXY, ):
42 "Call AFIP Authentication webservice to get token & sign or error message"
43
44 # import AFIP webservice authentication helper:
45 from pyafipws.wsaa import WSAA
46
47 # create AFIP webservice authentication helper instance:
48 wsaa = WSAA()
49 wsaa.LanzarExcepciones = True # raise python exceptions on any failure
50
51 # make md5 hash of the parameter for caching...
52 fn = "%s.xml" % hashlib.md5(service + certificate + private_key).hexdigest()
53 if cache:
54 fn = os.path.join(cache, fn)
55 else:
56 fn = os.path.join(wsaa.InstallDir, "cache", fn)
57
58 try:
59 # read the access ticket (if already authenticated)
60 if not os.path.exists(fn) or \
61 os.path.getmtime(fn)+(DEFAULT_TTL) < time.time():
62 # access ticket (TA) outdated, create new access request ticket (TRA)
63 tra = wsaa.CreateTRA(service=service, ttl=DEFAULT_TTL)
64 # cryptographically sing the access ticket
65 cms = wsaa.SignTRA(tra, certificate, private_key)
66 # connect to the webservice:
67 wsaa.Conectar(cache, wsdl, proxy)
68 # call the remote method
69 ta = wsaa.LoginCMS(cms)
70 if not ta:
71 raise RuntimeError()
72 # write the access ticket for further consumption
73 open(fn, "w").write(ta)
74 else:
75 # get the access ticket from the previously written file
76 ta = open(fn, "r").read()
77 # analyze the access ticket xml and extract the relevant fields
78 wsaa.AnalizarXml(xml=ta)
79 token = wsaa.ObtenerTagXml("token")
80 sign = wsaa.ObtenerTagXml("sign")
81 err_msg = None
82 except:
83 token = sign = None
84 if wsaa.Excepcion:
85 # get the exception already parsed by the helper
86 err_msg = wsaa.Excepcion
87 else:
88 # avoid encoding problem when reporting exceptions to the user:
89 err_msg = traceback.format_exception_only(sys.exc_type,
90 sys.exc_value)[0]
91 if DEBUG:
92 raise
93 return {'token': token, 'sign': sign, 'err_msg': err_msg}
94
95
96if __name__ == '__main__':
97 # basic tests:
98 reingart_crt = open("./pyafipws/reingart.crt").read()
99 reingart_key = open("./pyafipws/reingart.key").read()
100 auth_data = authenticate("wsfe", reingart_crt, reingart_key, force=True)
101 print auth_data
102 assert auth_data['token']
103 assert auth_data['sign']
104 old_token = auth_data['token']
105 auth_data = authenticate("wsfe", reingart_crt, reingart_key, force=True)
106 assert auth_data['token'] == old_token
107 import base64
108 print base64.b64decode(auth_data['token'])
109 print "ok."
110
0111
=== added file 'l10n_ar_pyafipws/authentication.py'
--- l10n_ar_pyafipws/authentication.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/authentication.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,95 @@
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the Affero GNU General Public License as published by
5# the Software Foundation; either version 3, or (at your option) any later
6# version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11# for more details.
12#
13# Copyright 2013 by Mariano Reingart
14# Based on code "factura_electronica" by Luis Falcon
15# Based on code "openerp-iva-argentina" by Gerardo Allende / Daniel Blanco
16# Based on code "l10n_ar_wsafip" by OpenERP - Team de Localización Argentina
17
18"Credentials for Argentina Federal Tax Administration (AFIP) webservices"
19
20__author__ = "Mariano Reingart (reingart@gmail.com)"
21__copyright__ = "Copyright (C) 2013 Mariano Reingart and others"
22__license__ = "AGPL 3.0+"
23
24from osv import fields, osv
25try:
26 from openerp.tools.translate import _
27except:
28 _ = str
29
30DEBUG = True
31
32
33class company_pyafipws_credentials(osv.osv):
34 _name = "res.company"
35 _inherit = "res.company"
36 _columns = {
37 'pyafipws_cuit': fields.char('CUIT AFIP WS', size=15,
38 help="CUIT de la empresa habilitado para operar webservices AFIP"),
39 'pyafipws_certificate': fields.text('Certificado AFIP WS',
40 help="Certificado (.crt) de la empresa para webservices AFIP"),
41 'pyafipws_private_key': fields.text('Clave Privada AFIP WS',
42 help="Clave Privada (.key) de la empresa para webservices AFIP"),
43 }
44
45 def pyafipws_authenticate(self, cr, uid, ids, context=None, service="wsfe"):
46 "Authenticate against AFIP, returns token, sign, err_msg (dict)"
47 import afip_auth
48 auth_data = {}
49 for company in self.browse(cr, uid, ids):
50 # get the authentication credentials:
51 certificate = str(company.pyafipws_certificate)
52 private_key = str(company.pyafipws_private_key)
53 # create the proxy and get the configuration system parameters:
54 cfg = self.pool.get('ir.config_parameter')
55 cache = cfg.get_param(cr, uid, 'pyafipws.cache', context=context)
56 proxy = cfg.get_param(cr, uid, 'pyafipws.proxy', context=context)
57 wsdl = cfg.get_param(cr, uid, 'pyafipws.wsaa.url', context=context)
58 # call the helper function to obtain the access ticket:
59 auth = afip_auth.authenticate(service, certificate, private_key,
60 cache=cache or "", wsdl=wsdl or "",
61 proxy=proxy or "")
62 auth_data.update(auth)
63 return auth_data
64
65 def test_pyafipws_authentication(self, cr, uid, ids, context=None):
66 auth_data = self.pyafipws_authenticate(cr, uid, ids)
67 #self.log(cr, uid, ids[0], "test_afip_auth: %s" % auth_data)
68 from base64 import b64decode
69 if auth_data['token']:
70 msg = b64decode(auth_data['token'])
71 raise osv.except_osv(_("OK"), msg)
72 else:
73 msg = auth_data['err_msg']
74 raise osv.except_osv(_("ERROR"), msg)
75 return {}
76
77
78company_pyafipws_credentials()
79
80
81if __name__ == "__main__":
82 # basic tests:
83 from osv import cursor
84 mycompany = company_pyafipws_credentials()
85 auth_data = mycompany.pyafipws_authenticate(cursor(), None, [1], service="wsfe")
86 print auth_data
87 assert auth_data['token']
88 assert auth_data['sign']
89 old_token = auth_data['token']
90 auth_data = mycompany.pyafipws_authenticate(cursor(), None, [1], service="wsfe")
91 assert auth_data['token'] == old_token
92 ta = mycompany.test_pyafipws_authentication(cursor(), None, [1])
93 print ta
94 print "ok."
95
096
=== added directory 'l10n_ar_pyafipws/data'
=== added file 'l10n_ar_pyafipws/data/account_invoice_view.xml'
--- l10n_ar_pyafipws/data/account_invoice_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/data/account_invoice_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,54 @@
1<?xml version="1.0" encoding="utf-8" ?>
2<openerp>
3 <data>
4 <record model="ir.ui.view" id="account_invoice_form">
5 <field name="name">account.invoice.form</field>
6 <field name="model">account.invoice</field>
7 <field name="inherit_id" ref="account.invoice_form" />
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <notebook>
11 <page string="Factura Electronica Argentina">
12 <group col="8" colspan="4">
13 <field name="pyafipws_concept"/>
14 <field name="pyafipws_billing_start_date"/>
15 <field name="pyafipws_billing_end_date"/>
16 <field name="pyafipws_incoterms"/>
17 </group>
18 <group col="6" colspan="3">
19 <field name="pyafipws_result"></field>
20 <field name="pyafipws_cae"></field>
21 <field name="pyafipws_cae_due_date"></field>
22 </group>
23 <group col="2" colspan="1">
24 <button name="do_pyafipws_request_cae"
25 string="Obtener CAE" type="object"/>
26 <button name="do_pyafipws_validate_cae"
27 string="Verificar CAE" type="object"/>
28 </group>
29 <group col="2" colspan="4">
30 <field name="pyafipws_message"></field>
31 </group>
32 <group col="1" colspan="4">
33 <field name="pyafipws_barcode_img"
34 img_width="370" img_height="30"
35 width="370" height="30" widget="image"
36 nolabel="1"/>
37 </group>
38 </page>
39 </notebook>
40 </field>
41 </record>
42 <record id="account.act_open" model="workflow.activity">
43 <field name="wkf_id" ref="account.wkf"/>
44 <field name="name">open</field>
45 <field name="action">action_date_assign()
46action_move_create()
47action_number()
48action_pyafipws_request_cae()
49write({'state':'open'})</field>
50 <field name="kind">function</field>
51 </record>
52 </data>
53</openerp>
54
055
=== added file 'l10n_ar_pyafipws/data/account_journal_view.xml'
--- l10n_ar_pyafipws/data/account_journal_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/data/account_journal_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,32 @@
1<?xml version="1.0" encoding="utf-8" ?>
2<openerp>
3 <data>
4 <record model="ir.ui.view" id="view_account_journal_pyafipws_form">
5 <field name="name">account.journal.afip.form</field>
6 <field name="model">account.journal</field>
7 <field name="inherit_id" ref="account.view_account_journal_form" />
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <notebook>
11 <page string="Argentina AFIP Webservices">
12 <group col="2" colspan="3">
13 <field name="pyafipws_electronic_invoice_service"/>
14 <field name="pyafipws_invoice_type"></field>
15 <field name="pyafipws_point_of_sale"></field>
16 <!---field name="pyafipws_last_invoice_number" /-->
17 </group>
18 <group col="1" colspan="1">
19 <button name="test_pyafipws_dummy"
20 string="Test Dummy" type="object"/>
21 <button name="test_pyafipws_point_of_sales"
22 string="Verificar Ptos. Vta." type="object"/>
23 <button name="get_pyafipws_last_invoice"
24 string="Obtener Último N°" type="object"/>
25 </group>
26 </page>
27 </notebook>
28 </field>
29 </record>
30 </data>
31</openerp>
32
033
=== added file 'l10n_ar_pyafipws/data/desktop.ini'
--- l10n_ar_pyafipws/data/desktop.ini 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/data/desktop.ini 2014-01-20 20:26:39 +0000
@@ -0,0 +1,5 @@
1[.ShellClassInfo]
2InfoTip=Esta carpeta se ha compartido online.
3IconFile=D:\Program Files\Google\Drive\googledrivesync.exe
4IconIndex=12
5
0\ No newline at end of file6\ No newline at end of file
17
=== added file 'l10n_ar_pyafipws/data/res_company_view.xml'
--- l10n_ar_pyafipws/data/res_company_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/data/res_company_view.xml 2014-01-20 20:26:39 +0000
@@ -0,0 +1,25 @@
1<?xml version="1.0" encoding="utf-8" ?>
2<openerp>
3 <data>
4 <record model="ir.ui.view" id="view_company_form">
5 <field name="name">res.company.form</field>
6 <field name="model">res.company</field>
7 <field name="inherit_id" ref="base.view_company_form" />
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <notebook>
11 <page string="Argentina AFIP Webservices">
12 <group col="2">
13 <field name="pyafipws_cuit"></field>
14 <field name="pyafipws_certificate"></field>
15 <field name="pyafipws_private_key"></field>
16 </group>
17 <button name="test_pyafipws_authentication"
18 string="Test" type="object"/>
19 </page>
20 </notebook>
21 </field>
22 </record>
23 </data>
24</openerp>
25
026
=== added file 'l10n_ar_pyafipws/desktop.ini'
--- l10n_ar_pyafipws/desktop.ini 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/desktop.ini 2014-01-20 20:26:39 +0000
@@ -0,0 +1,5 @@
1[.ShellClassInfo]
2InfoTip=Esta carpeta se ha compartido online.
3IconFile=D:\Program Files\Google\Drive\googledrivesync.exe
4IconIndex=12
5
0\ No newline at end of file6\ No newline at end of file
17
=== added file 'l10n_ar_pyafipws/electronic_invoice.py'
--- l10n_ar_pyafipws/electronic_invoice.py 1970-01-01 00:00:00 +0000
+++ l10n_ar_pyafipws/electronic_invoice.py 2014-01-20 20:26:39 +0000
@@ -0,0 +1,441 @@
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the Affero GNU General Public License as published by
5# the Software Foundation; either version 3, or (at your option) any later
6# version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11# for more details.
12#
13# Copyright 2013 by Mariano Reingart
14# Based on code "factura_electronica" by Luis Falcon
15# Based on code "openerp-iva-argentina" by Gerardo Allende / Daniel Blanco
16# Based on code "l10n_ar_wsafip_fe" by OpenERP - Team de Localización Argentina
17
18"Electronic Invoice for Argentina Federal Tax Administration (AFIP) webservices"
19
20__author__ = "Mariano Reingart (reingart@gmail.com)"
21__copyright__ = "Copyright (C) 2013 Mariano Reingart and others"
22__license__ = "AGPL 3.0+"
23
24
25from osv import fields, osv
26import os, time
27import datetime
28import decimal
29import os
30import socket
31import sys
32import traceback
33
34DEBUG = True
35
36
37class electronic_invoice(osv.osv):
38 _name = "account.invoice"
39 _inherit = "account.invoice"
40 _order = "id"
41 _columns = {
42 'pyafipws_concept': fields.selection([
43 ('1','1-Productos'),
44 ('2','2-Servicios'),
45 ('3','3-Productos y Servicios (mercado interno)'),
46 ('4','4-Otros (exportación)'),
47 ], 'Concepto',
48 select=True, required=True,
49 readonly=True, states={'draft': [('readonly', False)]}),
50 'pyafipws_billing_start_date': fields.date('Fecha Desde',
51 readonly=True, states={'draft': [('readonly', False)]},
52 help="Seleccionar fecha de fin de servicios - Sólo servicios"),
53 'pyafipws_billing_end_date': fields.date('Fecha Hasta',
54 readonly=True, states={'draft': [('readonly', False)]},
55 help="Seleccionar fecha de inicio de servicios - Sólo servicios"),
56 'pyafipws_incoterms': fields.many2one('stock.incoterms', 'INCOTERMS',
57 readonly=True, states={'draft': [('readonly', False)]},
58 help="Términos de comercio internacional (exportación)"),
59 'pyafipws_result': fields.selection([
60 ('', 'n/a'),
61 ('A', 'Aceptado'),
62 ('R', 'Rechazado'),
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches