mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
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>
15 lines
422 B
Python
15 lines
422 B
Python
# Copyright 2011-2020 Akretion (http://www.akretion.com)
|
|
# Copyright 2009-2020 Noviat (http://www.noviat.com)
|
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# @author Luc de Meyer <info@noviat.com>
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HSCode(models.Model):
|
|
_inherit = "hs.code"
|
|
|
|
intrastat_unit_id = fields.Many2one(
|
|
comodel_name="intrastat.unit", string="Intrastat Supplementary Unit"
|
|
)
|