Commit Graph

134 Commits

Author SHA1 Message Date
Alexis de Lattre
929e987fff 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/
2022-09-12 12:35:30 +02:00
Alexis de Lattre
38c71aa28a intrastat_product: improve tree view of declaration 2022-09-12 12:35:30 +02:00
João Marques
9e9c965fe1 [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

intrastat_product 14.0.1.1.0
2022-09-12 12:35:29 +02:00
João Marques
4d3286c0b4 [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

[UPD] README.rst

intrastat_product 14.0.1.0.1
2022-09-12 12:35:27 +02:00
João Marques
5ccd0a5b8d [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>

[UPD] Update intrastat_product.pot

[UPD] README.rst
2022-09-12 12:35:25 +02:00
João Marques
d9cc54740d [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>
2022-09-12 12:31:34 +02:00
Luc De Meyer
b04d0a254c [13.0]invoice_date -> date 2022-09-12 12:31:34 +02:00
mreficent
6c39ba1d4d [FIX] Migration fixes + full migration scripts 2022-09-12 12:31:34 +02:00
Luc De Meyer
4c1eab2655 refactor code to allow adding transaction details while encoding invoices 2022-09-12 12:31:34 +02:00
Luc De Meyer
36af315a89 [13.0]fix stack trace when entering invoice line without product 2022-09-12 12:31:34 +02:00
Alexis de Lattre
af985f782d 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
2022-09-12 12:31:34 +02:00
Luc De Meyer
4d13a7f550 [13.0][FIX]invoice line hs code 2022-09-12 12:31:34 +02:00
Benjamin Henquet
837df3ae57 [13.0][FIX] 'number' for invoice does not exist anymore the account.move has attribute 'name' 2022-09-12 12:31:34 +02:00
Luc De Meyer
f5735652da [MIG] intrastat_product: Migration to 13.0 2022-09-12 12:31:34 +02:00
Stéphane Bidoul (ACSONE)
6372c2a515 [FIX] intrastat_product USAGE.rst title level 2022-09-12 12:31:34 +02:00
Luc De Meyer
13dedcd9f0 [12.0][FIX]fix name_get on intrastat.transaction (#73) 2022-09-12 12:31:34 +02:00
Daniel Duque
814592b793 [FIX] Translations in intrastat_product 2022-09-12 12:31:34 +02:00
Luc De Meyer
523a2e1346 flake8 2022-09-12 12:31:34 +02:00
Alexis de Lattre
01248d513d [MIG] Migrate all modules from v11 to v12 2022-09-12 12:31:34 +02:00
Alexis de Lattre
41aaa3a655 Prepare v12 branch 2022-09-12 12:31:34 +02:00
Pedro M. Baeza
7fd2f0be51 [FIX] intrastat_product: Fix duplicated msgid string 2022-09-12 12:31:34 +02:00
Luc De Meyer
e87893db7d [MIG] intrastat_product: Migration to 11.0
* Small fixes in intrastat_base
* account_tax_template
2022-09-12 12:31:34 +02:00
Alexis de Lattre
6b3d994912 [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
2022-09-12 12:31:34 +02:00
Alexis de Lattre
d853e54cd2 Add new module product_harmonized_system_delivery (hide native hs_code field)
Finalize port to v11
2022-09-12 12:31:34 +02:00
luc.demeyer@noviat.com
ef575b82ad [FIX+IMP] intrastat_product: reporting level + move methods to IntrastatProductDeclaration class 2022-09-12 12:31:34 +02:00
luc.demeyer@noviat.com
5aa3649cad [10.0][FIX]get_hs_code_recursively on product.template 2022-09-12 12:31:34 +02:00
Alexis de Lattre
7874cdb64f |FIX] Broken intrastat decl form view (was borken when you did NOT have web_sheet_full_width) 2022-09-12 12:31:34 +02:00
Kumar Aberer
5424dff30d [MIG] intrastat_product: Migration to 11.0 2022-09-12 12:31:34 +02:00
Przemek Kaminski
82dd8c6195 res_company: fix intrastat_dispatches selection function 2022-09-12 12:31:34 +02:00
cubells
5265a5af58 [FIX] intrastat_product: state can be None 2022-09-12 12:31:34 +02:00
Alexis de Lattre
0cf1a7443f [MIG] intrastat_product: Migration to 10.0
intrastat_base: Move company view params to account config page
2022-09-12 12:31:34 +02:00
luc-demeyer
f05fbd3c28 update intrastat_product 2022-09-12 12:31:34 +02:00
Alexis de Lattre
9b4ac3ad6f [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)
2022-09-12 12:31:34 +02:00
Holger Brunn
6f01d85f59 [FIX] intrastat_product: this week's ci errors + another wrong variable name 2022-09-12 12:31:34 +02:00
Alexis de Lattre
07aa9a751f [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.
2022-09-12 12:31:34 +02:00
luc-demeyer
3eb195b95b intrastat fixes 2022-09-12 12:31:34 +02:00
Alexis de Lattre
fae151b7ac [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
2022-09-12 12:31:34 +02:00
Luc De Meyer
21a056ee27 [IMP] intrastat_product: major update intrastat V3 modules
* add region to intrastat_product
2022-09-12 12:31:34 +02:00
Alexis de Lattre
08ffc223cd [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
2022-09-12 12:31:34 +02:00
Guewen Baconnier
cf30a68dd5 display_name must be stored as it is used as _rec_name, otherwise we cant, for instance, import files with name_search 2022-09-12 12:31:34 +02:00
Alexis de Lattre
6d4f1ae57b [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
2022-09-12 12:31:34 +02:00
OCA-git-bot
9becc44fb6 [ADD] setup.py 2022-08-03 16:07:55 +00:00
OCA-git-bot
ef86c880cb [UPD] README.rst 2022-08-03 16:07:55 +00:00
OCA-git-bot
ccc34e9d52 [UPD] addons table in README.md 2022-08-03 16:07:54 +00:00
oca-ci
9f29bea5a8 [UPD] Update product_harmonized_system.pot 2022-08-03 16:05:44 +00:00
OCA-git-bot
8e0c4aaae5 Merge PR #186 into 15.0
Signed-off-by pedrobaeza
2022-08-03 16:03:36 +00:00
Alexis de Lattre
379b73e11d [MIG] product_harmonized_system to v15
TT36971
2022-08-03 10:25:25 +02:00
Víctor Martínez
c7046838a5 [IMP] product_harmonized_system: black, isort, prettier 2022-08-02 09:21:44 +02:00
Bole
fdd3bf5533 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/
2022-08-02 09:21:44 +02:00
Bole
ea9f9abc7b Added translation using Weblate (Croatian) 2022-08-02 09:21:44 +02:00