Commit Graph
30 Commits
Author SHA1 Message Date
Paolo (pgi) 423c7029d9 [IMP] l10n_pe: Moved ICBPER tax group from enterprise to community
closes odoo/odoo#78187

Related: odoo/upgrade#2914
Related: odoo/enterprise#21596
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-12-01 11:04:56 +00:00
desdelinux e0763a9adb [FIX] l10n_pe: l10n_pe_vat_code for VAT must be 0
closes odoo/odoo#76927

X-original-commit: 310835756fac1ce0c92675721e4cf4f5bba98c46
Related: odoo/enterprise#21952
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Laurent Smet <las@openerp.com>
2021-11-05 08:49:47 +00:00
Paolo (pgi) bcb1bd2212 [FIX] l10n_*: Localization tax group localization data normalization
"account_tax_group.xml" and "account_data.xml" data files
have been renamed to "account_tax_group_data.xml"
when containing only tax groups, for compliance with the standard.

AE, AR, AT, BE, BO, BR, CA, CN, CR, CZ,
DE SKR03, DE SKR04, DO, ES, FI, FR, GR,
GT, HN, IL, IN, LT, MA, MX, NL, NO, PA,
PL, PT, RO, SG, SY, TH, TR, UA, UY, VE,
VN.

Part-of: odoo/odoo#77295
2021-10-01 12:40:54 +00:00
Paolo (pgi) e21331c1eb [FIX] l10n_*: Review of tax groups, tax templates and their countries
Many changes involved several localizations.

Tax groups data files that were missing the country_id:
AR, AU, EC, ET, HR, HU, IT, JP, LU, MN, NZ, SI, UK, ZA

Account_data.xml files being renamed or split to account_tax_group.xml
AT, CH, CL, PE, SK

Tax templates that were missing tax group information:
CH

Tax groups missing that were added:
EC

Part-of: odoo/odoo#77295
2021-10-01 12:40:54 +00:00
desdelinux 884ad2444c [IMP] l10n_pe: class 60 accounts should be of type expense
[IMP] l10n_pe: class 60 accounts should be of type expense

[IMP] l10n_pe: class 60 accounts should be of type expense

closes odoo/odoo#75489

X-original-commit: 0ecf9062397c16dbb987ee53774f5d41f850e503
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-14 16:40:53 +00:00
desdelinux b201ac6649 [IMP] l10n_pe: New identification types requested by the SUNAT
By Sunat regulations from 08/01/2021 two new types of identity documents
will be accepted: Temporary Residence Permit and Safe Passage.

Legal ref:

Website: https://cpe.sunat.gob.pe/node/88
Document with Catalog Update No. 8:
https://cpe.sunat.gob.pe/sites/default/files/inline-files/AjustesValidacionesCPEv20210727%20%28ultimo%29.xlsx

Replaces #74342

closes odoo/odoo#74506

X-original-commit: d7a701910520c22d963e21e3a9cc6d4122ead003
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-30 14:15:43 +00:00
Touati Djamel (otd) deb7b0dfc2 [FIX] l10n_pe: add zip to Peru address format
Steps to reproduce the bug:
- Install eCommerce and l10n_pe
- Go as website visitor
- Add anything to your cart
- Continue with checkout to go to the address page
- Select country Peru and fill in all the required fields
- Validate
- You will get an error message telling you that you forgot to fill in a required field.

Problem:
You cannot validate the address because zip code is not displayed, but required.
This field is based on the country format address to be displayed before or after the `" City "` field
and is not displayed if `" zip "` is not present in the country format address.

https://github.com/odoo/odoo/blob/b1107cba38e296f17d03d9919be67e6789a407be/addons/website_sale/views/templates.xml#L1208-L1223

https://github.com/odoo/odoo/blob/15fe3d43b4b925a32b42eb46048a33987e10336b/openerp/addons/base/res/res_country.py#L77

Solution:
"zip" is required for the Peru country, so it must be added in the address format

opw-2600526

closes odoo/odoo#73763

X-original-commit: 996260c04a52055a7000ede7be87460707f3990f
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-07-15 11:13:20 +00:00
Nicolas (vin) adfb20537b [IMP] account: add country_id on tax groups
In order to not show unnecessary tax groups when configuring a tax,
we'll now filter them to only shows the tax groups that are either
linked to no country, or that are linked to the same country as the tax.

Task id #2206280
2021-05-26 10:51:29 +00:00
Josse Colpaert f986a0e4c5 [FIX] l10n_pe: add electronica to the report name as it is a legal obligation
See also #17550 in enterprise

closes odoo/odoo#69051

X-original-commit: 68ca0884d07854ca227a20427d53068e2fcce3f5
Related: odoo/enterprise#17591
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-09 14:35:31 +00:00
oco-odoo 7922e5d102 [IMP] l10n_*: set newly-introduced country_id field on chart templates 2021-04-01 12:09:20 +00:00
wan c92332f555 [FIX] l10n_pe: depend on l10n_latam_invoice_documents
Part of task 2124952

