Commit Graph

182 Commits

Author SHA1 Message Date
Luc De Meyer
ee0db4e62f flake8 2023-03-06 10:11:07 +01:00
Alexis de Lattre
63c59e2dfa [MIG] Migrate all modules from v11 to v12 2023-03-06 10:11:07 +01:00
Alexis de Lattre
1cc41d196f Prepare v12 branch 2023-03-06 10:11:07 +01:00
Pedro M. Baeza
69681899f0 [FIX] intrastat_product: Fix duplicated msgid string 2023-03-06 10:11:07 +01:00
Luc De Meyer
8a6a459bc9 [MIG] intrastat_product: Migration to 11.0
* Small fixes in intrastat_base
* account_tax_template
2023-03-06 10:11:07 +01:00
Alexis de Lattre
1b751636b3 [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
2023-03-06 10:11:07 +01:00
Alexis de Lattre
c850a62a26 Add new module product_harmonized_system_delivery (hide native hs_code field)
Finalize port to v11
2023-03-06 10:11:07 +01:00
luc.demeyer@noviat.com
c8b6484385 [FIX+IMP] intrastat_product: reporting level + move methods to IntrastatProductDeclaration class 2023-03-06 10:11:07 +01:00
luc.demeyer@noviat.com
334a41057e [10.0][FIX]get_hs_code_recursively on product.template 2023-03-06 10:11:07 +01:00
Alexis de Lattre
28b0d4cea3 |FIX] Broken intrastat decl form view (was borken when you did NOT have web_sheet_full_width) 2023-03-06 10:11:07 +01:00
Kumar Aberer
b3c87a3248 [MIG] intrastat_product: Migration to 11.0 2023-03-06 10:11:07 +01:00
Przemek Kaminski
b97b03f61c res_company: fix intrastat_dispatches selection function 2023-03-06 10:11:07 +01:00
cubells
dcf4c5b95f [FIX] intrastat_product: state can be None 2023-03-06 10:11:07 +01:00
Alexis de Lattre
5d8c60c5c4 [MIG] intrastat_product: Migration to 10.0
intrastat_base: Move company view params to account config page
2023-03-06 10:11:07 +01:00
luc-demeyer
23209812b4 update intrastat_product 2023-03-06 10:11:07 +01:00
Alexis de Lattre
80c0e7c782 [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)
2023-03-06 10:11:07 +01:00
Holger Brunn
f967db49fd [FIX] intrastat_product: this week's ci errors + another wrong variable name 2023-03-06 10:11:07 +01:00
Alexis de Lattre
32b51b005c [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.
2023-03-06 10:11:07 +01:00
luc-demeyer
347b17ef87 intrastat fixes 2023-03-06 10:11:07 +01:00
Alexis de Lattre
bec7bb8885 [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
2023-03-06 10:11:07 +01:00
Luc De Meyer
a73b92b6d4 [IMP] intrastat_product: major update intrastat V3 modules
* add region to intrastat_product
2023-03-06 10:11:07 +01:00
Alexis de Lattre
a9df58f7ef [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
2023-03-06 10:11:07 +01:00
Guewen Baconnier
c193629374 display_name must be stored as it is used as _rec_name, otherwise we cant, for instance, import files with name_search 2023-03-06 10:11:07 +01:00
Alexis de Lattre
ad75fb0cc8 [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
2023-03-06 10:11:07 +01:00
Weblate
4737727e34 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-intrastat_base
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-intrastat_base/
2023-03-04 16:06:42 +00:00
Weblate
2d622487ce 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_delivery
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system_delivery/
2023-03-04 14:09:33 +00:00
OCA-git-bot
7f56377c8c [ADD] setup.py 2023-03-04 14:09:26 +00:00
OCA-git-bot
218e3dd4cb [UPD] README.rst 2023-03-04 14:09:25 +00:00
OCA-git-bot
307cc77a66 [UPD] addons table in README.md 2023-03-04 14:09:24 +00:00
oca-ci
e131014d57 [UPD] Update intrastat_base.pot 2023-03-04 14:06:27 +00:00
OCA-git-bot
e450181222 Merge PR #210 into 16.0
Signed-off-by alexis-via
2023-03-04 14:04:05 +00:00
Bole
967e1987d3 Translated using Weblate (Croatian)
Currently translated at 100.0% (1 of 1 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system_stock
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system_stock/hr/
2023-02-15 19:22:14 +00:00
Bole
f30421ce3e Translated using Weblate (Croatian)
Currently translated at 100.0% (5 of 5 strings)

Translation: intrastat-extrastat-16.0/intrastat-extrastat-16.0-product_harmonized_system_delivery
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-16-0/intrastat-extrastat-16-0-product_harmonized_system_delivery/hr/
2023-02-15 19:22:14 +00:00
Bole
d8a2d6989a 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/
2023-02-15 19:22:14 +00:00
Bole
b7e57d639a Added translation using Weblate (Croatian) 2023-02-15 16:54:32 +00:00
Bole
0f57d681ab Added translation using Weblate (Croatian) 2023-02-15 16:51:18 +00:00
OCA-git-bot
c931608d6e [ADD] setup.py 2023-02-13 19:20:06 +00:00
OCA-git-bot
3faacedf8f [UPD] README.rst 2023-02-13 19:20:05 +00:00
OCA-git-bot
81f8f76fc6 [UPD] addons table in README.md 2023-02-13 19:20:04 +00:00
oca-ci
d921ab67f0 [UPD] Update product_harmonized_system_stock.pot 2023-02-13 19:15:47 +00:00
OCA-git-bot
3e1780afe8 Merge PR #208 into 16.0
Signed-off-by alexis-via
2023-02-13 19:11:35 +00:00
OCA-git-bot
efd2ce4f2b [ADD] setup.py 2023-02-13 19:11:13 +00:00
OCA-git-bot
e0b25aa16f [UPD] README.rst 2023-02-13 19:11:12 +00:00
OCA-git-bot
c2a5d01ffe [UPD] addons table in README.md 2023-02-13 19:11:11 +00:00
oca-ci
aff61d3aeb [UPD] Update product_harmonized_system_delivery.pot 2023-02-13 19:07:57 +00:00
OCA-git-bot
30f44e47c3 Merge PR #209 into 16.0
Signed-off-by alexis-via
2023-02-13 18:58:16 +00:00
Alexis de Lattre
74f0f8431b [MIG] product_harmonized_system_stock to v16 2023-02-13 16:19:04 +01:00
OCA-git-bot
a0f7e61bfb [UPD] README.rst 2023-02-13 16:19:04 +01:00
oca-ci
6e4b37710b [UPD] Update product_harmonized_system_stock.pot 2023-02-13 16:19:04 +01:00
Alexis de Lattre
e8d05927c1 [MIG] product_harmonized_system_stock to v15 2023-02-13 16:19:04 +01:00