bemade_fsm: Printing from a subtask prints the root ancestor.
Fixes Dur-Pro/bemade-addons#83 Also added some styling to prevent table headers overlapping with table content when tables run multiple pages. This is due to a rendering bug in wkhtmltopdf.
This commit is contained in:
parent
1f3ba84a9d
commit
eee140b658
2 changed files with 11 additions and 41 deletions
|
|
@ -351,6 +351,7 @@
|
||||||
<template id="work_order">
|
<template id="work_order">
|
||||||
<t t-call="web.html_container">
|
<t t-call="web.html_container">
|
||||||
<t t-foreach="docs" t-as="doc">
|
<t t-foreach="docs" t-as="doc">
|
||||||
|
<t t-set="doc" t-value="doc.root_ancestor" t-if="doc.parent_id"/>
|
||||||
<t t-call="web.external_layout">
|
<t t-call="web.external_layout">
|
||||||
<t t-call="bemade_fsm.work_order_page"
|
<t t-call="bemade_fsm.work_order_page"
|
||||||
t-lang="doc.partner_id.lang"/>
|
t-lang="doc.partner_id.lang"/>
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,14 @@
|
||||||
.border-black {
|
/* This prevents repeating the header, which overlaps with the body due to a bug in
|
||||||
border: 1px solid black;
|
wkhtmltopdf rendering.
|
||||||
|
*/
|
||||||
|
thead {
|
||||||
|
display: table-row-group;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wo-information{
|
tfoot {
|
||||||
border: 1px solid black;
|
display: table-row-group;
|
||||||
.row{
|
}
|
||||||
.col-auto{
|
|
||||||
border: 1px solid black;
|
tr {
|
||||||
}
|
|
||||||
}
|
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
}
|
|
||||||
|
|
||||||
.wo-intervention{
|
|
||||||
border: 1px solid black;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
page-break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wo-parts-used{
|
|
||||||
page-break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wo-task{
|
|
||||||
border: 1px solid black;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
page-break-inside: avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.border-top-black{
|
|
||||||
border-top: 1px solid black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-left {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.manual_line_input {
|
|
||||||
border-bottom: 1px solid black;
|
|
||||||
margin: 30px 0px 0px 0px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue