| 1 |
from odoo import models, fields |
| 2 |
|
| 3 |
|
| 4 |
class ResPartner(models.Model): |
| 5 |
_inherit = 'res.partner' |
| 6 |
|
| 7 |
invoice_edi_format = fields.Selection(selection_add=[('pint_jp', "Japan (Peppol PINT JP)")]) |
| 8 |
|
| 9 |
def _get_edi_builder(self, invoice_edi_format): |
| 10 |
|
| 11 |
if invoice_edi_format == 'pint_jp': |
| 12 |
return self.env['account.edi.xml.pint_jp'] |
| 13 |
return super()._get_edi_builder(invoice_edi_format) |
| 14 |
|
| 15 |
def _get_ubl_cii_formats_info(self): |
| 16 |
|
| 17 |
formats_info = super()._get_ubl_cii_formats_info() |
| 18 |
formats_info['pint_jp'] = {'countries': ['JP'], 'on_peppol': True} |
| 19 |
return formats_info |