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>
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>
* 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