-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Enhance Appointment Filters: Type, Appointment Schedule, and Payment Step #692
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: 18.0
Are you sure you want to change the base?
Conversation
… payment Added new filters to improve appointment scheduling and management: Type filter- Allows users to filter appointments based on whether they are online or offline. Schedule filter- Enables filtering appointments based on users or resources, similar to the event module. Payment step filter-Adds the ability to filter appointments based on whether they include a payment step. These enhancements improve usability and provide better appointment organization.
… payment Added new filters to improve appointment scheduling and management: Type filter- Allows users to filter appointments based on whether they are online or offline. Schedule filter- Enables filtering appointments based on users or resources, similar to the event module. Payment step filter-Adds the ability to filter appointments based on whether they include a payment step. These enhancements improve usability and provide better appointment organization.
4312c25
to
630e34e
Compare
This commit introduces a complete feature for managing warranty products within the Sales application: - Added a Is Warranty Available boolean field on product templates to indicate warranty eligibility. - Moved warranty configuration under the 'Configuration' menu in the Sales app for better accessibility and UX alignment. - Introduced a wizard for adding warranty products to sale orders, dynamically computing prices and descriptions based on selected lines. - Implemented automatic deletion of warranty wizard lines when the product is removed from the wizard to maintain data integrity. This feature improves the workflow for managing extended warranties, providing a seamless integration in Sales for both users and system operations.
Introduce a supplier-facing portal feature to streamline invoice submission. Features: - Allow authenticated users in the `Supplier User` group to upload invoices via website form. - Security: - Access restricted to users in the `Supplier User` group. - CSRF token protection for form submissions. - Company selection: - Lists companies linked to the user. - Allows user to select the target company for invoice submission. - File handling: - Uploaded files are stored as attachments. - Vendor bill is associated with a purchase journal from the selected company. - Confirmation message shown upon successful submission. - Adds a new security group: `Supplier User` and website menu item Upload Invoice, visible only to users in the `Supplier User` group. Benefits: - Enables suppliers to directly submit invoice files from the portal. - Improves workflow efficiency and reduces manual data entry for internal teams.
…Manufacture - Introduced 'modular.type' model to define modular categories. - Linked modular types to product templates via many2many field. - Added modular_type_id in BOM lines with dynamic filtering per product. - Added security access rules for new models and wizards. - Extended views for BOM, manufacturing orders, sale orders, and product templates. - Created 'sale.order.line.modular.type' model to hold modular values for sale order lines. - Displayed modular types via wizard in sale order lines. - Updated stock moves to inherit modular type from BOM line. - Adjusted MRP component quantity using modular value during order confirmation.
4bff046
to
03fea4d
Compare
- Added `is_approval` boolean field to `sale.order` model. - Introduced computed field `is_approval_read` to control read-only access. - Only Sales Managers (based on group) can edit the approval checkbox. - Overrode `action_confirm` to block confirmation if not approved. - XML view updated to display approval checkbox next to payment terms. - Enforces a lightweight approval mechanism before confirming sales orders.
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.
Hello @kuay-odoo
Some changes and suggestion on your website_appointment_filter
task.
Thanks!
"views/website_appointment_filter.xml", | ||
], | ||
"auto-install": True, | ||
"application": False, |
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.
Its False
by default, if we need it as an application then we should define it as True.
from odoo import http | ||
from odoo.addons.website_appointment.controllers.appointment import WebsiteAppointment # type: ignore | ||
from odoo.http import request | ||
|
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.
from odoo.http import request | ||
|
||
class WebsiteAppointmentFilter(WebsiteAppointment): | ||
|
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.
available_appointments = request.env["appointment.type"].sudo().search(total_domain) | ||
appointment_data = self._prepare_appointments_cards_data(page, available_appointments, **params) | ||
|
||
return request.render("website_appointment.appointments_cards_layout", appointment_data) |
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.
Only using card design? What about when user opts for list design?
Instead of directly changing this function, check the code flow and edit related functions.
return request.render("website_appointment.appointments_cards_layout", appointment_data) | ||
|
||
def _build_filter_domain(self, params): | ||
|
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 PR introduces enhanced filtering options for appointments, improving the user experience when searching for specific appointments. The following filters have been added:
Appointment Type Filter: Allows users to filter appointments based on whether they are online or offline.
Schedule Filter: Enables filtering based on scheduling criteria, allowing users to choose between appointments scheduled by users or resources.
Payment Step Filter: Adds a filter to distinguish between appointments that require a payment step and those that do not.
These filters enhance the appointment browsing experience, making it easier for users to find relevant appointments based on their preferences. The implementation follows the existing filtering structure used in similar features, such as event filtering.