Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions l10n_jp_summary_invoice/reports/summary_invoice_reports.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<field name="report_file">l10n_jp_summary_invoice.report_summary_invoice</field>
<field name="binding_model_id" ref="account_billing.model_account_billing" />
<field name="binding_type">report</field>
<field name="attachment_use">True</field>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably causes more confusion if we download from the attachment.

Suggested change
<field name="attachment_use">True</field>

<field
name="attachment"
>(object.state == 'posted') and ('Summary Invoice-%s' % (object.name))</field>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>(object.state == 'posted') and ('Summary Invoice-%s' % (object.name))</field>
>(object.state == 'billed') and ('Summary Invoice-%s' % (object.name))</field>

Please check if assigning date+time attaches the document at every print action. I think the best is to be able to assign a revision number (e.g., _r1, r2...) but I don't have a good idea how to implement this quickly at the moment.

<field
name="print_report_name"
>'Summary Invoice-%s%s' % (object.name, object.state == 'draft' and '-draft' or '')</field>
Expand Down