-
-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] sale_planner_calendar: Design improves and new buttons in calen…
…dar planner event TT48632
- Loading branch information
1 parent
2bb5229
commit b44452e
Showing
14 changed files
with
238 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
sale_planner_calendar/data/sale_planner_calendar_event_profile.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="event_profile_face_to_face" model="sale.planner.calendar.event.profile"> | ||
<field name="name">Face-to-Face</field> | ||
<field name="icon">fa-car</field> | ||
</record> | ||
<record id="event_profile_telephone" model="sale.planner.calendar.event.profile"> | ||
<field name="name">Telephone</field> | ||
<field name="icon">fa-phone</field> | ||
</record> | ||
<record id="event_profile_message" model="sale.planner.calendar.event.profile"> | ||
<field name="name">Message</field> | ||
<field name="icon">fa-envelope</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sale_planner_calendar/models/sale_planner_calendar_event_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2024 Tecnativa - Pilar Vargas | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class CalendarEventType(models.Model): | ||
""" | ||
Calendar planner event profiles are used to categorise such events. Each type is a | ||
type of activity, e.g. face-to-face, telephone, message. This will allow an icon | ||
identifying the event to be displayed | ||
""" | ||
|
||
_name = "sale.planner.calendar.event.profile" | ||
_description = "Sale Planner Calendar Event Profile" | ||
|
||
name = fields.Char(required=True) | ||
icon = fields.Char(help="Font awesome icon e.g. fa-tasks") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
* Sergio Teruel | ||
* Carlos Dauden | ||
* Carlos Roca | ||
* Pilar Vargas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
sale_planner_calendar/views/sale_planner_calendar_event_profile_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<record id="view_sale_planner_calendar_event_profile_tree" model="ir.ui.view"> | ||
<field name="name">sale.planner.calendar.event.profile.tree</field> | ||
<field name="model">sale.planner.calendar.event.profile</field> | ||
<field name="arch" type="xml"> | ||
<tree editable="bottom"> | ||
<field name="name" /> | ||
<field name="icon" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record | ||
id="action_sale_planner_calendar_event_profile" | ||
model="ir.actions.act_window" | ||
> | ||
<field name="name">Event Profile</field> | ||
<field name="res_model">sale.planner.calendar.event.profile</field> | ||
<field name="view_mode">tree</field> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.