forked from CGM_Public/pretix_original
Fix PDF renderer without invoice address
This commit is contained in:
@@ -148,12 +148,12 @@ DEFAULT_VARIABLES = OrderedDict((
|
|||||||
("invoice_name", {
|
("invoice_name", {
|
||||||
"label": _("Invoice address: name"),
|
"label": _("Invoice address: name"),
|
||||||
"editor_sample": _("John Doe"),
|
"editor_sample": _("John Doe"),
|
||||||
"evaluate": lambda op, order, ev: order.invoice_address.name if getattr(order, 'invoice_address') else ''
|
"evaluate": lambda op, order, ev: order.invoice_address.name if getattr(order, 'invoice_address', None) else ''
|
||||||
}),
|
}),
|
||||||
("invoice_company", {
|
("invoice_company", {
|
||||||
"label": _("Invoice address: company"),
|
"label": _("Invoice address: company"),
|
||||||
"editor_sample": _("Sample company"),
|
"editor_sample": _("Sample company"),
|
||||||
"evaluate": lambda op, order, ev: order.invoice_address.company if getattr(order, 'invoice_address') else ''
|
"evaluate": lambda op, order, ev: order.invoice_address.company if getattr(order, 'invoice_address', None) else ''
|
||||||
}),
|
}),
|
||||||
("addons", {
|
("addons", {
|
||||||
"label": _("List of Add-Ons"),
|
"label": _("List of Add-Ons"),
|
||||||
|
|||||||
Reference in New Issue
Block a user