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

[11.0][MIG] account_payment_return #176

Merged
merged 12 commits into from Apr 5, 2018

Conversation

luismontalba
Copy link
Member

Returned Customers Payment Orders

This module implements customer receivables returns and allows to send
related reconciled account move lines back to a state where the debt is still
open, and letting history of it.

Usage

  • Go to Invoicing > Sales > Customer Payment Returns, and create a new
    record, register on each line a paid (reconciled) receivable journal item,
    and input the amount that is going to be returned.
  • Another option to fill info is setting references and click match button to
    find matches with invoices, move lines or moves. This functionality is extended
    by other modules as account_payment_return_import_sepa_pain
  • Next, press button "Confirm" to create a new move line that removes the
    balance from the bank journal and reconcile items together to show payment
    history through it.
  • After confirmation you can access from the payment form view to the move
    created.

cc @Tecnativa

@luismontalba luismontalba changed the title [11.0][MIG] account payment return [11.0][MIG] account_payment_return Mar 23, 2018
@elicoidal elicoidal added this to the 11.0 milestone Mar 24, 2018
Copy link

@elicoidal elicoidal left a comment

Choose a reason for hiding this comment

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

some details.
LGTM no test

Usage
=====

Go to Invoicing > Sales > Customer Payment Returns, and create a new

Choose a reason for hiding this comment

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

Please create enumerated list

record, register on each line a paid (reconciled) receivable journal item,
and input the amount that is going to be returned.

Another option to fill info is setting references and click match button to

Choose a reason for hiding this comment

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

same here: it increases visibility

@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-

Choose a reason for hiding this comment

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

remove coding in all files (python 3)
Remove copyright info in all init.py files

_inherit = "account.journal"

default_expense_account_id = fields.Many2one(
comodel_name='account.account', string='Default Expense Account',

Choose a reason for hiding this comment

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

string is not consistent with help.
I suggest "Default Commission Account"

Copy link
Member

Choose a reason for hiding this comment

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

Commission is more for sales terminology. I don't think it's correct for an expense.

comodel_name='account.account', string='Default Expense Account',
help='Default account for commission expenses')
default_expense_partner_id = fields.Many2one(
comodel_name="res.partner", string="Default Expense Partner",

Choose a reason for hiding this comment

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

same here

append_error(line)
if error_list:
raise UserError(
_("Payment reference must be unique!"

Choose a reason for hiding this comment

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

remove '!'

@@ -135,4 +135,4 @@ def test_check_printing_with_layout(self):
payment.print_checks()
except UserError as e:
pass
self.assertEquals(e, False)
self.assertEqual(e, False)
Copy link
Member

Choose a reason for hiding this comment

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

Why changing this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, it's changed when you run 2to3 -wnj4 --no-diffs . as suggested here:
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, but you must run it not on the entire repository, but on your module folder.

Copy link
Member

Choose a reason for hiding this comment

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

seleccion_001

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it was a mistake, I'll fix it

Go to Invoicing > Sales > Customer Payment Returns, and create a new
record, register on each line a paid (reconciled) receivable journal item,
and input the amount that is going to be returned.
1. Go to Invoicing > Sales > Customer Payment Returns, and create a new
Copy link
Member

Choose a reason for hiding this comment

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

You don't need to put manually numbers. Putting #. , numbers are auto-assigned on rendering.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changes done

@@ -9,9 +8,9 @@ class AccountJournal(models.Model):
_inherit = "account.journal"

default_expense_account_id = fields.Many2one(
comodel_name='account.account', string='Default Expense Account',
comodel_name='account.account', string='Default Commission Account',
Copy link
Member

Choose a reason for hiding this comment

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

Why changing this? Commission is more for sales, not for the meaning we are thinking (comisión).

Copy link
Member Author

Choose a reason for hiding this comment

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

I think both terms, bank expenses an bank commissions are right, I changed it because @elicoidal suggested it and I suppose he has better feeling than me about the best term in English language.

Choose a reason for hiding this comment

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

@pedrobaeza @luismontalba I suggested commission instead of expense to avoid the confusion with standard Odoo expense account.
Alternative would Charges (this is what appears in my bank statement) or Fees

Copy link
Member

Choose a reason for hiding this comment

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

I like Charges!

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I'll put Charges, It's a good option

@luismontalba luismontalba force-pushed the 11.0-mig-account_payment_return branch from 46cca32 to 4919169 Compare March 27, 2018 10:53
@luismontalba
Copy link
Member Author

Changes done

@@ -8,9 +8,9 @@ class AccountJournal(models.Model):
_inherit = "account.journal"

default_expense_account_id = fields.Many2one(
comodel_name='account.account', string='Default Commission Account',
help='Default account for commission expenses')
comodel_name='account.account', string='Default Charge Account',
Copy link
Member

Choose a reason for hiding this comment

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

It should be in plural.

msgid "Default Commission Partner"
msgstr "Empresa por defecto para comisiones"
msgid "Default Charge Partner"
msgstr "Empresa del cargo por defecto"
Copy link
Member

Choose a reason for hiding this comment

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

Don't change the previous translation, although the source term changes.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Please also change the source term in all current translations

@luismontalba luismontalba force-pushed the 11.0-mig-account_payment_return branch from 5330d41 to a7c8446 Compare April 4, 2018 16:56
@luismontalba
Copy link
Member Author

Changes done

@pedrobaeza pedrobaeza force-pushed the 11.0-mig-account_payment_return branch from a7c8446 to 981d616 Compare April 5, 2018 09:26
@pedrobaeza pedrobaeza merged commit d4aa1df into OCA:11.0 Apr 5, 2018
@pedrobaeza pedrobaeza deleted the 11.0-mig-account_payment_return branch April 5, 2018 09:58
@pedrobaeza pedrobaeza mentioned this pull request Apr 5, 2018
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants