summaryrefslogtreecommitdiff
path: root/addons/l10n_cl/models
AgeCommit message (Collapse)Author
2021-05-20[FIX] l10n_cl: do not override `_onchange_journal``wan
This method was defined in `account` but overrided in `l10n_cl`. Prefix the method to avoid that.
2021-03-09[FIX] l10n_cl: return a different domain in available document typesfw-bot
when the partner is Tesoreria de la República, and exclude the credit note. closes odoo/odoo#67569 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-12-19[FIX] l10n_cl: exclude vendor bills from last sequence domainDaniel Blanco
closes odoo/odoo#63611 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-12-07[FIX] l10n_cl: _post() method should return in l10n_clQiuyu (QHO)
Steps to reproduce: 1. Set the company with country "Argentina" 2. Install modules `account_accountant`, `l10n_ar`, `l10n_ar_edi` and `l10n_cl` 3. Create a new invoice 4. Confirm the inovice => TypeError: Mixing apples and oranges Reason: `_post()` method in `l10n_cl` module does not return any value so `None` is returned [1] The return value is used to be concated in `_post()` method in `l10n_ar_edi` moodule [2] Solution: `_post()` method should return `account.move` object opw-2409156 [1] https://github.com/odoo/odoo/blob/14.0/addons/l10n_cl/models/account_move.py#L99 [2] https://github.com/odoo/enterprise/blob/c814ab1ad67140c9976860fab5ff37e6c713733d/l10n_ar_edi/models/account_move.py#L150 closes odoo/odoo#62824 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-22[FIX] *: avoid direct references to countriesVictor Feyens
Ensure the code works fine even if countries are deleted. Also consider "re"-created countries after deletion, by only considering the country code, not the data reference. This should reduce support requests related to deleted countries, and ease the resolution of such problems by the users themselves. TASK ID - 2368842 closes odoo/odoo#57837 Related: odoo/enterprise#13275 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-29[ADD] l10n_cl: forward to 14.0Daniel Blanco
closes odoo/odoo#58441 Related: odoo/enterprise#13477 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-09-03[FIX] l10n_cl: allow to generate document type "boleta" for foreign customersDaniel Blanco
fixes #56982 [FIX] l10n_cl: allow to generate document type "boleta" for foreign customers closes odoo/odoo#57004 X-original-commit: 8df301383d9b2d960ca17ff547a12b1324f93bda Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-17[REF] l10n_cl: Add custom reportKatherine Zaoral
Port foward from 13.0 branch . Also adapt _get_name_invoice_report() method to match the new method in account.
2020-08-05[IMP] account: soft post entries in the futurewilliam
Add an easy way to not post the entries in the future when calling post() on it, but rather set it to be auto-posted at accounting date. This is useful when we are creating a lot of entries in batch and some might be in the future, some in the past, and we don't want to separate that in two batch every time. (asset, accrual, transfer,... )
2020-07-02[FIX] l10n_cl: Correct document type domainAndrea Grazioso (agr-odoo)
Create an invoice, fill document type "(61) Nota de Crédito Electrònica". Save. Action will be blocked by a warning: document type is invalid. Some options in the document type should not be shown as they can not be used in the customer invoices and customer credit note. opw-2286623 closes odoo/odoo#53987 X-original-commit: 3b9738a394c4944b0c859f68f561e50d14b92942 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-06-16[FIX] l10n_cl: Several fixes and improvements for l10n_clDaniel Blanco
[FIX] l10n_cl: format RUT/VAT as used in Chile (99999999-X) [FIX] l10n_cl: prevent errors with domain of available documents in invoice view. [FIX] l10n_cl: allow to select document types when partner is empty [ADD] l10n_cl: add ILA taxes (purchase and sale) and assign account to taxes [ADD] l10n_cl: add fiscal position exempt for purchases and sales [IMP] l10n_cl: configure accounts used in inventory valuation [FIX] l10n_cl prevent to put unneeded sales documents in sales journal [FIX] l10n_cl limit revision of document types and partner constrains only for sale and purchase journals [FIX] l10n_cl: add extra validation to know wether there is a latam_document_type_code selected [ADD] l10n_cl: add document type '801' Orden de compra [WIP] add tag to costo de ventas account [FIX] l10n_cl: fiscal position templates: fix supermarket tax [FIX] l10n_cl: change order for boletas [WIP] l10n_cl: fix the compute document types method [FIX] l10n_cl: prevent expected singleton error (checked in tests) in post [I18N] l10n_cl: add new translations [I18N] l10n_cl: reduce size of taxes names and abbreviation for invoices (probably more work to add here) [FIX] l10n_cl: remove countries from accounts [FIX] l10n_cl: remove recalc of domain when journal changes [FIX] l10n_cl: remove sale constraint closes odoo/odoo#53068 X-original-commit: 060f083879f6094941f746928832fec253a23bb0 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-05-19[FIX] l10n_cl: backport from masterJosse Colpaert
* avoid doing super where we removed the super method: Was done in adapting l10n_cl to do without the methods in l10n_latam_invoice_document * journal name to create * at least fix for the document type itself * making it work like before with shared sequences closes odoo/odoo#49095 closes odoo/odoo#51496 Related: odoo/enterprise#9699 Related: odoo/enterprise#10654 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-02-19[IMP] account,* : Change type field to move_type in account.moveAnkita Raval
task-id: 2028z813
2020-02-05[IMP] account: rework name sequenceswan
Task 2146469 Rework the name computation: * It doesn't use ir.sequence anymore * It is an editable computed field * Add a renaming tool This allows the user to tweak the sequences more easily than having to get through the ir.sequence settings. The sequence depends on a parameter of the journal: continuous, montly and yearly restart of the sequence. Everytime a new period is started, try to make a pattern form another period. The incrementing is done by taking the previous name, ordered lexicographically, splitting it by taking the digits at the end, adding 1 and re contstruct with the prefix. ** This means there could be cases where the prefix has a big importance on the next number. For instance, if you have INVOICE/2019/0001 INVOICE/2019/0002 and then rename the last one to INV/2019/0002, don't expect the next number to be INV/2019/0003. It will be INVOICE/2019/0002 (again) because the highest number was INVOICE/2019/0001. You will then end up with INVOICE/2019/0001 INV/2019/0002 INVOICE/2019/0002 closes odoo/odoo#41485 Related: odoo/enterprise#7189 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-12-04[FIX] l10n_cl: taxpayer type and sequences of document typeDaniel Blanco
Description: - Add readonly attribute to partner view for l10n_cl_sii_taxpayer_type field for children res.partner records. - Fix the tax payer type label to prevent usage of "label for.." - Optimize document type order to put most used on top of file and in selection of document types during invoicing process closes odoo/odoo#41372 X-original-commit: 4162b9b618ffe62548e9a1d5ae3c0fdd604a1395 Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-11-27[FIX] l10n_cl: avoid warnings on module installJosse Colpaert
X-original-commit: c6a00ff1c29481e826c81f551cacf60f054c15f8
2019-10-11[FIX] l10n_cl: fixed wrong domain getting document typesSusana
closes odoo/odoo#38446 X-original-commit: 089a9d9fb447a5717469bf931a62526d5462a361 Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-09[MERGE] forward port branch 13.0 up to f4105eb9c70Christophe Simonis
2019-09-30[FIX] Some fixes and improvements in l10n_cl moduleSusana
[FIX] add account asignation to taxes [FIX] Fixes after code review [FIX] remove default value for taxpayer_type [IMP] add an empty section in res_config_settings_view as a holder for any Chilean Localization future configuration setting. [FIX] change location of Chilean Localization section closes odoo/odoo#37555 Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-13[MERGE] forward port branch saas-12.5 up to 197474e5b9aChristophe Simonis
2019-08-23[IMP] l10n_cl: total refactoringDaniel Blanco
and preparation for the edi module This module now depends on l10n_latam_base for the identification types and l10n_latam_invoice_document for the invoice numbering. It has its own implementation where you can choose yourself the sequences you want to add on a journal in a many2many. By default, you will have the sequences for the document types of the first journal. But you can share them on other journals or create new sequences for a journal.