[CLN] global : full pre-commit & ruff lint

This commit is contained in:
jscampucci
2025-09-15 12:58:03 +02:00
parent b63c4b5335
commit 174aabfbbb
71 changed files with 673 additions and 429 deletions

View File

@@ -1,9 +1,14 @@
<?xml version="1.0"?>
<?xml version="1.0" ?>
<odoo>
<!-- EVENTS/CONFIGURATION/EVENT locations -->
<record model="ir.ui.view" id="view_event_location_form_inherit_event_track_location_calendar">
<field name="name">Event Locations inherit for event track location calendar</field>
<record
model="ir.ui.view"
id="view_event_location_form_inherit_event_track_location_calendar"
>
<field
name="name"
>Event Locations inherit for event track location calendar</field>
<field name="model">event.track.location</field>
<field name="inherit_id" ref="website_event_track.view_event_location_form" />
<field name="arch" type="xml">
@@ -13,7 +18,10 @@
</field>
</record>
<record model="ir.ui.view" id="view_event_location_tree_inherit_event_track_location_calendar">
<record
model="ir.ui.view"
id="view_event_location_tree_inherit_event_track_location_calendar"
>
<field name="name">Event Location</field>
<field name="model">event.track.location</field>
<field name="inherit_id" ref="website_event_track.view_event_location_tree" />

View File

@@ -1,16 +1,27 @@
<?xml version="1.0"?>
<odoo>
<record model="ir.ui.view" id="view_event_track_form_inherit_event_track_location_calendar">
<field name="name">event.track.form inherit for event track location calendar</field>
<?xml version="1.0" ?>
<odoo>
<record
model="ir.ui.view"
id="view_event_track_form_inherit_event_track_location_calendar"
>
<field
name="name"
>event.track.form inherit for event track location calendar</field>
<field name="model">event.track</field>
<field name="inherit_id" ref="website_event_track.view_event_track_form" />
<field name="arch" type="xml">
<xpath expr="//header" position="after">
<field name="location_already_in_use" invisible="1" />
<div attrs="{'invisible':[('location_already_in_use','=',False)]}" class="alert alert-warning mb-0" role="alert">
<strong>Location already in use for this date !</strong><field name="location_already_in_use_message" />
<field name="location_already_in_use" invisible="1" />
<div
attrs="{'invisible':[('location_already_in_use','=',False)]}"
class="alert alert-warning mb-0"
role="alert"
>
<strong>Location already in use for this date !</strong><field
name="location_already_in_use_message"
/>
</div>
</xpath>
</xpath>
</field>
</record>