summaryrefslogtreecommitdiff
path: root/addons/snailmail/static
diff options
context:
space:
mode:
authorRémi Rahir <rar@odoo.com>2018-09-16 20:37:25 +0200
committerRémi Rahir <rar@odoo.com>2018-09-19 17:58:35 +0200
commit46dc8ceef90ec5472b1aa4b45509f23d6c3e2624 (patch)
tree990b336d942be432672857a6c7ffedabb5cdad34 /addons/snailmail/static
parent2f3c69d7c44737a9ebb448f7f7a9cc4a9af816d4 (diff)
[IMP] snailmail: adapt reports for snailmail
In order to ease the integration with the snailmail posting service provider, We will generate specific reports with a layout that fits their criteria. In short, * we specify the postition of the recipient's address on the document * we force the A4 format This also support the din5008 type B report.
Diffstat (limited to 'addons/snailmail/static')
-rw-r--r--addons/snailmail/static/src/scss/snailmail_external_layout_asset.scss32
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/snailmail/static/src/scss/snailmail_external_layout_asset.scss b/addons/snailmail/static/src/scss/snailmail_external_layout_asset.scss
new file mode 100644
index 00000000000..be7331a9b61
--- /dev/null
+++ b/addons/snailmail/static/src/scss/snailmail_external_layout_asset.scss
@@ -0,0 +1,32 @@
+/* Generic report layouts*/
+.header {
+ height: 200px;
+}
+.article>.page {
+ > h1, > h2, > h3 {
+ width: 50%;
+ }
+}
+.article {
+ > .address.row {
+ padding-top: 95px;
+ }
+ > .page {
+ margin-top:-20px;
+ }
+}
+
+/*l10n_de_din layout*/
+.din {
+ .invoice_address {
+ top: 27.7mm !important;
+ }
+ &.article {
+ .page {
+ top: 18.46mm !important;
+ }
+ }
+ &.o_background_footer {
+ top: -8mm !important;
+ }
+}