fix wrong ty warnings
This commit is contained in:
parent
08af7716b4
commit
85a689179b
|
|
@ -272,7 +272,7 @@ class ReturnOrderReportContext(report.mixins.BaseReportContext, TypedDict):
|
|||
customer: Optional[Company]
|
||||
|
||||
|
||||
class TransferOrderReportContext(report.mixins.BaseReportContext, TypedDict):
|
||||
class TransferOrderReportContext(BaseOrderReportContext, TypedDict):
|
||||
"""Context for the transfer order model.
|
||||
|
||||
Attributes:
|
||||
|
|
@ -639,7 +639,8 @@ class PurchaseOrder(TotalPriceMixin, Order):
|
|||
def report_context(self) -> PurchaseOrderReportContext:
|
||||
"""Return report context data for this PurchaseOrder."""
|
||||
return_ctx = super().report_context()
|
||||
return_ctx.update({'supplier': self.supplier})
|
||||
|
||||
return_ctx.update({'supplier': self.supplier}) # ty:ignore[invalid-key]
|
||||
return return_ctx
|
||||
|
||||
def get_absolute_url(self) -> str:
|
||||
|
|
@ -1372,7 +1373,8 @@ class SalesOrder(TotalPriceMixin, Order):
|
|||
def report_context(self) -> SalesOrderReportContext:
|
||||
"""Generate report context data for this SalesOrder."""
|
||||
return_ctx = super().report_context()
|
||||
return_ctx.update({'customer': self.customer})
|
||||
|
||||
return_ctx.update({'customer': self.customer}) # ty:ignore[invalid-key]
|
||||
return return_ctx
|
||||
|
||||
def get_absolute_url(self) -> str:
|
||||
|
|
@ -2931,7 +2933,8 @@ class ReturnOrder(TotalPriceMixin, Order):
|
|||
def report_context(self) -> ReturnOrderReportContext:
|
||||
"""Generate report context data for this ReturnOrder."""
|
||||
return_ctx = super().report_context()
|
||||
return_ctx.update({'customer': self.customer})
|
||||
|
||||
return_ctx.update({'customer': self.customer}) # ty:ignore[invalid-key]
|
||||
return return_ctx
|
||||
|
||||
def get_absolute_url(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue