mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_gso: address/company type in 12
This commit is contained in:
@@ -172,7 +172,7 @@ class ProviderGSO(models.Model):
|
|||||||
company = self.get_shipper_company(picking=picking)
|
company = self.get_shipper_company(picking=picking)
|
||||||
from_ = self.get_shipper_warehouse(picking=picking)
|
from_ = self.get_shipper_warehouse(picking=picking)
|
||||||
to = self.get_recipient(picking=picking)
|
to = self.get_recipient(picking=picking)
|
||||||
address_type = 'B' if bool(to.company or to.parent_id.company) else 'R'
|
address_type = 'B' if bool(to.is_company or to.parent_id.is_company) else 'R'
|
||||||
|
|
||||||
request_body = {
|
request_body = {
|
||||||
'AccountNumber': sudoself.gso_account_number,
|
'AccountNumber': sudoself.gso_account_number,
|
||||||
@@ -284,7 +284,7 @@ class ProviderGSO(models.Model):
|
|||||||
service = sudoself._get_gso_service()
|
service = sudoself._get_gso_service()
|
||||||
from_ = sudoself.get_shipper_warehouse(order=order)
|
from_ = sudoself.get_shipper_warehouse(order=order)
|
||||||
to = sudoself.get_recipient(order=order)
|
to = sudoself.get_recipient(order=order)
|
||||||
address_type = 'B' if bool(to.company or to.parent_id.company) else 'R'
|
address_type = 'B' if bool(to.is_company or to.parent_id.is_company) else 'R'
|
||||||
|
|
||||||
est_weight_value = self._gso_convert_weight(
|
est_weight_value = self._gso_convert_weight(
|
||||||
sum([(line.product_id.weight * line.product_uom_qty) for line in order.order_line]) or 0.0)
|
sum([(line.product_id.weight * line.product_uom_qty) for line in order.order_line]) or 0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user