Commit Graph
15 Commits
Author SHA1 Message Date
william-andre d782b8b925 [IMP] l10n_*: convert CoA in new format
Converted using https://github.com/william-andre/transform_coa

closes odoo/odoo#110016

Related: odoo/enterprise#35836
Related: odoo/documentation#3336
Related: odoo/upgrade#4276
Signed-off-by: William André (wan) <wan@odoo.com>
2023-02-17 19:30:40 +01:00
Victor Feyens 1b67affe7d [FIX] *: avoid direct references to countries
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#60558

X-original-commit: 037012bc4e2935eb00a7f353529bb7ec55066733
Related: odoo/enterprise#14347
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-10-22 16:17:26 +00:00
Nikunj Ladava 34c4752eea [IMP] base_vat: remove simple check vat for co
- removed simple check vat for columbia
- removed document type field from partner
  - document type will be managed by latam type
-  updated city name for colombia
- added data for for latam identification type
- Added depdencies
  - base_address_city
  - account_debit_note
  - l10n_latam_base

task- 2190843

closes odoo/odoo#53040

Related: odoo/upgrade#1589
Related: odoo/enterprise#9567
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-17 14:11:07 +00:00
Victor Feyens e8ca97273b [IMP] l10n_co: remove unused field
Followup of 
https://github.com/odoo/odoo/commit/b44f559fe7577afdaa83511bdf0b6ca47ffeb8b7

closes odoo/odoo#50862

Related: odoo/upgrade#1164
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-05-07 13:12:01 +00:00
Josse Colpaert 973a575995 [FIX] l10n_co: change name of RUT document type to NIT
The RUT is the Registro Único Tributario;
the NIT is the Número de Identificación Tributaria.

The number that is used is thus the NIT.

opw 2082599

closes odoo/odoo#38533

X-original-commit: 1db209acaf44731f1740f038d9fadf464677baf4
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-10-11 17:07:15 +00:00
Andrea Grazioso (agr-odoo) 8a098afa09 [FIX] l10n_co: crash when adding contact
Install l10n_co,contacts. Open contacts.

Several crash messages will popup because the override in l10n_co of
res_partner is not computing the 'l10n_co_verification_code' field for
every record. Changing the implementation to be sure to store some value
for every record fix the issue.

opw-2082583

closes odoo/odoo#38473

X-original-commit: 2489c40507abba5df833b0db7b5a02749b2f749a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-11 09:16:14 +00:00
Christophe Simonis 9c77066f34 [MERGE] forward port branch saas-11.4 up to 6c103589c1 2018-09-14 16:00:17 +02:00
Joren Van Onder 5756b00922 [IMP] l10n_co: additional data
add some additional taxes
add an additional document type (Used in electronic invoicing)

Was PR #26751
Was task #1874136
2018-09-13 12:54:35 +02:00
Joren Van Onder c8371261dc [FIX] l10n_co: commercial_partner_country_id no longer exists
Removed by b341b5ca73. This function
copied the check_vat constrains decorator before that commit. Instead
replace with country_id because the l10n_co check_vat function still
uses that field.
2018-09-12 20:14:56 -07:00
Christophe Simonis adeea2a88d [MERGE] forward port branch saas-11.2 up to 0f02dcb639 2018-02-12 18:34:43 +01:00
Joren Van Onder 392fa1471e [IMP] l10n_co: add some lesser used document types
These should be all legally recognized documents.

opw-781247
2018-02-05 16:25:55 -08:00
Joren Van Onder 4b74cea413 [FIX] l10n_co: only validate VAT for RUT document types
In Colombia customers can legally identify themselves with various
codes, one of which is the RUT. This is the traditional TIN and
adheres to the rules implement by base_vat. The other types however
don't and so shouldn't be checked by base_vat.

opw-781247
2018-02-05 16:19:48 -08:00
Joren Van Onder b44f559fe7 [FIX] l10n_co: no longer use l10n_co_verification_code
The l10n_co_verification_code field shouldn't have been added in
l10n_co. Instead users should simply append the verification code to
the VAT. This way the vatnumber module used by base_vat will handle
validation correctly.

Removing this is necessary because otherwise we give the impression
that the verification code doesn't have to be included in the VAT
number which makes base_vat complain.

The l10n_co_verification_code will be removed in master.

opw-781247
2018-02-05 16:19:48 -08:00
Nicolas Martinelli 26c44130fb [FIX] l10n_co: partner without VAT
If the user removes the VAT number of a partner, `len(partner.vat)`
crashes since `partner.vat` is a boolean.

opw-777757
2017-10-24 11:16:19 +02:00
Joren Van Onder 5539c54d61 [IMP] l10n_co: update and simplify
This simplifies the chart of accounts and taxes to only the common
ones used. It also updates some changes that took place (eg. the VAT
increase from 16% to 19%). Lastly it implements some additional fields
on res.partner: a document type and a verification code that is
calculated based on the VAT.
2017-09-26 11:11:54 -07:00