-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[16.0][IMP] sale_resource_booking #3560
Closed
norlinhenrik
wants to merge
11
commits into
OCA:16.0
from
norlinhenrik:16.0-imp-sale_resource_booking
Closed
[16.0][IMP] sale_resource_booking #3560
norlinhenrik
wants to merge
11
commits into
OCA:16.0
from
norlinhenrik:16.0-imp-sale_resource_booking
Conversation
This file contains 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
This module extends the functionality of sale and resource bookings to support creating pending resource bookings automatically when confirming a sale order and to allow you to generate those sale orders easily from a resource booking type. @Tecnativa TT28202
- Set `resource.booking` new `combination_auto_assign` field depending on `product.template`'s `resource_booking_type_combination_rel_id`. - Adapt tests. - The rest is normal migration stuff. @Tecnativa TT31324
[FIX] sale_resource_booking: Migration to 16.0
norlinhenrik
force-pushed
the
16.0-imp-sale_resource_booking
branch
from
February 2, 2025 12:12
507235f
to
beb5b7f
Compare
[IMP] sale_resource_booking: booking.product_id, Buttons (product variant -> booking -> sale order) [FIX] sale_resource_booking: fix tests [ADD] sale_resource_booking_product_variant [IMP] sale_resource_booking_product_variant: documentation etc. [FIX] sale_resource_booking_product_variant: search Booking Type [FIX] sale_resource_booking_product_variant: text [FIX] sale_resource_booking_product_variant: code is in sale_resource_booking [IMP] sale_resource_booking: Types are connected with product variants. Set defaults on product.attribute form view. [FIX] sale_resource_booking: many2one was missing comodel [FIX] sale_resource_booking: migration [IMP] sale_resource_booking: do not auto-assign combination if timeline is installed [FIX] sale_resource_booking: pre-commit [FIX] sale_resource_booking: a sale order may have multiple lines (sale_product_pack) [IMP] sale_resource_booking: multiple order lines for one booking [IMP] sale_resource_booking: when change type for booking, product gets selected when there is just one [IMP] sale_resource_booking: raise UserError when trying to quote from booking with no product selected sale_resource_booking: confirm sale order with bookings: show updated sale order Return the sale order window action to show the correct status of the sale order sale_resource_booking: add info to sale.order.line A sale order line with a resource booking product and quantity == 1 will have correct resource_booking_id and its partner_id. sale_resource_booking: tiny change to trigger tests [FIX] sale_resource_booking: booking list changed partner_id to partner_ids [FIX] sale_resource_booking: default_partner_ids (not default_partner_id) [FIX] sale_resource_booking: Show the booking button Quote [BUG] sale_resource_booking: create product.product [FIX] sale_resource_booking: product inherit booking type from attribute value [IMP] sale_resource_booking: Auto-assign booking type to product variant
norlinhenrik
force-pushed
the
16.0-imp-sale_resource_booking
branch
from
February 2, 2025 14:13
beb5b7f
to
15f912a
Compare
Superseded by #3561 |
norlinhenrik
added a commit
to norlinhenrik/oca-sale-workflow
that referenced
this pull request
Feb 2, 2025
Resource Booking - List field: product_id Resource Booking - Form button: Quote - Form fields: product_id, sale_order_line_ids Sale Order - Form view - sale order line: order_id (invisible), resource_booking_id (hide), partner_id (hide) See details in OCA#3560
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.
PURPOSE
The main purpose of this PR is to use a resource booking type as a product attribute value.
A migration script updates
product.product
withresource_booking_type_id
andresource_booking_type_combination_rel_id
.Other changes (may go into a separate PR, separate module?):
action_invite
andaction_noop
will return the sale order in form view.USER INTERFACE
Resource Bookings - Configuration - has 3 new menuitems:
Other changes in the user interface:
NEW FIELDS & ACTIONS
product.attribute.value
product.product
product.template
resource.booking
resource.booking.type
sale.order.line
wizard/sale_order_booking_confirm.py
action_invite
andaction_noop
will return the sale order in form view