!9050 添加功能

Merge pull request !9050 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-02-27 07:08:53 +00:00
committed by Gitee
2 changed files with 3 additions and 17 deletions
@@ -135,9 +135,9 @@ class SoongWorkflowMixin(models.AbstractModel):
else:
self.is_active = False
if self.log_ids:
if self.log_ids[-1].name == '归档' and self.log_ids[-1].is_active_operate == True:
self.is_active = False
# if self.log_ids:
# if self.log_ids[-1].name == '归档' and self.log_ids[-1].is_active_operate == True:
# self.is_active = False
def _compute_is_confirm(self):
for record in self:
@@ -71,18 +71,4 @@
<record model="yuthon.resource.management.type" id="yuthon_resource_management_type_data1">
<field name="name">自有</field>
</record>
<record model="yuthon.resource.billing.type" id="yuthon_resource_billing_type_data0">
<field name="name">收据</field>
</record>
<record model="yuthon.resource.billing.type" id="yuthon_resource_billing_type_data1">
<field name="name">普票</field>
</record>
<record model="yuthon.resource.billing.type" id="yuthon_resource_billing_type_data2">
<field name="name">专票</field>
</record>
<record model="yuthon.resource.billing.type" id="yuthon_resource_billing_type_data3">
<field name="name">全电票</field>
</record>
</odoo>