Commit Graph

183 Commits

Author SHA1 Message Date
oca-travis
7f736bedbe [UPD] Update intrastat_product.pot 2024-03-26 17:07:51 +01:00
Víctor Martínez
4c47a22136 [IMP] intrastat_product: Add active field to transactions.
TT30682
2024-03-26 17:07:51 +01:00
Alexis de Lattre
721b94deea Translated using Weblate (French)
Currently translated at 87.1% (211 of 242 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/fr/
2024-03-26 17:07:51 +01:00
Alexis de Lattre
f43dde9533 Translated using Weblate (French)
Currently translated at 73.1% (177 of 242 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/fr/
2024-03-26 17:07:51 +01:00
Alexis de Lattre
963290345c intrastat_product: improve tree view of declaration 2024-03-26 17:07:51 +01:00
OCA-git-bot
88d6481b70 intrastat_product 14.0.1.1.0 2024-03-26 17:07:51 +01:00
João Marques
4b92a51812 [FIX] intrastat_product: don't force wrong domain in moves
The intrastat transaction domain is already forced in the model and in the field in account.move.
It was being incorrectly forced in the move, where it needed to be associated to the same company as the record, but those types can have no company associated

TT29582
2024-03-26 17:07:51 +01:00
OCA-git-bot
e35726da94 intrastat_product 14.0.1.0.1 2024-03-26 17:07:51 +01:00
OCA-git-bot
0346bf64cc [UPD] README.rst 2024-03-26 17:07:51 +01:00
João Marques
f9813a18de [FIX] intrastat_product: Missed changes in migration
Change back from invoice.type to invoice.move_type
Update method signature and calls after the refactor in "intrastat.product.declaration"
Add some docs to explain the functionality that leads to this part of the code.

TT28080
2024-03-26 17:07:51 +01:00
OCA-git-bot
4d00a6eed3 [UPD] README.rst 2024-03-26 17:07:51 +01:00
oca-travis
1fca9aacea [UPD] Update intrastat_product.pot 2024-03-26 17:07:51 +01:00
João Marques
6c44534e75 [IMP] intrastat_product: add support for Brexit + small performance improvement + remove universal hs_code constaint
Add support for post-Brexit VAT numbers with latest python-stdnum version
Remove use of country_id.intrastat
Add 'vat' field on computation and declaration lines with a simple validity check
Add 'partner_id' field on computation lines
Prevent back to draft when an XML export is present
Remove the universal constaint applied to the hs_codes for countries in the "Europe" list, as discussed in https://github.com/OCA/intrastat-extrastat/pull/116#discussion_r569735555

Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
2024-03-26 17:07:51 +01:00
João Marques
9573e4ff74 [MIG] intrastat_product: Migration to 14.0
Rename field type to declaration_type
Use the new intrastat boolean of fiscal position, following issue #110

Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
2024-03-26 17:07:51 +01:00
Luc De Meyer
58bffd2d5c [13.0]invoice_date -> date 2024-03-26 17:07:51 +01:00
mreficent
bddb4731cd [FIX] Migration fixes + full migration scripts 2024-03-26 17:07:51 +01:00
Luc De Meyer
8e95e4f88b refactor code to allow adding transaction details while encoding invoices 2024-03-26 17:07:51 +01:00
Luc De Meyer
534bfefe3d [13.0]fix stack trace when entering invoice line without product 2024-03-26 17:07:51 +01:00
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