Skip to content

Conversation

abdrahmanrashed
Copy link
Contributor

  • Add a widget to help user to compute the number of city tax computation to be delivered .
  • Adjust the "Check guests out" knowledge section with below input in the dependent industries.

@robodoo
Copy link
Collaborator

robodoo commented Oct 10, 2025

Pull request status dashboard

@abdrahmanrashed abdrahmanrashed force-pushed the 19.0-booking-engine-city-tax-aras branch 7 times, most recently from e1aecba to 34151c3 Compare October 16, 2025 14:39
@abdrahmanrashed abdrahmanrashed force-pushed the 19.0-booking-engine-city-tax-aras branch 2 times, most recently from ba7803f to 2423e7f Compare October 22, 2025 11:47
- Add a widget to help user to compute the number of city tax computation to be delivered .
- Adjust the "Check guests out" knowledge section with below input in the dependent industries.
@abdrahmanrashed abdrahmanrashed force-pushed the 19.0-booking-engine-city-tax-aras branch from 2423e7f to 2651cb5 Compare October 22, 2025 13:33
],
'data': [
'data/res_config_settings.xml',
'data/ir_model.xml',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you bump the version, please

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and update pot files

for slot in record.sale_line_id.planning_slot_ids:
if slot.start_datetime and slot.end_datetime:
nights += ceil((slot.end_datetime - slot.start_datetime).total_seconds() / (24 * 3600))
if record.sale_line_id and record.sale_line_id.planning_slot_ids:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ORM would return False (and not fail) if there is no record.sale_line_id

Suggested change
if record.sale_line_id and record.sale_line_id.planning_slot_ids:
if record.sale_line_id.planning_slot_ids:

Comment on lines +85 to +90
start = rental_start_date.replace(hour=int(pickup_time), minute=int(pickup_time % 1 * 60), second=0)
record['rental_start_date'] = start.astimezone(tz=dateutil.tz.UTC).replace(tzinfo=None)
rental_return_date = record.rental_return_date.astimezone(tz=dateutil.tz.gettz(tz))
start = rental_start_date.replace(hour=int(pickup_time), minute=int(pickup_time % 1 * 60), second=0, microsecond=0)
start_datetime = start.astimezone(tz=dateutil.tz.UTC)
record['rental_start_date'] = start_datetime.replace(tzinfo=None)
end = rental_return_date.replace(hour=int(return_time), minute=int(return_time % 1 * 60), second=0, microsecond=0)
end_datetime = end.astimezone(tz=dateutil.tz.UTC)
record['rental_return_date'] = end_datetime.replace(tzinfo=None)
end = rental_return_date.replace(hour=int(return_time), minute=int(return_time % 1 * 60), second=0)
record['rental_return_date'] = end.astimezone(tz=dateutil.tz.UTC).replace(tzinfo=None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a useless diff

Comment on lines +57 to +64
<field name="compute"><![CDATA[
for record in self:
if not record.x_nationality and not record.x_document_type and not record.x_document_number:
record['x_identity_check'] = 'na'
elif record.x_nationality and record.x_document_type and record.x_document_number:
record['x_identity_check'] = 'ok'
else: record['x_identity_check'] = 'invalid'
]]></field>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless (and wrong) diff

Comment on lines +116 to +117
<field name="compute"><![CDATA[
for record in self:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid useless diff like this one please

<ul>
<li>Open your guest order from the Guest House App.</li>
<li>Click the Check out button to capture they return you the keys.</li>
<li>Check and adjust if needed the number of guest who stayed in each room. Then confirm the number of city tax to be charged, which updated the delivered city tax count.</li>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li>Check and adjust if needed the number of guest who stayed in each room. Then confirm the number of city tax to be charged, which updated the delivered city tax count.</li>
<li>Check and adjust if needed the number of guests who stayed in each room. Then confirm the number of city taxes to be charged, which updates the delivered city tax count.</li>

<p>Example: A room for 2 is booked for 4 nights, two guest were here for the first
three night but onlu one stayed the last night. Then the guest x nights is
2x3+1x1=7.</p>
<div class="o-paragraph">City Tax are to be billed to spent nights in practice and not in theory and are counted in number of guest night. </div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="o-paragraph">City Tax are to be billed to spent nights in practice and not in theory and are counted in number of guest night. </div>
<div class="o-paragraph">City Taxes are to be billed to spent nights in practice and not in theory and are counted in number of guest nights. </div>

three night but onlu one stayed the last night. Then the guest x nights is
2x3+1x1=7.</p>
<div class="o-paragraph">City Tax are to be billed to spent nights in practice and not in theory and are counted in number of guest night. </div>
<div class="o-paragraph">Example: A room for 2 is booked for 4 nights, two guest were here for the first three night but only one stayed the last night. Then the guest x nights is 2x3+1x1=7.</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="o-paragraph">Example: A room for 2 is booked for 4 nights, two guest were here for the first three night but only one stayed the last night. Then the guest x nights is 2x3+1x1=7.</div>
<div class="o-paragraph">Example: A room for 2 is booked for 4 nights, two guests were here for the first three nights but only one stayed the last night. Then the guest x nights is 2x3+1x1=7.</div>

<ul>
<li>Open your guest order from the Holiday House App.</li>
<li>Click the Check out button to capture they return you the keys.</li>
<li>Check and adjust if needed the number of guest who stayed in each room. Then confirm the number of city tax to be charged, which updated the delivered city tax count.</li>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comments for all knowledge

Comment on lines -24 to -33
'data/views.xml',
'data/product_pricing.xml',
'data/views.xml',
],
'demo': [
'demo/hr_employee.xml',
'demo/ir_attachment_post.xml',
'demo/product_template_post.xml',
'demo/pos_config.xml',
'demo/product_attribute.xml',
'demo/rating_rating.xml',
'demo/ir_attachment_post.xml',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants