mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[10.0]FIX account.config.settings
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
{
|
||||
'name': 'Intrastat Product',
|
||||
'version': '10.0.1.1.0',
|
||||
'version': '10.0.1.2.0',
|
||||
'category': 'Intrastat',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'Base module for Intrastat Product',
|
||||
|
||||
@@ -29,3 +29,5 @@ class AccountConfigSettings(models.TransientModel):
|
||||
related='company_id.intrastat_transaction_in_refund')
|
||||
intrastat_accessory_costs = fields.Boolean(
|
||||
related='company_id.intrastat_accessory_costs')
|
||||
country_id = fields.Many2one(
|
||||
related='company_id.country_id')
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<field name="intrastat_transaction_out_refund"/>
|
||||
<field name="intrastat_transaction_in_invoice"/>
|
||||
<field name="intrastat_transaction_in_refund"/>
|
||||
<field name="country_id" invisible="1"/>
|
||||
<field name="intrastat_region_id" domain="[('country_id','=', country_id)]" invisible="1"/>
|
||||
<field name="intrastat_transport_id"
|
||||
attrs="{'required': [('intrastat', '=', 'extended')], 'invisible': [('intrastat', '!=', 'extended')]}"/>
|
||||
|
||||
Reference in New Issue
Block a user