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

[16.0][IMP] add button Create Shipping Label #3

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

khoivo1601
Copy link
Owner

@khoivo1601 khoivo1601 commented Jun 20, 2023

  • Add the button Create Shipping Label back in delivery_postlogistics
  • Validate stock.picking or Create Shipping Label --> generate and add an attachment

shipping_label

Copy link

@nilshamerlinck nilshamerlinck left a comment

Choose a reason for hiding this comment

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

hi, one requirement is missing:

Note: if on DO, carrier_id is not set --> raise a warning "Please, set a carrier."

will be useful for returns

@@ -236,3 +236,8 @@ def generate_postlogistics_shipping_labels(self, package_ids=None):
"""Add label generation for PostLogistics"""
self.ensure_one()
return self._generate_postlogistics_label(package_ids=package_ids)

def action_generate_carrier_label(self):
for pick in self:

Choose a reason for hiding this comment

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

for the sake of factorization, why not call postlogistics_send_shipping here?

Copy link
Owner Author

Choose a reason for hiding this comment

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

hello @nilshamerlinck, this PR has been updated.

name="action_generate_carrier_label"
help="Create Shipping Label 🚚"
attrs="{'invisible': [('state', '!=', 'done')]}"
string="Shipping Label 🚚"

Choose a reason for hiding this comment

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

Suggested change
string="Shipping Label 🚚"
string="Create Shipping Label 🚚"

Copy link
Owner Author

Choose a reason for hiding this comment

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

hello @nilshamerlinck, this PR has been updated.

@khoivo1601 khoivo1601 force-pushed the 16.0-add-button-create-shipping-method branch from 59054f6 to 4529665 Compare June 21, 2023 07:25
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.

2 participants