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

[12.0][MIG] base_delivery_carrier_label: Migration to 12.0 #212

Merged
merged 54 commits into from
Aug 20, 2019

Conversation

bealdav
Copy link
Member

@bealdav bealdav commented Aug 20, 2019

replace #205

yvaucher and others added 30 commits August 20, 2019 11:42
… nesting, few typos

[ADD] access rights for the shipping.label model
[IMP] remove unused pdf_list variable and rename pdf variable to label as a label can have other printing format

[IMP] remove readonly on carrier_tracking_ref

[IMP] remove carrier_tracking_ref redefinition as already defined in delivery/stock.py

[ADD] stock users rights

[ADD] file type on shipping label

[ADD] pot file

[ADD] fr.po
…per pack (stock.tracking)

[IMP] set tracking_id as an optional key of dict returned by label generation and improve doc string

[IMP] rename generate_pack_labels in generate_shipping_labels as it can also generate a single label for a picking without pack notion

[IMP] set labels on stock.picking instead of stock.picking.out in order to let the creation of return labels to provide to the customer

[FIX] xml view and copy what is needed on stock.picking.out and stock.picking.in as it won't be inherited from stock.picking.out
[FIX] delivery.carrier has no access rights for stock users, hence remove it for delivery.carrier.option
…by raising a orm.except_orm

[FIX] trigger carrier_id on change when creating a stock.picking to set default options from sale.order

[IMP] change error message of unimplemented default to a more user friendly message
…te the label only for a selection of packs in a picking

the button call action_generate_carrier_label() without the 'context' keyword argument so the context ends in the tracking_ids argument. So the method now conforms to the cr, uid, ids, context signature and just forwards to a new generate_labels() method that should be used from within the code

do not overwrite the option_ids on create of stock.picking if already set in values, generalize the method to all types of picking (added in/out)

Set the default options of the delivery method when it is changed and the options are not set (typically a write from the code or a mass update)
[FIX] action name

[IMP] add descrption field to carrier option
[IMP] file_type field inheritance in shipping.label

[IMP] add field selection sort
[FIX] docstring

[FIX] _customize_sender_address return method

[IMP] add comment in _customize_sender_adress()

[FIX] method name to get sender address

[FIX] method comment
move modules in __unported__
[REF] port to v8 with old api

[MIG] to v8 base_deliv_label, deliv_carrier_deposit

[IMP] add parcel_tracking field

[IMP] add _get_packages_from_picking()

add carrier_id in tree view
Better layout of default report for deposit slip
For stock.quant.package, order by id desc to have the latest first
Code cleanup

Button "Create Shipping Label" should be used when the picking in Done, because in v8 the packaging is handled in the "Transfer" wizard (in v7, the packaging could be made when the picking is waiting/ready)
Display number of packages on deposit slip
Add weight in tree view of packages
Remove an unused file 'reports.xml'

Remove the selection wrappers

Use the name of the method as string instead
Move module description in README.rst
Take the destination package. If empty, the package is moved so take the source
one.

The options must be filtered by the selected carrier
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
@pedrobaeza pedrobaeza changed the title 12 deliv label supersed 205 [12.0][MIG] base_delivery_carrier_label: Migration to 12.0 Aug 20, 2019
@pedrobaeza pedrobaeza added this to the 12.0 milestone Aug 20, 2019
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 20, 2019
13 tasks
@bealdav
Copy link
Member Author

bealdav commented Aug 20, 2019

mergeable

@rousseldenis
Copy link
Sponsor Contributor

rousseldenis commented Aug 20, 2019

@bealdav extreme measures 😄 in a hurry ?

@rousseldenis
Copy link
Sponsor Contributor

@bealdav Could you maybe squash last commit in Migration one ?

@bealdav bealdav force-pushed the 12-deliv-label-supersed-205 branch from 3d68b1d to ffaab97 Compare August 20, 2019 10:11
@bealdav
Copy link
Member Author

bealdav commented Aug 20, 2019

c bien parce que c toi

@rousseldenis
Copy link
Sponsor Contributor

/ocabot merge

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Rebased to 12.0-ocabot-merge-pr-212-by-rousseldenis-bump-no, awaiting test results.

@rousseldenis
Copy link
Sponsor Contributor

I try to stay coherent beyond OCA repos 😇

OCA-git-bot added a commit that referenced this pull request Aug 20, 2019
Signed-off-by rousseldenis
@OCA-git-bot OCA-git-bot merged commit ffaab97 into OCA:12.0 Aug 20, 2019
@OCA-git-bot
Copy link
Contributor

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

PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into 12.0.

@bealdav bealdav deleted the 12-deliv-label-supersed-205 branch August 20, 2019 11:08
@bealdav
Copy link
Member Author

bealdav commented Aug 20, 2019

@rousseldenis Thanks for your involvement in all these repos ;-)

@yvaucher
Copy link
Member

yvaucher commented Sep 5, 2019

@rousseldenis @bealdav thanks. I'm glad this is merged.

hbto added a commit to Vauxoo/server-env that referenced this pull request Sep 20, 2020
provide by that external branch has already been merged at commit
OCA/delivery-carrier@a614331f1017f52e72
from PR OCA/delivery-carrier#212

This reverting part of PR OCA#22
"instead of generate_labels()")
return self.action_generate_carrier_label()

def _set_a_default_package(self):
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

@bealdav Could you give me a little context to have a package mandatory in this case ? Thanks

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.

None yet