Skip to content

Commit 8cb3224

Browse files
[IMP] sale_planner_calendar: Add event profile to calendar event reassignment lines
TT51024
1 parent 5abce08 commit 8cb3224

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sale_planner_calendar/wizard/sale_planner_calendar_reassign.py

+3
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ class SalePlannerCalendarReassignLineWiz(models.TransientModel):
204204
reassign_wiz_id = fields.Many2one(comodel_name="sale.planner.calendar.reassign.wiz")
205205
selected = fields.Boolean()
206206
calendar_event_id = fields.Many2one(comodel_name="calendar.event", readonly=True)
207+
calendar_event_profile_id = fields.Many2one(
208+
related="calendar_event_id.calendar_event_profile_id", readonly=True, store=True
209+
)
207210
partner_id = fields.Many2one(comodel_name="res.partner", readonly=True)
208211
partner_user_id = fields.Many2one(
209212
string="Partner salesperson",

sale_planner_calendar/wizard/sale_planner_calendar_reassign.xml

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
>
8888
<field name="selected" widget="boolean_toggle" />
8989
<field name="calendar_event_id" optional="show" />
90+
<field
91+
name="calendar_event_profile_id"
92+
optional="show"
93+
/>
9094
<field name="partner_id" />
9195
<field name="event_user_id" optional="hide" />
9296
<field name="partner_user_id" optional="hide" />

0 commit comments

Comments
 (0)