forked from Mapan/odoo17e
23 lines
879 B
Python
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)
|