Our positionning of the scan line (ligne de codage) was possibly wrong depending on wkhtmltopdf. In eg. chromium the font is configurable exactly but in wkhtmltopdf it seems there is bigger limitation on giving eg. a decimal pixel number. But this was necessary to have the same character positionning than expected in BVR, and this line is read by scanner and must match. This change: - have an absolute positionning for each character in the scan line - add two parameters "ISR scan line horizontal/vertical offset" that will move the scan line to the choosen distance. - changes some other CSS value to match better the ISR documents on accounting on differences between wkhtmltopdf 0.1.2.1 and 0.1.4.1 - remove currency which should be on the BVR background. opw-1813776 closes #23518
21 lines
919 B
Python
21 lines
919 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
l10n_ch_isr_preprinted_account = fields.Boolean(string='Preprinted account',
|
|
related="company_id.l10n_ch_isr_preprinted_account")
|
|
l10n_ch_isr_preprinted_bank = fields.Boolean(string='Preprinted bank',
|
|
related="company_id.l10n_ch_isr_preprinted_bank")
|
|
l10n_ch_isr_print_bank_location = fields.Boolean(string="Print bank on ISR",
|
|
related="company_id.l10n_ch_isr_print_bank_location",
|
|
required=True)
|
|
l10n_ch_isr_scan_line_left = fields.Float(string='Horizontal offset',
|
|
related="company_id.l10n_ch_isr_scan_line_left")
|
|
l10n_ch_isr_scan_line_top = fields.Float(string='Vertical offset',
|
|
related="company_id.l10n_ch_isr_scan_line_top")
|