Commit Graph

281 Commits

Author SHA1 Message Date
Alexis de Lattre
3ec9eddbf3 [IMP] Big simplification, update and cleanup
This commit aims at removing the over-complexity of intrastat modules
while increasing simplicity/usability for users.

- Move default intrastat transaction from res.company to account.fiscal.position to add su
pport for B2C (and not just B2B)
- improve usability: auto-generate declaration lines and XML export when
going from draft to done. Auto-delete declaration lines and XML export
when going from done to draft (and add confirmation pop-up).
- declaration lines are now readonly. Only computation lines can be created/edited manuall
y
- add field region_code on computation lines and declaration lines.
Remove region_id on declaration lines. This change allows big
simplification in some localization modules such as
l10n_fr_intrastat_product.
- simplify Brexit implementation. Northern Ireland is important, but we
can't afford to have so many lines of code and add a field on
product.template (origin_state_id) for a territory of 1.9 million
inhabitants! This is too costly to maintain and too complex for users.
- improve default visibility of fields when reporting_level = 'standard'
- add support for weight calculation from uom categories other than
units and weight, supposing that the 'weight' field on product.template
is the weight per uom of the product
- add EU companies from several different countries in demo data with valid VAT numbers
2023-03-06 10:11:08 +01:00
OCA-git-bot
67bf421078 intrastat_product 14.0.2.1.3 2023-03-06 10:11:08 +01:00
Víctor Martínez
cf48bbb427 [FIX] intrastat_product: Avoid error if we create lines manually
TT40919
2023-03-06 10:11:08 +01:00
OCA-git-bot
4922c208be intrastat_product 14.0.2.1.2 2023-03-06 10:11:08 +01:00
OCA-git-bot
dd6dadac0d intrastat_product 14.0.2.1.1 2023-03-06 10:11:08 +01:00
Luc De Meyer
7c262732e1 intrastat declaration - restore _compute_numbers that was dropped by PR #149 (removal of intrastat.common 2023-03-06 10:11:08 +01:00
Luc De Meyer
0255b7812a intrastat declaration - fix excel export 2023-03-06 10:11:08 +01:00
OCA Transbot
429563fac5 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/
2023-03-06 10:11:08 +01:00
OCA-git-bot
47f69a36d3 intrastat_product 14.0.2.1.0 2023-03-06 10:11:08 +01:00
oca-ci
1abf5baf4e [UPD] Update intrastat_product.pot 2023-03-06 10:11:08 +01:00
OCA-git-bot
c7cc9dc2dc intrastat_product 14.0.2.0.1 2023-03-06 10:11:08 +01:00
Víctor Martínez
15a294a088 [IMP] intrastat_product: Skip invoices according to partner country
Accidentally removed in 2646dc489e

