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

[account_check_printing] : assign and display check number when payment is confirmed #16560

Merged
merged 2 commits into from
Feb 14, 2018

Conversation

hsh-odoo
Copy link
Contributor

Description of the issue/feature this PR addresses:

Current behavior before PR:

  • Avoid issues in checks numbering.

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch from e5a9476 to 574de87 Compare April 21, 2017 13:26
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 21, 2017
@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch 2 times, most recently from 5790328 to b9be7b2 Compare April 27, 2017 07:28
@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch from b9be7b2 to 6e6a272 Compare May 4, 2017 11:21
@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch from 6e6a272 to f164329 Compare June 14, 2017 05:15
payment_method_check = self.env.ref('account_check_printing.account_payment_method_check')
for payment in self.filtered(lambda r: r.payment_method_id == payment_method_check and r.check_manual_sequencing):
sequence = payment.journal_id.check_sequence_id
payment.check_number = sequence.next_by_id()
Copy link
Contributor

Choose a reason for hiding this comment

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

You should return the result of super
res = super(AccountPayment, self).post()
...
return res

@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch 3 times, most recently from cd4314e to 9a8253c Compare November 6, 2017 04:41
@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch from 9a8253c to 7b4520a Compare November 9, 2017 12:30
@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch from 4ed3ad9 to 36e82cc Compare November 29, 2017 10:47
@rgo-odoo
Copy link
Contributor

LGTM

@hsh-odoo hsh-odoo force-pushed the master-account_check_printing-imp-hsh branch 6 times, most recently from 6124604 to 59397b1 Compare February 9, 2018 07:25
…irmation

Purpose
=======

Avoid issues in checks numbering.

Specification
=============

When the manual numbering of the checks is ticked on the bank journal, assign and display number to the check only when the payment is confirmed, not when the check is still in draft.
@tivisse tivisse force-pushed the master-account_check_printing-imp-hsh branch from 59397b1 to 824b48f Compare February 14, 2018 08:47
@tivisse tivisse merged commit 824b48f into odoo:master Feb 14, 2018
@tivisse tivisse deleted the master-account_check_printing-imp-hsh branch February 14, 2018 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants