1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/stock_intrastat/models/stock_warehouse.py
2024-12-10 09:04:09 +07:00

12 lines
465 B
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
company_country_id = fields.Many2one('res.country', related='company_id.account_fiscal_country_id', readonly=True)
intrastat_region_id = fields.Many2one('account.intrastat.code', string='Intrastat region',
domain="[('type', '=', 'region'), '|', ('country_id', '=', None), ('country_id', '=', company_country_id)]")