1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_invoice_extract/models/res_company.py
2024-12-10 09:04:09 +07:00

23 lines
879 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
extract_in_invoice_digitalization_mode = fields.Selection([
('no_send', "Do not digitize"),
('manual_send', "Digitize on demand only"),
('auto_send', "Digitize automatically")],
string="Digitization mode on vendor bills",
default='auto_send')
extract_out_invoice_digitalization_mode = fields.Selection([
('no_send', "Do not digitize"),
('manual_send', "Digitize on demand only"),
('auto_send', "Digitize automatically")],
string="Digitization mode on customer invoices",
default='manual_send')
extract_single_line_per_tax = fields.Boolean(string="Single Invoice Line Per Tax", default=True)