Commit Graph

7 Commits

Author SHA1 Message Date
João Marques
2646dc489e [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>
2021-02-12 12:29:09 +00:00
João Marques
2d290b6700 [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>
2021-02-08 15:24:04 +00:00
Luc De Meyer
576c303023 [MIG] intrastat_product: Migration to 13.0 2021-02-08 15:15:48 +00:00
Luc De Meyer
c33db334d7 [MIG] intrastat_product: Migration to 11.0
* Small fixes in intrastat_base
* account_tax_template
2021-02-08 14:27:58 +00:00
Alexis de Lattre
4bbb1d7cda [MIG] intrastat_product: Migration to 10.0
intrastat_base: Move company view params to account config page
2021-02-08 14:27:58 +00:00
Alexis de Lattre
6cfc6f6d8a [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
2021-02-08 14:27:58 +00:00
Luc De Meyer
63ce502f88 [IMP] intrastat_product: major update intrastat V3 modules
* add region to intrastat_product
2021-02-08 14:27:58 +00:00