| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | |
| 3 | from odoo import api, models |
| 4 | |
| 5 | |
| 6 | class ProductTemplate(models.Model): |
| 7 | _inherit = "product.template" |
| 8 | |
| 9 | @api.model |
| 10 | def _load_pos_data_fields(self, config): |
| 11 | fields = super()._load_pos_data_fields(config) |
| 12 | if self.env.company.country_id.code == 'IN': |
| 13 | fields += ['l10n_in_hsn_code'] |
| 14 | return fields |