[IMP] real_estate: update appointment type demo data#2022
Closed
chga-odoo wants to merge 1 commit into
Closed
Conversation
Collaborator
c403915 to
3b32588
Compare
6afea83 to
42072d3
Compare
42072d3 to
8f19bec
Compare
dhrs-odoo
reviewed
May 13, 2026
Contributor
dhrs-odoo
left a comment
There was a problem hiding this comment.
Hello @chga-odoo
Thanks for your work
Few comments to adapt
60f7bb4 to
a585658
Compare
vava-odoo
approved these changes
May 20, 2026
Collaborator
vava-odoo
left a comment
There was a problem hiding this comment.
Looks good, but is there a reason you target 19.2? (maybe a stupid question, but I don't see anything about this in the task)
a585658 to
0471107
Compare
fae4cd8 to
6718237
Compare
vava-odoo
reviewed
May 22, 2026
Collaborator
vava-odoo
left a comment
There was a problem hiding this comment.
the timezone part is now fine, but I have a remaining question
| for record in records: | ||
| link = env['appointment.invite'].create({'short_code': datetime.datetime.now().strftime("%M%m%S%d%Y%H") + str(record.id), 'display_name': record.name}) | ||
| env['appointment.type'].create({'name': record.name, 'display_name': record.name, 'x_property_id': record.id, 'appointment_invite_ids': [Command.link(link.id)], 'location_id': record.x_technical_partner_id.id, 'image_1920': record.image_1920, 'appointment_tz': env.ref('base.user_admin').tz or 'Europe/Brussels', 'staff_user_ids': [Command.link(record.x_agent_id.id)] if record.x_agent_id else False}) | ||
| env['appointment.type'].create({'name': record.name, 'display_name': record.name, 'x_property_id': record.id, 'appointment_invite_ids': [Command.link(link.id)], 'location_id': record.x_technical_partner_id.id, 'image_1920': record.image_1920, 'appointment_tz': env.ref('base.user_admin').tz or 'Europe/Brussels', 'staff_user_ids': [Command.link(record.x_agent_id.id)] if record.x_agent_id else False, 'is_published': True, 'category': 'custom', 'event_videocall_source': False}) |
Collaborator
There was a problem hiding this comment.
why do you publish the appointment?
I don't see this part in the spec.
The customer would select an appointment via the link, no?
Was this discussed with Loic?
Contributor
Author
There was a problem hiding this comment.
Sorry 😅 No need to publish this. I added it for testing purposes and forgot to remove it later 🙈
6718237 to
bd378c3
Compare
- Add appointment_type demo with slots - Set appointment defaults in server action - Link calendar events via x_property_id - Update event timings and timezone handling task: 6050591
bd378c3 to
1f5dbb9
Compare
Collaborator
|
@robodoo r+ |
This was referenced May 22, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

task: 6050591