Files
enterprise-addons/l10n_se_pos/models/product_product.py
T

15 lines
398 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class ProductProduct(models.Model):
_inherit = 'product.product'
@api.model
def _load_pos_data_fields(self, config):
result = super()._load_pos_data_fields(config)
if self.env.company.country_id.code == 'SE':
result += ['type']
return result