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
[11.0][MIG] account_payment_return #176
Conversation
[IMP] account_payment_return: Implement find match with reference field
When entering manually returns, you need to change the line date. This commit also allows to use header date as defaut line date.
* For journal entry dictionary. * For extra return lines.
There was a problem hiding this 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
account_payment_return/README.rst
Outdated
Usage | ||
===== | ||
|
||
Go to Invoicing > Sales > Customer Payment Returns, and create a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create enumerated list
account_payment_return/README.rst
Outdated
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 |
There was a problem hiding this comment.
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 -*- |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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!" |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing this?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
account_payment_return/README.rst
Outdated
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like Charges!
There was a problem hiding this comment.
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
46cca32
to
4919169
Compare
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', |
There was a problem hiding this comment.
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.
account_payment_return/i18n/es.po
Outdated
msgid "Default Commission Partner" | ||
msgstr "Empresa por defecto para comisiones" | ||
msgid "Default Charge Partner" | ||
msgstr "Empresa del cargo por defecto" |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
5330d41
to
a7c8446
Compare
Changes done |
a7c8446
to
981d616
Compare
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
record, register on each line a paid (reconciled) receivable journal item,
and input the amount that is going to be returned.
find matches with invoices, move lines or moves. This functionality is extended
by other modules as account_payment_return_import_sepa_pain
balance from the bank journal and reconcile items together to show payment
history through it.
created.
cc @Tecnativa