This is needed in order to be able to create the demo data.
It was not done earlier because of stable policy but it was added to
l10n_pe_edi instead.

closes odoo/odoo#60148

Related: odoo/enterprise#15213
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2021-02-17 08:39:29 +00:00
Nhomar Hernández 230014b8af [IMP] l10n_pe: demo partner, export taxes and proper fiscal positions 2021-02-01 14:49:22 +00:00
Arturo Flores de131bb6ff [IMP] l10n_pe_edi: add RUC as a parameter for identification type
As users find it odd to have the RUC(Registro Único de Contribuyentes) labeled as VAT(from odoo),
so we are going to add the RUC itself to display the right name for users in Peru

closes odoo/odoo#53366

X-original-commit: aba0b299243c3d9b4615e1066d641aa8360aabac
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-06-21 11:06:58 +00:00
Denis Ledoux 0f966196fb [FIX] l10n_*: no chart template should be set to noupdate
In a general manner,
the chart templates should not be set to noupdate,
that way, if a new company starts in an existing database,
it starts with an up-to-date chart of accounts.

For instance,
if the chart of template is not updated from
12.0 to 13.0, the `default_pos_receivable_account_id`
is not added in the chart template,
and when a new company is created,
the default pos receivable account is not set on the company.
Besides, the field `res.company``account_default_pos_receivable_account_id`
is not displayed on any form view,
whether or not the full accounting is installed,
so we must especially pay attention this default account is well set
from start, as the user as no opportunity to correct this by himself.

In addition,
in upgrade scripts,
the default pos receivable account on the chart template
is used to correctly set the pos receivable account on the company
and on the pos payment methods,
so it must be well set for the upgrade script to do its job correctly.

Technically, it means, without this revision, the fields:
- `account.chart.template``default_pos_receivable_account_id`,
- `res.company``account_default_pos_receivable_account_id`,
- `pos.payment.method``receivable_account_id`
were not filled properly on upgrade,
causing critical issues in the accounting entries on pos session closing.

Related to #52786
Related to odoo/upgrade@ccfd2371ef

closes odoo/odoo#52870

X-original-commit: 3258ba015ff75b7c176d83a44261d24ebfcc26de
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-06-11 15:13:19 +00:00
Arturo Flores 980eaaeb24 [FIX] l10n_pe: fix tax FRE to have the right tax code
According to http://cpe.sunat.gob.pe/sites/default/files/inline-files/anexoV-340-2017.pdf
The right tax for the FRE tax should be 9996 and not 9997

closes odoo/odoo#52387

X-original-commit: 5c6e8bb9773f3af2864748367f774630e90adcef
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-06-03 19:48:39 +00:00
wan fe97c78a40 [FIX] l10n_pe: adapt account group
The account.group model has been refactored in
https://github.com/odoo/odoo/commit/a124050511d508f6f1f8a4d4f9dfb2fa1507ad98

Although the filename was correct (.template) and one field was changed
(code_prefix -> code_prefix_start), we don't accept a parent anymore and
we have to provide the chart of account id.

closes odoo/odoo#42302

X-original-commit: 079ebab64e1ea7c17d786c8b4d17bbb707ff856a
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-12-23 14:11:59 +00:00
wan e8caf0a368 [IMP] l10n_*: adapt for new account.group.template model 2019-11-27 14:10:13 +00:00
fw-bot eaa094285e [FIX] l1n_pe: forward-port of fixes to l10n_pe
base_vat: Correct management of the check of peruvian VAT without prefix.
l10n_pe: Correct income account the last one is not correct.
l10n_pe: Forced Round globally for peruvian companies once l10n_pe is
installed, and with the onchange.
l10n_pe: For peruvian companies it does not make sense a sequence per
year and the year in the prefix is incorrect, we must force XXX- as
a sequence prefix.

closes odoo/odoo#38854

Forward-port-of: #38764
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-16 11:37:28 +00:00
Christophe Simonis 6c948c36bb [MERGE] forward port branch saas-12.5 up to 197474e5b9 2019-09-13 18:07:59 +02:00
RomainLibert f2b4d98871 [FIX] l10n*: use standard account type instead of specific one
Some l10n were creating a specific account type for the off balance
    accounts, there is now a new account type defined for thsi in the
    account module

closes odoo/odoo#36432

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-10 12:42:47 +00:00
Nhomar Hernández ff74a97450 [IMP] l10n_pe: Refactoring of the Peruvian CoA
And making ready for the future EDI modules.

