mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-24 05:11:45 +00:00
14a109dc87
[ADD] l10n_ch_zip [ADD] l10n_ch_bank_statement_import_postfinance
91 lines
2.7 KiB
Python
91 lines
2.7 KiB
Python
# Copyright 2012-2015 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from flectra import models, fields
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
"""Add ISR vertical/horizontal print delta and functionalities."""
|
|
_inherit = "res.company"
|
|
|
|
isr_delta_horz = fields.Float(
|
|
'ISR Horz. Delta (inch)',
|
|
oldname='bvr_delta_horz',
|
|
help='horiz. delta in inch 1.2 will print the ISR 1.2 inch on the '
|
|
'left, negative value is possible'
|
|
)
|
|
|
|
isr_delta_vert = fields.Float(
|
|
'ISR Vert. Delta (inch)',
|
|
oldname='bvr_delta_vert',
|
|
help='vert. delta in inch 1.2 will print the ISR 1.2 inch lower,'
|
|
' negative value is possible'
|
|
)
|
|
|
|
isr_scan_line_vert = fields.Float(
|
|
'ISR vert. position for scan line (inch)',
|
|
oldname='bvr_scan_line_vert',
|
|
help='Vert. position in inch for scan line'
|
|
)
|
|
|
|
isr_scan_line_horz = fields.Float(
|
|
'ISR horiz. position for scan line(inch)',
|
|
oldname='bvr_scan_line_horz',
|
|
help='Horiz. position in inch for scan line'
|
|
)
|
|
|
|
isr_add_vert = fields.Float(
|
|
'ISR vert. position for address (inch)',
|
|
oldname='bvr_add_vert',
|
|
help='Vert. position in inch for address'
|
|
)
|
|
|
|
isr_add_horz = fields.Float(
|
|
'ISR horiz. position address (inch)',
|
|
oldname='bvr_add_horz',
|
|
help='Horiz. position in inch for address'
|
|
)
|
|
|
|
isr_scan_line_font_size = fields.Integer(
|
|
'ISR scan line font size (pt)',
|
|
oldname='bvr_scan_line_font_size',
|
|
)
|
|
|
|
isr_scan_line_letter_spacing = fields.Float(
|
|
'ISR scan line letter spacing',
|
|
oldname='bvr_scan_line_letter_spacing',
|
|
)
|
|
|
|
isr_amount_line_horz = fields.Float(
|
|
'ISR horiz. position for amount line (inch)',
|
|
oldname='bvr_amount_line_horz',
|
|
help='Horiz. position in inch for amount line',
|
|
default=0.00
|
|
)
|
|
|
|
isr_amount_line_vert = fields.Float(
|
|
'ISR vert. position for amount line (inch)',
|
|
oldname='bvr_amount_line_vert',
|
|
help='Vert. position in inch for amount line',
|
|
default=0.00,
|
|
)
|
|
|
|
merge_mode = fields.Selection(
|
|
[('in_memory', 'Merge Slips in Memory, faster but can exhaust memory'),
|
|
('on_disk', 'Merge Slips on Disk, slower but safer')],
|
|
string="Payment Slips Merge Mode",
|
|
required=True,
|
|
default="in_memory"
|
|
)
|
|
isr_background = fields.Boolean(
|
|
'Insert ISR background ?',
|
|
oldname='bvr_background',
|
|
)
|
|
|
|
isr_header_partner_address = fields.Boolean(
|
|
'Header partner address',
|
|
oldname='bvr_header_partner_address',
|
|
default=False,
|
|
help='Enabling this will print partner address top-right on the '
|
|
'page header',
|
|
)
|