添加功能

This commit is contained in:
李鹏宇
2025-09-15 22:56:59 +08:00
parent 47e05725c5
commit 8a9ba6bd2b
2 changed files with 3 additions and 2 deletions
@@ -4,7 +4,7 @@
<field name="name">property.meter.archives.tree</field>
<field name="model">property.meter.archives</field>
<field name="arch" type="xml">
<tree string="电表库" create="False" editable="bottom"
<tree string="电表库" create="False" editable="bottom" decoration-success="is_push"
decoration-danger="archives_state == 'stop'">
<header>
<button class="oe_highlight" name="batch_reading_push" string="推送" type="object"/>
@@ -5,7 +5,8 @@
<field name="model">property.meter.water</field>
<field name="arch" type="xml">
<tree string="水表库" create="False" editable="bottom"
decoration-danger="water_state == 'stop'">
decoration-danger="water_state == 'stop'"
decoration-success="is_push" >
<header>
<button class="oe_highlight" name="batch_reading_water_push" string="推送" type="object"/>
<button class="oe_highlight" name="button_water_state" string="停用" type="object"/>