14 lines
402 B
Python
14 lines
402 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, api
|
|
|
|
|
|
class PosSession(models.Model):
|
|
_inherit = 'pos.session'
|
|
|
|
@api.model
|
|
def _load_pos_data_models(self, config):
|
|
data = super()._load_pos_data_models(config)
|
|
if self.env.company.country_id.code == 'CL':
|
|
data += ['l10n_latam.identification.type', 'l10n_latam.document.type', 'account.move']
|
|
return data
|