- Added related account group on the move lines to
show account moves in a way Peru is used to.
As this allows to group by the account group
and to divide the hierarchical structure.
- Completely new CoA structure and tax structure
- Minimal fields for the EDI module later
- Districts and cities as we also need codes for
the EDI.
2019-08-23 14:27:33 +00:00
Josse Colpaert f8d4bf4499 [IMP] account, l10n_xx: change CoA loading methods
Before, we only had a public method that installed
the CoA for the current active company.

With the multi-company changes, it was not
possible anymore to install a module with a
demo company and then have the CoA installed
in that demo company correctly.

We changed that public method to be able to
put an extra optional parameter and shortened
its name to try_loading instead of
try_loading_for_current_company.  The method that
it calls when there is no chart installed
is made private and renamed to _load.

closes odoo/odoo#35703

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-14 08:42:27 +00:00
Joseph Caburnay 536560bbf5 [IMP] l10n_*: add new receivable account for pos
A new feature[*] in point_of_sale (PoS) which minimizes the
creation of account.move records in closing a pos.session relies
on a receivable account made specifically for PoS.

This commit addresses this feature's requirement by adding a
new receivable account to each localization.

[*] point_of_sale: single AE for a pos.session

TASK-ID: 1862388
2019-08-09 13:57:10 +00:00
Olivier Colson 3936d655c4 [IMP] account, l10n_*: v13 taxes
- Add repartition lines on taxes

- Link account tags directly to account.move.line; remove the tag_ids field from account.tag

- Add a new report engine dedicated to tax reports, directly generating account tags. It is called as an alternate mode of generic tax report, with a dedicated "Use tax grids" toggle.

>> The biggest change lies in the way the new tax report computes its values.
Everything is now aggregated directly using the tags set on the account move lines. Thanks to that,
modifying the configuration of a tax today will not impact the report for the previous periods anymore.
This is a big improvement, as it means the report will keep on reflecting the values that were submitted
to the state before, whatever the configuration change.

- Add an audit char field to account.move.line telling with tax grids are impacted by the line, with the corresponding amount

- Modify the behavior of cash basis taxes: the cash basis account is now used as the transition account, while the regular account given in tax declaration is used to store the final entry (it was the opposite before)

- Modify every l10n_* module in order to keep them consistent with these changes

closes odoo/odoo#32833

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-05-10 11:52:58 +00:00
Hetashree Chauhan 065503bebb [IMP] l10n_pe: switch account.account.template creation in csv
data creation is faster when done through a CSV file than an XML file. Hence doing it through a CSV

was task# 1909961

closes odoo/odoo#28873
2019-02-08 06:07:07 +00:00
Laurent Smet 7a31a92afa [ADD] account, l10n_*: create transfer account based on prefix.
This commit changes the mechanism to get the transfer account.
As the bank/cash accounts, the transfer account is now created automatically based on
a prefix.

-task: https://www.odoo.com/web#id=35857&action=333&active_id=967&model=project.task&view_type=form&menu_id=4720
2018-05-23 15:43:39 +02:00
Yannick Tivisse 70a521205a [IMP] l10n*: CoA loading yml files to xml 2017-11-07 11:43:46 +01:00
Mehul Patel 3fb4159ad9 [IMP] account,sale,l10n_*: display tax amount per tax group in sale/account reports
Each tax is linked to a tax group. Each tax group is display separately with the corresponding amount when the business reports (invoices/sale orders) are printed.

NB: Because each tax is now linked to a tax group. Every localization have been updated according it.

task: https://www.odoo.com/web#id=30501&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720

PR: #16724
2017-08-28 11:24:24 +02:00
Rohan Patel ad7ca14d1b [MIG] l10n_* : Migrated to new API
[MIG] l10n_ae : Migrated to new API.

[MIG] l10n_ar : Migrated to new API.

[MIG] l10n_at : Migrated to new API.

[MIG] l10n_au : Migrated to new API.

[MIG] l10n_be : Migrated to new API.

[MIG] l10n_bo : Migrated to new API.

[MIG] l10n_br : Migrated to new API.

[MIG] l10n_ca : Migrated to new API.

[MIG] l10n_ch : Migrated to new API.

[MIG] l10n_cl : Migrated to new API.

[MIG] l10n_cn : Migrated to new API.

[MIG] l10n_co : Migrated to new API.

[MIG] l10n_cr : Migrated to new API.

[MIG] l10n_de : Migrated to new API.

[MIG] l10n_de_skr03 : Migrated to new API.

[MIG] l10n_de_skr04 : Migrated to new API.

[MIG] l10n_cn_small_business : Migrated to new API.

[MIG] l10n_cn_standard : Migrated to new API.

[MIG] l10n_do : Migrated to new API.

[MIG] l10n_ec : Migrated to new API.

[MIG] l10n_es : Migrated to new API.

[MIG] l10n_et : Migrated to new API.

[MIG] l10n_fr : Migrated to new API.

