This commit is contained in:
李鹏宇
2025-09-14 16:35:04 +08:00
parent 0ccb55414d
commit 3f4a28096c
3 changed files with 14 additions and 2 deletions
@@ -106,8 +106,8 @@
<field string="本月考勤记录" name="att_mount" widget="statinfo"/>
</button>
</div>
<field name="employee_id"/>
<field name="vacation_date"/>
<field name="employee_id" readonly="1"/>
<field name="vacation_date" readonly="1"/>
<div class="col-12 text-center">
<h1>
<field name="display_date"/>
@@ -50,6 +50,11 @@ class PropertyBankStatements(models.Model):
self._context.get('active_ids', self._context.get('active_id')))
for rec in bank_ids:
rec.revocation()
def test_one(self):
bank_ids = self.env["property.bank.statements"].browse(
self._context.get('active_ids', self._context.get('active_id')))
for rec in bank_ids:
rec.start_time = rec.start_time - timedelta(hours=8)
def revocation(self):
for rec in self:
@@ -528,6 +528,13 @@
<field name="state">code</field>
<field name="code">action = model.batch_revocation()</field>
</record>
<record id="all_batch_revocation2" model="ir.actions.server">
<field name="name">一次性时差更新</field>
<field name="model_id" ref="yuthon_property.model_property_bank_statements"/>
<field name="binding_model_id" ref="yuthon_property.model_property_bank_statements"/>
<field name="state">code</field>
<field name="code">action = model.test_one()</field>
</record>
<!-- 违约金 -->
<record id="inherit_view_property_penalty_list_tree" model="ir.ui.view">
<field name="name">property.penalty.list.tree</field>