添加功能

This commit is contained in:
李鹏宇
2025-11-28 11:54:36 +08:00
parent bcd5e25f9f
commit fcbc604466
3 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ class SoongWorkflowNodeButton(models.Model):
)
icon = fields.Char(string="Icon",
help="Enter icon name like: fa-print, it's recommended to use FontAwesome Icons.", )
has_comment = fields.Boolean(string="意见/弹窗", default=False)
has_comment = fields.Boolean(string="意见/弹窗", default=True)
btn_key = fields.Char(string="Button Key", default=_generate_key)
btn_hide = fields.Boolean(
string="Hide Button if Condition isn't fulfilled",
@@ -67,6 +67,7 @@
vertical-align: top; /* 或 middle,根据需要 */
line-height: 1; /* 减少额外高度 */
}
.summary-page { page-break-before: always; page-break-after: auto; }
</style>
<div class="oe_structure" />
<h2 class="text-center">付款通知单</h2>
@@ -147,6 +148,38 @@
<p class="text-end">广州市天河物业管理有限公司</p>
<p class="text-end" ><t t-esc="o.print_date.year"/>年<t t-esc="o.print_date.month"/>月<t t-esc="o.print_date.day"/>日</p>
</div>
<t t-if="docs and o_index == (len(docs) or 0) - 1">
<!-- 强制分页,新增一页 -->
<div class="page summary-page">
<h2 class="text-center mb-4">签收单</h2>
<table class="table table-sm o_main_table mt-4">
<thead>
<tr>
<th style="width: 15%;">合同编号</th>
<th>版本</th>
<th>物业信息</th>
<th>承租方</th>
<th>月份</th>
<th style="width: 15%;">签收人</th>
<th style="width: 15%;">签收时间</th>
</tr>
</thead>
<tbody>
<t t-foreach="docs" t-as="o2">
<tr>
<td class="text-start"><t t-esc="o2.contract_code"/></td>
<td><t t-esc="o2.version"/></td>
<td><t t-esc="o2.property_name"/></td>
<td><t t-esc="o2.lessee_id.name"/></td>
<td><t t-esc="o2.print_date.month"/></td>
<td></td>
<td></td>
</tr>
</t>
</tbody>
</table>
</div>
</t>
</t>
</t>
</t>
@@ -19,7 +19,7 @@ class YuthonBusinessApproval(models.Model):
is_issues = fields.Boolean(string='是否上会')
issues_result = fields.Html(string="会议结果")
related_issues_id = fields.Many2one('issue.library', string="关联议题")
information_categories_ids = fields.Many2many('yuthon.information.categories', string='信息分类')
information_categories_ids = fields.Many2many('yuthon.information.categories', string='类型')
reason = fields.Text(string="正文")
document_ids = fields.Many2many('ir.attachment', string="附件")
active = fields.Boolean('Active', default=True, tracking=True)