hunk.code_window: % set is_online = access_action and access_action['type'] == 'ir.actions.act_url'
   % if object.partner_id.parent_id:
       (<i>${object.partner_id.parent_id.name}</i>)
   % endif
  
hunk.labels: add keep keep keep keep
hunk.after_edit: % set access_url = is_online and '/mail/view?model=account.invoice&res_id=%d' % (object.id) or '/report/pdf/account.report_invoice/' + str(object.id)
  
hunk.file_path: addons/account/data/email_template_data_invoice.xml
hunk.type: add
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  import ir_model
  import ir_sequence
  import ir_ui_menu
  import ir_ui_view
  import ir_actions
  import ir_attachment
  import ir_cron
  import ir_filters
  import ir_values
  import ir_translation
  import ir_exports
  import ir_rule
  import ir_config_parameter
  import ir_autovacuum
  import ir_mail_server
  import ir_fields
  import ir_qweb
  import ir_http
  import ir_logging
  