Merge pull request #1178 from expsa/add_webribbon

Update rental_contract_views.xml
This commit is contained in:
zainab2097 2024-09-16 13:02:44 +03:00 committed by GitHub
commit 496eb37427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -60,8 +60,10 @@
<field name="state" widget="statusbar" <field name="state" widget="statusbar"
statusbar_visible="draft,submit,confirm,review,close,cancel"/> statusbar_visible="draft,submit,confirm,review,close,cancel"/>
</header> </header>
<sheet> <sheet>
<field name="is_today_end_date" invisible="0"/> <!-- Add this line -->
<widget name="web_ribbon" title="Expired" bg_color="bg-danger" attrs="{'invisible': [('is_today_end_date ', '!=', True)]}"/> <widget name="web_ribbon" title="Expired" bg_color="bg-danger" attrs="{'invisible': [('is_today_end_date ', '!=', True)]}"/>
<h1> <h1>
<field name="seq" readonly="1"/> <field name="seq" readonly="1"/>
@ -95,7 +97,6 @@
</div> </div>
<field name="date_from" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> <field name="date_from" attrs="{'readonly':[('state','!=','draft')]}" required="1"/>
<field name="date_to" readonly="1"/> <field name="date_to" readonly="1"/>
<field name="is_today_end_date" invisible="0"/>
<field name="rent_type" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> <field name="rent_type" attrs="{'readonly':[('state','!=','draft')]}" required="1"/>
</group> </group>