-
Notifications
You must be signed in to change notification settings - Fork 82
[IMP] booking_engine: city tax widget #1215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
[IMP] booking_engine: city tax widget #1215
Conversation
abdrahmanrashed
commented
Oct 10, 2025
- 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.
e1aecba
to
34151c3
Compare
ba7803f
to
2423e7f
Compare
- 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.
2423e7f
to
2651cb5
Compare
], | ||
'data': [ | ||
'data/res_config_settings.xml', | ||
'data/ir_model.xml', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
if record.sale_line_id and record.sale_line_id.planning_slot_ids: | |
if record.sale_line_id.planning_slot_ids: |
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) |
There was a problem hiding this comment.
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
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless (and wrong) diff
<field name="compute"><![CDATA[ | ||
for record in self: |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
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
'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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?