odoo/odoo#160187

Created by Mohammad Abdulmoneim (abdu)

Blocked

label
odoo-dev:master-pickup-point-cleanup-abdu
head
d96763609c02658b8ec432c7119dc08d5d9b298c
target
master

[IMP/REF] *: pickup point delivery cleanup

*: delivery, sale, sale_management, sale_stock, 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.
- Users could only see pickup locations close to their registered address.
- 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.
- Users can search for any pickup address by postal code, not necessarily close to their address.
- When the user confirms an order with a pickup delivery, a new address is created with the point data and is attached to the customer as a child address (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 through a special wizard that can be opened only when the delivery is pickup.
- Pickup addresses can be searched by postal code from this wizard to enable getting all points from the provider, not necessarily ones close to the customer.

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

Task-3645144

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