Commit Graph

145 Commits

Author SHA1 Message Date
Alexis de Lattre
ca2bdbb781 [MIG] intrastat_product: Migration to 10.0
intrastat_base: Move company view params to account config page
2024-03-26 17:07:51 +01:00
luc-demeyer
dcaa284057 update intrastat_product 2024-03-26 17:07:51 +01:00
Alexis de Lattre
93b3b59e43 [FIX] intrastat_product: error message + Remove required=1
Because we can have intrastat unit that will never be mapped to an odoo unit (will always be set manually)
2024-03-26 17:07:51 +01:00
Holger Brunn
d77bac6c77 [FIX] intrastat_product: this week's ci errors + another wrong variable name 2024-03-26 17:07:51 +01:00
Alexis de Lattre
e7be812a35 [FIX+IMP] intrastat_product: Fixes and imps:
* Improve logs and messages
* total_amount is a sum of integers, so it should be an integer
* Add transport mode in computation tree view
* FIX intrastat_country for invoices without src_dest_country_id
* FIX wrong model for seach method
* Use stock_picking_invoice_link for a better identification of the intrastat region

  With this commit, we now support the following scenario: I order to my supplier a quantity of 50 kg and he delivers/invoices 52kg ; odoo will create an additional invoice line of 2kg which is linked to the stock move, but not to any PO line.
* Modularise a piece of code
* Add ACL on hs.code to financial manager (I can't do it in product_harmonized_system because it doesn't depend on account)
* Handle scenario where an invoice has products with 0 value (samples for example) and shipping costs (accessory costs) with value > 0.
2024-03-26 17:07:51 +01:00
luc-demeyer
86f885ae7d intrastat fixes 2024-03-26 17:07:51 +01:00
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