Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] account_invoice_refund_reason #610

Closed
5 of 8 tasks
max3903 opened this issue Oct 11, 2019 · 1 comment
Closed
5 of 8 tasks

[ADD] account_invoice_refund_reason #610

max3903 opened this issue Oct 11, 2019 · 1 comment
Assignees
Milestone

Comments

@max3903
Copy link
Sponsor Member

max3903 commented Oct 11, 2019

This module allows you to define a list of reasons to create a credit note from an invoice and report on them.

Configuration

  • Go to Accounting > Configuration > Management > Refund Reasons
  • Create the different reasons you want to provide users

Usage

Operations

  • Go to Accounting > Customers > Invoices (or Accounting > Vendors > Bills)
  • Select an open invoice (or bill)
  • Click on the "Add Credit Note"
  • Select the reason and create the credit note

Reporting

  • Go to Accounting > Reporting > Management > Invoices
  • Group by refund reason

Technical specifications

account.invoice.refund.reason

  • Add a required char field "Name" (name). Make the field translatable.

account.invoice

  • Add a many2one field "Reason" (reason_id) to account.invoice.refund.reason
  • Show it on the refund if the field is set

account.invoice.refund

  • Add a many2one field "Reason" (reason_id) to account.invoice.refund.reason
  • Set the existing "Reason" field (description) with reason_id.name
  • Hide the existing "Reason" field (description)
  • Push the value to the created refund

data

  • account.invoice.refund.reason.csv:
id,name
refund_reason_cancellation,Cancellation
refund_reason_noref,Invoice without reference
refund_reason_error,Lease and/or Minimum Charge Error
refund_reason_agreement,Commercial and/or Collection Agreement
refund_reason_difference,Price Difference
refund_reason_correction,Data Correction
refund_reason_others,Others
@max3903 max3903 added this to the 12.0 milestone Oct 11, 2019
@max3903 max3903 self-assigned this Oct 11, 2019
@pedrobaeza
Copy link
Member

You can check for similarities in code in https://github.com/OCA/crm/tree/12.0/crm_phonecall_summary_predefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants