odoo/odoo#160187

Created by Logistics, Mohammad Abdulmoneim (abdu)

Blocked

label
odoo-dev:master-pickup-point-cleanup-abdu
head
33fe3cfde0aec49d87e39474156b55ec8c58510c
odoo/odoo odoo/enterprise odoo/upgrade
master #160187 missing statuses missing r+ #59935 missing statuses missing r+ #6315 missing statuses missing r+ #5920

[IMP] *: use new pickup location selector in backend

*: delivery, sale, stock_delivery, website_sale

This PR introduces several changes and improvements to pickup point
delivery feature.

Behavior before this PR:

  • Users could choose a pickup address on checkout, if a proper delivery method is enabled.
  • Data of this address is attached to the sales order in a json field and the delivery address is set to the customer's address as in normal delivery.
  • On confirming the sale order, a new address for the pickup point is created as a child to the customer's contact. Its data is retrieved from the above mentioned json field.
  • On confirming the delivery order, the address data to be passed to the shipping provider to process the shipment is retrieved from the related sales order (i.e. pickup delivery orders must have a related sales order).
  • It was not possible to change the pickup address from the backend after the user confirms the order.

Behavior after this PR:

  • The json field is removed from the sales order.
  • When the user confirms an order with a pickup delivery, a new address is created with the point data (if there's no existing address with the same data).
  • A new json field is added to res.partner to capture the info needed by the shipping provider later when processing the shipment.
  • Pickup address can be changed from sales/delivery order using the new location selector (introduced in #156382) which is currently used in eCommerce.

Enterprise PR: odoo/enterprise#59935
Upgrade PR: odoo/upgrade#6315

task-3645144


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr