Commit Graph

13 Commits

Author SHA1 Message Date
Víctor Martínez
e9396ef0eb [IMP] intrastat_product: Add an Intrastat summary in the invoice report.
TT37168
2022-08-16 08:56:44 +02:00
Luc De Meyer
964037e9dc [14.0]brexit support - size=2 on product_origin_country_code 2022-05-12 10:30:10 +02:00
Luc De Meyer
085e24f59d [14.0]improved brexit support - keep backwards compatibility with localisation modules 2022-05-03 09:54:40 +02:00
Luc De Meyer
47cbc65d0f [14.0]Intrastat Brexit support 2022-05-02 15:40:04 +02:00
Luc De Meyer
85d57d2e38 cherry-pick of https://github.com/OCA/intrastat-extrastat/pull/151 2021-11-10 08:37:43 +01:00
João Marques
84a9dffd7c [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
2021-05-10 09:15:10 +01:00
João Marques
3c4441777e [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
2021-02-18 13:13:23 +00:00
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
mreficent
bcb71216c0 [FIX] Migration fixes + full migration scripts 2021-02-08 15:24:04 +00:00
Luc De Meyer
5a4296a386 refactor code to allow adding transaction details while encoding invoices 2021-02-08 15:24:04 +00:00
Luc De Meyer
00ed38be3f [13.0]fix stack trace when entering invoice line without product 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