[MIG] l10n_generic_coa : Migrated to new API.

[MIG] l10n_gr : Migrated to new API.

[MIG] l10n_gt : Migrated to new API.

[MIG] l10n_hn : Migrated to new API.

[MIG] l10n_hr : Migrated to new API.

[MIG] l10n_hu : Migrated to new API.

[MIG] l10n_in : Migrated to new API.

[MIG] l10n_it : Migrated to new API.

[MIG] l10n_jp : Migrated to new API.

[MIG] l10n_lu : Migrated to new API.

[MIG] l10n_ma : Migrated to new API.

[MIG] l10n_mx : Migrated to new API.

[MIG] l10n_nl : Migrated to new API.

[MIG] l10n_no : Migrated to new API.

[MIG] l10n_nz : Migrated to new API.

[MIG] l10n_pa : Migrated to new API.

[MIG] l10n_pe : Migrated to new API.

[MIG] l10n_pl : Migrated to new API.

[MIG] l10n_ro : Migrated to new API.

[MIG] l10n_sa : Migrated to new API.

[MIG] l10n_sg : Migrated to new API.

[MIG] l10n_si : Migrated to new API.

[MIG] l10n_syscohada : Migrated to new API.

[MIG] l10n_th : Migrated to new API.

[MIG] l10n_tr : Migrated to new API.

[MIG] l10n_uk : Migrated to new API.

[MIG] l10n_us : Migrated to new API.

[MIG] l10n_uy : Migrated to new API.

[MIG] l10n_ve : Migrated to new API.

[MIG] l10n_vn : Migrated to new API.
2016-07-06 11:01:26 +02:00
Rohan Patel 180126755e [MOV] l10n_* : Re-organized directory structure
[MOV] l10n_ae : Re-organized directory structure.

[MOV] l10n_ar : Re-organized directory structure.

[MOV] l10n_at : Re-organized directory structure.

[MOV] l10n_au : Re-organized directory structure.

[MOV] l10n_be : Re-organized directory structure.

[MOV] l10n_bo : Re-organized directory structure.

[MOV] l10n_br : Re-organized directory structure.

[MOV] l10n_ca : Re-organized directory structure.

[MOV] l10n_ch : Re-organized directory structure.

[MOV] l10n_cl : Re-organized directory structure.

[MOV] l10n_cn : Re-organized directory structure.

[MOV] l10n_co : Re-organized directory structure.

[MOV] l10n_cr : Re-organized directory structure.

[MOV] l10n_de : Re-organized directory structure.

[MOV] l10n_de_skr03 : Re-organized directory structure.

[MOV] l10n_de_skr04 : Re-organized directory structure.

[MOV] l10n_cn_small_business : Re-organized directory structure.

[MOV] l10n_cn_standard : Re-organized directory structure.

[MOV] l10n_do : Re-organized directory structure.

[MOV] l10n_ec : Re-organized directory structure.

[MOV] l10n_es : Re-organized directory structure.

[MOV] l10n_et : Re-organized directory structure.

[MOV] l10n_fr : Re-organized directory structure.

[MOV] l10n_generic_coa : Re-organized directory structure.

[MOV] l10n_gr : Re-organized directory structure.

[MOV] l10n_gt : Re-organized directory structure.

[MOV] l10n_hn : Re-organized directory structure.

[MOV] l10n_hr : Re-organized directory structure.

[MOV] l10n_hu : Re-organized directory structure.

[MOV] l10n_in : Re-organized directory structure.

[MOV] l10n_it : Re-organized directory structure.

[MOV] l10n_jp : Re-organized directory structure.

[MOV] l10n_lu : Re-organized directory structure.

[MOV] l10n_ma : Re-organized directory structure.

[MOV] l10n_mx : Re-organized directory structure.

[MOV] l10n_nl : Re-organized directory structure.

[MOV] l10n_no : Re-organized directory structure.

[MOV] l10n_nz : Re-organized directory structure.

[MOV] l10n_pa : Re-organized directory structure.

[MOV] l10n_pe : Re-organized directory structure.

[MOV] l10n_pl : Re-organized directory structure.

[MOV] l10n_ro : Re-organized directory structure.

[MOV] l10n_sa : Re-organized directory structure.

[MOV] l10n_sg : Re-organized directory structure.

[MOV] l10n_si : Re-organized directory structure.

[MOV] l10n_syscohada : Re-organized directory structure.

[MOV] l10n_th : Re-organized directory structure.

[MOV] l10n_tr : Re-organized directory structure.

[MOV] l10n_uk : Re-organized directory structure.

[MOV] l10n_us : Re-organized directory structure.

[MOV] l10n_uy : Re-organized directory structure.

[MOV] l10n_ve : Re-organized directory structure.

[MOV] l10n_vn : Re-organized directory structure.
2016-07-06 11:01:26 +02:00