TT38922
2023-03-06 10:11:08 +01:00
OCA Transbot
59a036c392 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/
2023-03-06 10:11:08 +01:00
OCA-git-bot
afa1bbf9c6 intrastat_product 14.0.2.0.0 2023-03-06 10:11:08 +01:00
OCA-git-bot
c6dec6571a [UPD] README.rst 2023-03-06 10:11:08 +01:00
oca-ci
4a55d95c37 [UPD] Update intrastat_product.pot 2023-03-06 10:11:08 +01:00
Víctor Martínez
4efa9f8159 [IMP] intrastat_product: Add an Intrastat summary in the invoice report.
TT37168
2023-03-06 10:11:08 +01:00
OCA-git-bot
6e55bc54ff intrastat_product 14.0.1.6.2 2023-03-06 10:11:08 +01:00
Stefan Rijnhart
0833e42f9f [FIX] intrastat_product: typo in filename 2023-03-06 10:11:08 +01:00
Stefan Rijnhart
07d1357962 [IMP] intrastat_product: prepopulate stored computed fields 2023-03-06 10:11:08 +01:00
Víctor Martínez
e47ac7a0e7 Translated using Weblate (Spanish)
Currently translated at 0.7% (2 of 261 strings)

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/es/
2023-03-06 10:11:08 +01:00
Víctor Martínez
466d1c8dde Added translation using Weblate (Spanish) 2023-03-06 10:11:08 +01:00
OCA Transbot
054d41ee8f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/
2023-03-06 10:11:08 +01:00
OCA-git-bot
0d36fdd9f7 intrastat_product 14.0.1.6.1 2023-03-06 10:11:08 +01:00
oca-ci
65c15f6c4b [UPD] Update intrastat_product.pot 2023-03-06 10:11:08 +01:00
Luc De Meyer
b4731a0773 [14.0]fix stack trace when running module upgrade on 14.0.1.6.0 2023-03-06 10:11:08 +01:00
OCA Transbot
01e5c250d6 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/
2023-03-06 10:11:08 +01:00
OCA-git-bot
ea0db57016 intrastat_product 14.0.1.6.0 2023-03-06 10:11:08 +01:00
oca-ci
0530475b79 [UPD] Update intrastat_product.pot 2023-03-06 10:11:08 +01:00
Luc De Meyer
b47c68b86b [14.0]brexit support - size=2 on product_origin_country_code 2023-03-06 10:11:08 +01:00
Luc De Meyer
065079f065 [14.0]brexit support - DeprecationWarning 2023-03-06 10:11:08 +01:00
OCA-git-bot
42e232d3c6 intrastat_product 14.0.1.5.4 2023-03-06 10:11:08 +01:00
Luc De Meyer
8d668e5442 [14.0]brexit support - increase test coverage 2023-03-06 10:11:08 +01:00
Luc De Meyer
3d42339a14 [14.0]improved brexit support - keep backwards compatibility with localisation modules 2023-03-06 10:11:08 +01:00
Luc De Meyer
19a131312c [14.0]intrastat - improved brexit support 2023-03-06 10:11:08 +01:00
Luc De Meyer
f7867709fb fix unit tests - keep product_origin_country_id on top of new product_origin_country_code to avoid breaking the localisation modules 2023-03-06 10:11:08 +01:00
Luc De Meyer
79b99554e7 [14.0] brexit support - fix pipeline 2023-03-06 10:11:08 +01:00
Luc De Meyer
59e57563e1 [14.0] brexit support - fix pipeline 2023-03-06 10:11:08 +01:00
Luc De Meyer
24a8be7d65 [14.0]intrastat_product - Intrastat Brexit support 2023-03-06 10:11:08 +01:00
Luc De Meyer
0b50d13d98 [14.0]Intrastat Brexit support 2023-03-06 10:11:08 +01:00
OCA-git-bot
125592bbcd intrastat_product 14.0.1.5.3 2023-03-06 10:11:07 +01:00
Luc De Meyer
699989d9dd [14.0]intrastat_product - remove incorrect domain on comutation line 2023-03-06 10:11:07 +01:00
Denis Roussel
f674b9ca01 [IMP] intrastat_product: Add read accesses to intrastat lines
As Sale and Purchase users have access to invoices, we need to allow them
to read intrastat move lines as present on invoices.
2023-03-06 10:11:07 +01:00
Denis Roussel
b1abf7bf42 [14.0][IMP] intrastat_product: Add read access to intrastat lines to accounting base user 2023-03-06 10:11:07 +01:00
Denis Roussel
8f4d7b56a7 [14.0][IMP] intrastat_product: Add codes in Excel report as required in some countries
In some countries, the imports are done through Excel imports.

They need the codes only in the columns.
2023-03-06 10:11:07 +01:00
Denis Roussel
8303f39d8e [14.0][IMP] intrastat_product: Add tests for Excel generation 2023-03-06 10:11:07 +01:00
Denis Roussel
61cb956461 Updated from template 2023-03-06 10:11:07 +01:00
OCA-git-bot
3052964adc intrastat_product 14.0.1.5.2 2023-03-06 10:11:07 +01:00
OCA-git-bot
1ff480c63c intrastat_product 14.0.1.5.1 2023-03-06 10:11:07 +01:00
Luc De Meyer
8f3bfdf886 [14.0]intrastat_product - fix amount_company_currency 2023-03-06 10:11:07 +01:00