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][account_partner_reconcile] splits the button 'Match payments' to 'Match Receivables' and 'Match payables' #219

Merged

Conversation

JordiBForgeFlow
Copy link
Sponsor Member

The previous button was just now working in v11.

if reconcile_mode == 'customers':
accounts = self.property_account_receivable_id
else:
accounts = self.self.property_account_payable_id
Copy link
Contributor

Choose a reason for hiding this comment

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

self.self.

Copy link
Member

Choose a reason for hiding this comment

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

It's Simplify, No need to else

accounts = self.property_account_payable_id
if reconcile_mode == 'customers':
    accounts = self.property_account_receivable_id

Copy link
Member

@Nikul-Chaudhary Nikul-Chaudhary left a comment

Choose a reason for hiding this comment

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

Improved Code

if reconcile_mode == 'customers':
accounts = self.property_account_receivable_id
else:
accounts = self.self.property_account_payable_id
Copy link
Member

Choose a reason for hiding this comment

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

It's Simplify, No need to else

accounts = self.property_account_payable_id
if reconcile_mode == 'customers':
    accounts = self.property_account_receivable_id

Splits the button 'Match payments' to 'Match Receivables' and 'Match Payables', as the previous button was just now working.
@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 11.0-account_partner_reconcile-fix-buttons branch from 681859f to 2830a05 Compare May 28, 2019 08:30
Copy link
Contributor

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM

@MiquelRForgeFlow
Copy link
Contributor

@pedrobaeza ready to merge 🍏

@pedrobaeza pedrobaeza merged commit 2f6ed5a into OCA:11.0 May 28, 2019
@MiquelRForgeFlow MiquelRForgeFlow deleted the 11.0-account_partner_reconcile-fix-buttons branch May 28, 2019 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants