Skip to content
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

[14.0][IMP] delivery_schenker : submit booking #723

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

vnikolayev1
Copy link

  • Added field for schenker delivery carrier, where user can pick if they want to submit booking on schenker site. In case where it is turned off - user has to submit booking manually.

@vnikolayev1 vnikolayev1 force-pushed the 14.0 branch 2 times, most recently from 9bcff44 to f698a39 Compare October 25, 2023 12:16
Copy link
Contributor

@mt-software-de mt-software-de left a comment

Choose a reason for hiding this comment

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

Thanks for contributing

# Defines if booking shall be submitted. If false,
# the booking can be edited
# in the frontend and MUST be submitted manually.
"submitBooking": picking.carrier_id.is_schenker_submit_booking,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"submitBooking": picking.carrier_id.is_schenker_submit_booking,
"submitBooking": self.is_schenker_submit_booking,

Comment on lines 182 to 188
is_schenker_submit_booking = fields.Boolean(
string="Submit Booking",
default=True,
help="Submit Booking On Schenker site."
"\nIf set, submits booking on site automatically."
"\nIf not set, user has to submit booking manually.",
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please change the name of the field to schenker_submit_booking

Suggested change
is_schenker_submit_booking = fields.Boolean(
string="Submit Booking",
default=True,
help="Submit Booking On Schenker site."
"\nIf set, submits booking on site automatically."
"\nIf not set, user has to submit booking manually.",
)
schenker_submit_booking = fields.Boolean(
string="Submit Booking",
default=True,
help="Submit Booking On Schenker site."
"\nIf set, submits booking on site automatically."
"\nIf not set, user has to submit booking manually.",
)

@@ -4,7 +4,7 @@
{
"name": "Delivery Schenker",
"summary": "Delivery Carrier implementation for DB Schenker API",
"version": "14.0.1.2.0",
"version": "14.0.1.2.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this change. This should be automatically done by the merge bot.

Comment on lines 61 to 66
cls.picking.write(
{
"shipping_weight": 1,
"number_of_packages": 1,
}
)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this change?

@vnikolayev1 vnikolayev1 force-pushed the 14.0 branch 2 times, most recently from 5ae8731 to 87b80e8 Compare October 27, 2023 15:02
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

LGTM, not tested

@jbaudoux jbaudoux changed the title [ADD] Adjust Submit booking due to schenker delivery carrier options [14.0][IMP] delivery_schenker : submit booking Dec 11, 2023
@jbaudoux
Copy link
Contributor

@vnikolayev1 Can you rebase and repush as pre-commit failed

@vnikolayev1
Copy link
Author

@jbaudoux sorry for delay, should be good now

@mt-software-de
Copy link
Contributor

@jbaudoux sorry for delay, should be good now

Please rebase and not merge. To get rid of the second commit.

- Added field for schenker delivery carrier, where user can pick if they want to submit booking on schenker site. In case where it is turned off - user has to submit booking manually.
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@jbaudoux
Copy link
Contributor

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-723-by-jbaudoux-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 692bd6c into OCA:14.0 Mar 20, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cd116d1. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

4 participants