diff --git a/intrastat_product/models/intrastat_transaction.py b/intrastat_product/models/intrastat_transaction.py index d9987d8..b542e87 100644 --- a/intrastat_product/models/intrastat_transaction.py +++ b/intrastat_product/models/intrastat_transaction.py @@ -25,6 +25,7 @@ class IntrastatTransaction(models.Model): string="Company", default=lambda self: self._default_company_id(), ) + active = fields.Boolean(default=True) @api.model def _default_company_id(self): diff --git a/intrastat_product/views/intrastat_transaction.xml b/intrastat_product/views/intrastat_transaction.xml index c519328..2c5468b 100644 --- a/intrastat_product/views/intrastat_transaction.xml +++ b/intrastat_product/views/intrastat_transaction.xml @@ -13,11 +13,20 @@ intrastat.transaction
- - - - - + + + + + + + + +