Commit Graph

139 Commits

Author SHA1 Message Date
Alexis de Lattre
ef2504ee07 [IMP+FIX] intrastat_product: Several things:
* Add product_origin_country_id on declaration/computation lines

  Copy incoterms and destination country from SO to invoice when invoicing from SO
  We need weight even when supplementary units is used
  Small cleanups and enhancements

* Add support for accessory costs

  Add default values for intrastat transaction on company
  Code cleanup

* If rounded weight is 0, put 1

  Take into account the taxes for B2C
  Small code cleanup

* Remove field exclude_from_intrastat

  Re-organise view of intrastat.product.declaration

* Add option intrastat_accessory_costs on company

  Set more fields as invisible (localisation should put them visible if they need it)
  Fix handling of suppl. units when hs_code is empty on invoice line (but set on product)
  Small usability enhancements

* Include selection of type of invoice in search, for better perf

  Isolate domain in a _prepare method, for easier inheritance
  WARNING: I changed the default selection of invoice type ; adapt it in your localization m
  odule if necessary
  Add intrastat_transaction_in_refund for company (not needed for France, but may be needed elsewhere)
  Add a log when an invoice line is skipped

* Include product code in warning msg on weight

* Inspired by the PR https://github.com/akretion/account-financial-reporting/pull/8 of Luc de Meyer
2024-03-26 17:07:51 +01:00
Luc De Meyer
8ebeff2944 [IMP] intrastat_product: major update intrastat V3 modules
* add region to intrastat_product
2024-03-26 17:07:51 +01:00
Alexis de Lattre
c38597e3ed [IMP] intrastat_product: Several things:
* Update README.rst and translation files
* Add index=True on some fields on which we often search, as suggested by Yannick
* Remove description in __openerp__.py
* Move ACL from l10n_fr_intrastat_product module to intrastat_product module
* Large code re-engineering following the Akretion-Noviat code sprint on intrastat
  This code has been written both by Luc de Meyer and myself.
* Add first draft of code to generate decl lines
2024-03-26 17:07:51 +01:00
Guewen Baconnier
25b6b372d4 display_name must be stored as it is used as _rec_name, otherwise we cant, for instance, import files with name_search 2024-03-26 17:07:51 +01:00
Alexis de Lattre
f9ba36477c [ADD] intrastat_product
Rename report.intrastat.product to l10n.fr.report.intrastat.product (same for service and for lines) + migration scripts

Rename field country_id to origin_country_id (TODO : write mig script) and move this field from l10n_fr_intrastat_product to intrastat_product

Move intrastat_code and uom_id of report.intrastat.code from l10n_fr_intrastat_product to intrastat_product, as discussed with Luc de Meyer

