mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 11:42:00 +02:00
Initial commit: L10N_Europe packages
This commit is contained in:
commit
9803722600
2377 changed files with 380711 additions and 0 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,102 @@
|
|||
Digitized data copyright (c) 2010 Google Corporation
|
||||
with Reserved Font Arimo, Tinos and Cousine.
|
||||
Copyright (c) 2012 Red Hat, Inc.
|
||||
with Reserved Font Name Liberation.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License,
|
||||
Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
|
||||
PREAMBLE The goals of the Open Font License (OFL) are to stimulate
|
||||
worldwide development of collaborative font projects, to support the font
|
||||
creation efforts of academic and linguistic communities, and to provide
|
||||
a free and open framework in which fonts may be shared and improved in
|
||||
partnership with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves.
|
||||
The fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply to
|
||||
any document created using the fonts or their derivatives.
|
||||
|
||||
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such.
|
||||
This may include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components
|
||||
as distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting ? in part or in whole ?
|
||||
any of the components of the Original Version, by changing formats or
|
||||
by porting the Font Software to a new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical writer
|
||||
or other person who contributed to the Font Software.
|
||||
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,in
|
||||
Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the
|
||||
corresponding Copyright Holder. This restriction only applies to the
|
||||
primary font name as presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole, must
|
||||
be distributed entirely under this license, and must not be distributed
|
||||
under any other license. The requirement for fonts to remain under
|
||||
this license does not apply to any document created using the Font
|
||||
Software.
|
||||
|
||||
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are not met.
|
||||
|
||||
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
|
||||
DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Files: ocrb.otf
|
||||
Copyright: 2012 Matthew Skala
|
||||
License: public-domain
|
||||
This file is released to the public domain by its author, Matthew Skala.
|
||||
BIN
odoo-bringout-oca-ocb-l10n_ch/l10n_ch/static/src/font/ocrb.otf
Normal file
BIN
odoo-bringout-oca-ocb-l10n_ch/l10n_ch/static/src/font/ocrb.otf
Normal file
Binary file not shown.
BIN
odoo-bringout-oca-ocb-l10n_ch/l10n_ch/static/src/img/CH-Cross_7mm.png
Executable file
BIN
odoo-bringout-oca-ocb-l10n_ch/l10n_ch/static/src/img/CH-Cross_7mm.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
|
|
@ -0,0 +1,208 @@
|
|||
@font-face {
|
||||
font-family: ocrb;
|
||||
src: url('../font/ocrb.otf') format('opentype');
|
||||
}
|
||||
|
||||
.l10n_ch_isr {
|
||||
/*
|
||||
all elements are positionned for A4 format (210 x 297mm) but the viewport
|
||||
is bigger than this, hence we zoom the whole page to be bigger than the viewport
|
||||
which will then be resized down by wkhtmltopdf to get back to an A4 format
|
||||
*/
|
||||
zoom: 1.25;
|
||||
|
||||
&.o_in_iframe {
|
||||
zoom: 1;
|
||||
|
||||
/* display dummy check bacground in html rendering to help see the end result */
|
||||
#isr {
|
||||
background: url(../img/background_virgin_isr.png) bottom no-repeat;
|
||||
background-size: 100%;
|
||||
|
||||
&.isr-print-bank {
|
||||
background-image: url(../img/background_virgin_isr_bank.png);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* content outside isr needs margins to not overlap header */
|
||||
#content_outside_isr {
|
||||
padding: 15px;
|
||||
padding-top: 150px;
|
||||
}
|
||||
|
||||
/* ISR is intended for pre-printed paper, we don't want stylistic background */
|
||||
.o_report_layout_striped {
|
||||
background: none;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#isr {
|
||||
height: 106mm;
|
||||
width: 210mm;
|
||||
|
||||
position: absolute;
|
||||
/* position bvr at bottom of page */
|
||||
top: 297 - 106mm;
|
||||
left: 0;
|
||||
|
||||
overflow: hidden;
|
||||
font-family: ocrb;
|
||||
line-height: 0.16in;
|
||||
font-size: 10pt;
|
||||
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#voucher {
|
||||
height: 4in;
|
||||
width: 2.4in;
|
||||
|
||||
position: absolute;
|
||||
/* header title of BVR section */
|
||||
top: 0.167in;
|
||||
/* right of voucher corresponds to left of slip */
|
||||
right: 5.9in;
|
||||
}
|
||||
|
||||
#voucher > * {
|
||||
position: absolute;
|
||||
/* default left margin for fields content */
|
||||
left: 0.15in;
|
||||
|
||||
&#voucher-for-contact {
|
||||
top: 0.25in;
|
||||
}
|
||||
|
||||
&#voucher-for-bank {
|
||||
top: 0.18in;
|
||||
}
|
||||
|
||||
&#voucher-for-bank + #voucher-for-contact {
|
||||
top: 0.68in;
|
||||
}
|
||||
|
||||
&#voucher-bank {
|
||||
top: 1.51in;
|
||||
left: 1.1in;
|
||||
}
|
||||
|
||||
&#voucher-amount_units {
|
||||
width: 1.62in;
|
||||
top: 1.87in;
|
||||
|
||||
text-align: right;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.095in;
|
||||
}
|
||||
|
||||
&#voucher-amount_cents {
|
||||
width: 0.4in;
|
||||
top: 1.87in;
|
||||
left: 1.96in;
|
||||
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.095in;
|
||||
}
|
||||
|
||||
&#voucher-by {
|
||||
top: 2.22in;
|
||||
font-size: 9pt;
|
||||
max-width: 2in;
|
||||
|
||||
#voucher-by_reference_number {
|
||||
font-size: 7.5pt;
|
||||
margin-bottom: 0.05in;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#slip {
|
||||
height: 4in;
|
||||
width: 5.9in;
|
||||
|
||||
position: absolute;
|
||||
/* header title of BVR section */
|
||||
top: 0.167in;
|
||||
/* right of slip corresponds to right of slip */
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#slip > * {
|
||||
position: absolute;
|
||||
/* default left margin for fields content */
|
||||
left: 0.15in;
|
||||
|
||||
&#slip-for-contact {
|
||||
top: 0.25in;
|
||||
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&#slip-for-bank {
|
||||
top: 0.18in;
|
||||
}
|
||||
|
||||
&#slip-for-bank + #slip-for-contact {
|
||||
top: 0.68in;
|
||||
}
|
||||
|
||||
&#slip-bank {
|
||||
top: 1.51in;
|
||||
left: 1.1in;
|
||||
}
|
||||
|
||||
&#slip-amount_units {
|
||||
width: 1.62in;
|
||||
top: 1.87in;
|
||||
|
||||
text-align: right;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.095in;
|
||||
}
|
||||
|
||||
&#slip-amount_cents {
|
||||
width: 0.4in;
|
||||
top: 1.87in;
|
||||
left: 1.96in;
|
||||
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.095in;
|
||||
}
|
||||
|
||||
&#slip-reference {
|
||||
width: 3.3in;
|
||||
top: 1.2in;
|
||||
left: 2.5in;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&#slip-by {
|
||||
top: 1.85in;
|
||||
left: 2.55in;
|
||||
}
|
||||
|
||||
&#slip-optical-line {
|
||||
right: 0.32in;
|
||||
bottom: 0.667in;
|
||||
|
||||
/* Positioning is set for OCRB of Tsukurimashou Font Family */
|
||||
font-family: ocrb;
|
||||
font-size: 10pt;
|
||||
line-height: 0.1in;
|
||||
|
||||
> div {
|
||||
position: relative;
|
||||
|
||||
> div {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,193 @@
|
|||
@font-face {
|
||||
font-family: LiberationSans;
|
||||
src: url('../font/LiberationSans-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
}
|
||||
@font-face {
|
||||
font-family: LiberationSans;
|
||||
src: url('../font/LiberationSans-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
$l10n-ch-qr-ratio: 1.25;
|
||||
|
||||
body.l10n_ch_qr{
|
||||
padding: 0;
|
||||
span{
|
||||
padding-left: 10mm;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Disable custom bakground */
|
||||
.o_report_layout_striped {
|
||||
background-color: white;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.swissqr_page_title {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
height: 7mm * $l10n-ch-qr-ratio;
|
||||
padding: 15px;
|
||||
padding-top: 150px;
|
||||
h1{
|
||||
padding-left:20mm;
|
||||
white-space:nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.swissqr_content_v2 {
|
||||
|
||||
$receipt_width: 52mm * $l10n-ch-qr-ratio;
|
||||
$left_col_width: 46mm * $l10n-ch-qr-ratio;
|
||||
$right_col_width: 87mm * $l10n-ch-qr-ratio;
|
||||
$rounding_offset: 0.25mm;
|
||||
|
||||
@mixin font {
|
||||
font-family: LiberationSans;
|
||||
color: black;
|
||||
}
|
||||
@mixin title {
|
||||
@include font;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* New QR Bill code */
|
||||
background-color: white !important;
|
||||
|
||||
/* Disable custom font-family */
|
||||
.o_company_2_layout {
|
||||
font-family: revert;
|
||||
}
|
||||
|
||||
.title {
|
||||
@include title;
|
||||
}
|
||||
|
||||
.swissqr_text {
|
||||
@include font;
|
||||
}
|
||||
|
||||
.swissqr_section_title {
|
||||
@include title;
|
||||
width: $receipt_width;
|
||||
height: 7mm * $l10n-ch-qr-ratio;
|
||||
font-size: 11pt * $l10n-ch-qr-ratio;
|
||||
line-height: 9pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
|
||||
.swissqr_receipt {
|
||||
background-color: white !important;
|
||||
position: absolute;
|
||||
left: 0mm;
|
||||
top: 192mm * $l10n-ch-qr-ratio;
|
||||
width: 62mm * $l10n-ch-qr-ratio;
|
||||
height: 105mm * $l10n-ch-qr-ratio - $rounding_offset;
|
||||
border-top: 0.75pt * $l10n-ch-qr-ratio dashed black;
|
||||
padding: 5mm * $l10n-ch-qr-ratio;
|
||||
.title {
|
||||
font-size: 6pt * $l10n-ch-qr-ratio;
|
||||
line-height: 9pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.content {
|
||||
font-size: 8pt * $l10n-ch-qr-ratio;
|
||||
line-height: 9pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.receipt_indication_zone {
|
||||
width: $receipt_width;
|
||||
height: 56mm * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.receipt_amount_zone {
|
||||
width: $receipt_width;
|
||||
height: 14mm * $l10n-ch-qr-ratio;
|
||||
.column {
|
||||
float: left;
|
||||
margin-right: 5mm;
|
||||
}
|
||||
.content {
|
||||
font-size: 8pt * $l10n-ch-qr-ratio;
|
||||
line-height: 11pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
}
|
||||
.receipt_acceptance_point_zone {
|
||||
width: $receipt_width;
|
||||
height: 18mm * $l10n-ch-qr-ratio;
|
||||
.content {
|
||||
float: right;
|
||||
padding-right: 2mm * $l10n-ch-qr-ratio;
|
||||
font-size: 6pt * $l10n-ch-qr-ratio;
|
||||
line-height: 8pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.swissqr_body {
|
||||
background-color: white !important;
|
||||
position: absolute;
|
||||
top: 192mm * $l10n-ch-qr-ratio;
|
||||
left: 62mm * $l10n-ch-qr-ratio;
|
||||
width: 148mm * $l10n-ch-qr-ratio;
|
||||
height: 105mm * $l10n-ch-qr-ratio - $rounding_offset;
|
||||
border: 0.75pt * $l10n-ch-qr-ratio dashed black;
|
||||
border-bottom: none;
|
||||
border-right: none;
|
||||
padding: 5mm * $l10n-ch-qr-ratio;
|
||||
.title {
|
||||
font-size: 8pt * $l10n-ch-qr-ratio;
|
||||
line-height: 11pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.content {
|
||||
font-size: 10pt * $l10n-ch-qr-ratio;
|
||||
line-height: 11pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.swissqr_column_left {
|
||||
float: left;
|
||||
width: $left_col_width;
|
||||
.swissqr_section_title{
|
||||
height: 7mm * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.swissqr {
|
||||
margin-top: 5mm * $l10n-ch-qr-ratio;
|
||||
margin-bottom: 5mm * $l10n-ch-qr-ratio;
|
||||
height: 46mm * $l10n-ch-qr-ratio;
|
||||
width: 46mm * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.amount_zone {
|
||||
width: $left_col_width;
|
||||
height: 22mm * $l10n-ch-qr-ratio;
|
||||
.column {
|
||||
margin-right: 3mm;
|
||||
float: left;
|
||||
}
|
||||
.title {
|
||||
font-size: 8pt * $l10n-ch-qr-ratio;
|
||||
line-height: 11pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.content {
|
||||
font-size: 10pt * $l10n-ch-qr-ratio;
|
||||
line-height: 13pt * $l10n-ch-qr-ratio;
|
||||
}
|
||||
}
|
||||
}
|
||||
.swissqr_column_right {
|
||||
float: right;
|
||||
width: $right_col_width;
|
||||
}
|
||||
}
|
||||
|
||||
.scissors {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.vertical_scissors {
|
||||
position: absolute;
|
||||
top: 5mm * $l10n-ch-qr-ratio;
|
||||
left: -1.8mm * $l10n-ch-qr-ratio;
|
||||
}
|
||||
.horizontal_scissors {
|
||||
position: absolute;
|
||||
top: -2mm * $l10n-ch-qr-ratio;
|
||||
left: 6mm * $l10n-ch-qr-ratio;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue