Add py3o_lines_layout on invoice report
Fix crash on print order button in purchase_usability
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user