Use display_name instead of an inherit of name_get (better use of new API) Inherit write and create of intrastat codes to remove spaces (patch by Luc De Meyer from Noviat) Add O2M fields from intrastat code to products and product categs
2024-03-26 17:07:51 +01:00
OCA-git-bot
5069a2ea07 [BOT] post-merge updates 2024-03-15 23:07:23 +00:00
OCA-git-bot
731283c2b4 Merge PR #268 into 17.0
Signed-off-by alexis-via
2024-03-15 23:04:16 +00:00
Andreu Orensanz
c6fe6a5b67 [FIX] product_harmonized_system: Resolve AttributeError in hs_code _compute_display_name 2024-03-15 15:43:54 +01:00
Weblate
b15506214d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-17.0/intrastat-extrastat-17.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-17-0/intrastat-extrastat-17-0-product_harmonized_system/
2024-03-14 16:08:37 +00:00
OCA-git-bot
a532641f7c [BOT] post-merge updates 2024-03-14 15:49:07 +00:00
OCA-git-bot
975c4927ab Merge PR #267 into 17.0
Signed-off-by pedrobaeza
2024-03-14 15:47:00 +00:00
Andreu Orensanz
4f6b7ce3c2 [IMP] product_harmonized_system: solved ACL with an empty group 2024-03-14 16:29:12 +01:00
OCA-git-bot
0be01d0487 [BOT] post-merge updates 2024-03-14 15:06:33 +00:00
oca-ci
da16fa05d7 [UPD] Update product_harmonized_system.pot 2024-03-14 14:59:26 +00:00
OCA-git-bot
de4553560f Merge PR #266 into 17.0
Signed-off-by pedrobaeza
2024-03-14 14:38:23 +00:00
Andreu Orensanz
3e6604e964 [MIG] product_harmonized_system: Migration to 17.0 2024-03-12 08:45:31 +01:00
Andreu Orensanz
02ab46672d [IMP] product_harmonized_system: pre-commit auto fixes 2024-03-11 15:34:57 +01:00
mymage
515b6e58d2 Translated using Weblate (Italian)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/it/
2024-03-11 15:33:41 +01:00
Weblate
678ac94d0a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00
OCA-git-bot
55be60bdf3 [BOT] post-merge updates 2024-03-11 15:33:41 +01:00
oca-ci
76ad964621 [UPD] Update product_harmonized_system.pot 2024-03-11 15:33:41 +01:00
Víctor Martínez
8714fc4a4b [FIX] product_harmonized_system: Change web_ribbon text to title to make it translatable 2024-03-11 15:33:41 +01:00
mymage
cbb241442d Translated using Weblate (Italian)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/it/
2024-03-11 15:33:41 +01:00
mymage
cdb642e114 Added translation using Weblate (Italian) 2024-03-11 15:33:41 +01:00
OCA-git-bot
e8decaae24 [UPD] README.rst 2024-03-11 15:33:41 +01:00
Alexis de Lattre
cc0bf922f5 Translated using Weblate (French)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/fr/
2024-03-11 15:33:41 +01:00
Sandrine (ACSONE)
bf3b9e01ed Translated using Weblate (French)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/fr/
2024-03-11 15:33:41 +01:00
gelo joga Rodríguez
cf97d2358b Translated using Weblate (Spanish)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/es/
2024-03-11 15:33:41 +01:00
Bole
6f690973fe Translated using Weblate (Croatian)
Currently translated at 100.0% (35 of 35 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/hr/
2024-03-11 15:33:41 +01:00
Weblate
7a059ef88d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00
OCA-git-bot
15188fe8c8 [UPD] README.rst 2024-03-11 15:33:41 +01:00
oca-ci
df5899d55b [UPD] Update product_harmonized_system.pot 2024-03-11 15:33:41 +01:00
Alexis de Lattre
aa5f07977b [MIG] product_harmonized_system to v16 2024-03-11 15:33:41 +01:00
OCA-git-bot
e7d68bd61d [UPD] README.rst 2024-03-11 15:33:41 +01:00
oca-ci
982f82bc7f [UPD] Update product_harmonized_system.pot 2024-03-11 15:33:41 +01:00
Alexis de Lattre
791a81183d [MIG] product_harmonized_system to v15
TT36971
2024-03-11 15:33:41 +01:00
Bole
0b1ebcba8b Translated using Weblate (Croatian)
Currently translated at 10.5% (4 of 38 strings)

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/hr/
2024-03-11 15:33:41 +01:00
Bole
c954fbb98e Added translation using Weblate (Croatian) 2024-03-11 15:33:41 +01:00
Yu Weng
ffb4f53652 [IMP] add tag 'sheet' into form view of hs.code
product_harmonized_system 14.0.2.3.0
2024-03-11 15:33:41 +01:00
Luc De Meyer
b700a83c10 [14.0]intrastat - improved brexit support
[UPD] Update product_harmonized_system.pot

product_harmonized_system 14.0.2.2.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00
Luc De Meyer
c405a313bb [14.0]Intrastat Brexit support 2024-03-11 15:33:41 +01:00
Alexis de Lattre
05639fa712 product_harmonized_system_delivery: hs_code is now store=True
This commit is the "followup" of the change to company_dependent=False
on the fields hs_code_id on product.template and product.category.
Add groupby on hs_code_id on product.template search view
hs.code is now company_id=False by default

[UPD] Update product_harmonized_system.pot

product_harmonized_system 14.0.2.1.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00
Alexis de Lattre
260c8a469d [MIG] hs_code_id company_dependent=True to False
Migration script provided for product.template and product.category
Fixes bug #126
2024-03-11 15:33:41 +01:00
Adrià Gil Sorribes
a1992abb3c [13.0] product_harmonized_system: do not require company on hs_code model
product_harmonized_system 14.0.1.0.1
2024-03-11 15:33:41 +01:00
Alexis de Lattre
ec9496b469 Translated using Weblate (French)
Currently translated at 100.0% (36 of 36 strings)

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/fr/
2024-03-11 15:33:41 +01:00
Mat-moran
5b79aae167 Translated using Weblate (Spanish)
Currently translated at 80.5% (29 of 36 strings)

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/es/
2024-03-11 15:33:41 +01:00
Alexis de Lattre
255511669a [MIG] product_harmonized_system to v14
[UPD] README.rst

[UPD] Update product_harmonized_system.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00
Alexis de Lattre
7641501466 intrastat_product: Add xml_attachment_id field
intrastat_product: add mail.activity.mixin and widget in form view
product_harmonized_system: remove archive button (use Action menu)
All modules:
- use super() instead of super(class, self)
- Update domain_force in multi-company ir.rule to v13 standard
2024-03-11 15:33:41 +01:00
Luc De Meyer
8c31c320ea [13.0][FIX]replace deprecated _company_default_get
product_harmonized_system 13.0.1.0.1

pre-commit update
2024-03-11 15:33:41 +01:00
BenjaHe
db53aacd5a [13.0] [MIG] product harmonized system (#80)
* Large code re-engineering following the Akretion-Noviat code sprint on intrastat

This code has been written both by Luc de Meyer and myself.

* hs_code display_name fix

* major update intrastat V3 modules

* Add product_origin_country_id on declaration/computation lines

Copy incoterms and destination country from SO to invoice when invoicing from SO
We need weight even when supplementary units is used
Small cleanups and enhancements

* Add support for accessory costs

Add default values for intrastat transaction on company
Code cleanup

* this week's ci errors

* Update README.rst

Rename variables

* Port intrastat_base to v10

Set 2 other modules to uninstallable
Update README.rst: switch to new intrastat project

* Port product_harmonized_system to v10

* Fix warning on display_name

Special thanks to Pedro and Holger for finding the solution for display_name
Fix demo data

* [MIG] product_harmonized_system: Migration to 11.0

* [FIX] product_harmonized_system: fix get_hs_code_recurively

* [IMP] *: removed utf-8 headers, changed icon and site

* company model test, country model test as in v8
* png logo instead of svg, removed Python 2 utf-8 headers

* [UPD] Update product_harmonized_system.pot

* Add new module product_harmonized_system_delivery (hide native hs_code field)

Finalize port to v11

* [FIX+IMP] intrastat_*: Several things:

* Add readonly on some fields when state of declaration is done
* Division by zero in computation of accessory costs
* Add FR translation
* Fix strings
* Minor code updates

* [MIG] intrastat_product: Migration to 11.0

* Small fixes in intrastat_base
* account_tax_template

* [ADD] icon.png

* [UPD] Update product_harmonized_system.pot

* Prepare v12 branch

* [MIG] Migrate all modules from v11 to v12

* flake8

* [UPD] Update product_harmonized_system.pot

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-12.0/intrastat-extrastat-12.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-12-0/intrastat-extrastat-12-0-product_harmonized_system/

* [FIX] product_harmized_system DESCRIPTION.rst

* [UPD] README.rst

* [UPD] README.rst

* Added translation using Weblate (Spanish)

* Translated using Weblate (Spanish)

Currently translated at 50.0% (18 of 36 strings)

Translation: intrastat-extrastat-12.0/intrastat-extrastat-12.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-12-0/intrastat-extrastat-12-0-product_harmonized_system/es/

* [MIG] product_harmonized_system : Migration to 13.0

* [IMP] product_harmonized_system: black, isort

[UPD] README.rst

[UPD] Update product_harmonized_system.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-13.0/intrastat-extrastat-13.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-13-0/intrastat-extrastat-13-0-product_harmonized_system/
2024-03-11 15:33:41 +01:00