Add py3o_lines_layout on invoice report

Fix crash on print order button in purchase_usability
This commit is contained in:
Alexis de Lattre
2019-03-06 17:50:36 +01:00
parent e7638c239f
commit 66174e1cb0
3 changed files with 32 additions and 40 deletions

View File

@@ -28,8 +28,8 @@ class PurchaseOrder(models.Model):
order.delivery_partner_id = order.dest_address_id
def print_order(self):
action = self.env['report'].get_action(
self, 'purchase.report_purchaseorder')
report = self.env.ref('purchase.action_report_purchase_order')
action = report.report_action(self)
return action
# Re-write native name_get() to use amount_untaxed instead of amount_total