Files
enterprise-addons/documents_account_peppol/models/res_company.py
T

24 lines
683 B
Python

from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
peppol_reception_mode = fields.Selection(
selection=[
('journal', 'Receive as Bills'),
('documents', 'Receive as Documents'),
],
default='journal',
)
documents_account_peppol_folder_id = fields.Many2one(
comodel_name='documents.document',
string="Document Folder",
check_company=True,
domain=[('type', '=', 'folder'), ('shortcut_document_id', '=', False)]
)
documents_account_peppol_tag_ids = fields.Many2many(
comodel_name='documents.tag',
string="Document Tags",
)