Commit Graph

165 Commits

Author SHA1 Message Date
Alexis de Lattre
9043fe4bbc 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-26 17:07:51 +01:00
Luc De Meyer
98cfd6d1be [13.0][FIX]invoice line hs code 2024-03-26 17:07:51 +01:00
Benjamin Henquet
9ada9a6722 [13.0][FIX] 'number' for invoice does not exist anymore the account.move has attribute 'name' 2024-03-26 17:07:51 +01:00
Luc De Meyer
33e4c33999 [MIG] intrastat_product: Migration to 13.0 2024-03-26 17:07:51 +01:00
Stéphane Bidoul (ACSONE)
058d8dca2d [FIX] intrastat_product USAGE.rst title level 2024-03-26 17:07:51 +01:00
Luc De Meyer
3dc7656143 [12.0][FIX]fix name_get on intrastat.transaction (#73) 2024-03-26 17:07:51 +01:00
Daniel Duque
f89d184f8e [FIX] Translations in intrastat_product 2024-03-26 17:07:51 +01:00
Luc De Meyer
1b2b3700d9 flake8 2024-03-26 17:07:51 +01:00
Alexis de Lattre
0345cf2f2c [MIG] Migrate all modules from v11 to v12 2024-03-26 17:07:51 +01:00
Alexis de Lattre
a2f9083994 Prepare v12 branch 2024-03-26 17:07:51 +01:00
Pedro M. Baeza
7892f88aa1 [FIX] intrastat_product: Fix duplicated msgid string 2024-03-26 17:07:51 +01:00
Luc De Meyer
df3a9b2bf7 [MIG] intrastat_product: Migration to 11.0
* Small fixes in intrastat_base
* account_tax_template
2024-03-26 17:07:51 +01:00
Alexis de Lattre
f1ce0cf5e2 [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
2024-03-26 17:07:51 +01:00
Alexis de Lattre
59e4badb4d Add new module product_harmonized_system_delivery (hide native hs_code field)
Finalize port to v11
2024-03-26 17:07:51 +01:00
luc.demeyer@noviat.com
96981a0e65 [FIX+IMP] intrastat_product: reporting level + move methods to IntrastatProductDeclaration class 2024-03-26 17:07:51 +01:00
luc.demeyer@noviat.com
f74fd57e99 [10.0][FIX]get_hs_code_recursively on product.template 2024-03-26 17:07:51 +01:00
Alexis de Lattre
40a8f07597 |FIX] Broken intrastat decl form view (was borken when you did NOT have web_sheet_full_width) 2024-03-26 17:07:51 +01:00
Kumar Aberer
457a0fa4c8 [MIG] intrastat_product: Migration to 11.0 2024-03-26 17:07:51 +01:00
Przemek Kaminski
41a19b445b res_company: fix intrastat_dispatches selection function 2024-03-26 17:07:51 +01:00
cubells
ed12a661b4 [FIX] intrastat_product: state can be None 2024-03-26 17:07:51 +01:00
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