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_reconcile_rule (account_operation_rule v9) #209

Closed

Conversation

grindtildeath
Copy link
Contributor

@grindtildeath grindtildeath commented Apr 23, 2018

Todo :

  • Fix Javascript
  • Check readme

@grindtildeath grindtildeath force-pushed the 11.0-mig-account_operation_rule branch 4 times, most recently from 4419041 to 5cfe225 Compare April 25, 2018 15:27
@grindtildeath grindtildeath changed the title [WIP][11.0][MIG] account_operation_rule > account_reconcile_rule [11.0][MIG] account_operation_rule > account_reconcile_rule Apr 25, 2018
@grindtildeath grindtildeath force-pushed the 11.0-mig-account_operation_rule branch 2 times, most recently from 8b1d1af to 47b862c Compare April 25, 2018 15:50
@grindtildeath grindtildeath changed the title [11.0][MIG] account_operation_rule > account_reconcile_rule [11.0][MIG] account_reconcile_rule (account_operation_rule v9) Apr 25, 2018
@@ -0,0 +1,23 @@
# Author: Guewen Baconnier
# © 2014-2016 Camptocamp SA

Choose a reason for hiding this comment

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

Copyright

'depends': [
'account',
],
'website': 'http://www.camptocamp.com',

Choose a reason for hiding this comment

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

'view/account_reconcile_rule_view.xml',
'security/ir.model.access.csv',
],
'installable': True,

Choose a reason for hiding this comment

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

you can drop these flags

@@ -0,0 +1,152 @@
# Translation of Odoo Server.

Choose a reason for hiding this comment

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

remove POT

@@ -0,0 +1,4 @@

Choose a reason for hiding this comment

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

empty line not needed

@api.model
@api.returns('account.reconcile.model')
def models_for_reconciliation(self, statement_line_id, move_line_ids):
""" Find the rule for the current reconciliation and returns the

Choose a reason for hiding this comment

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

"""Find reconcile models for given statement and move lines.
explain "how" in the extra lines.


var core = require('web.core');
var reconciliation_renderer = require('account.ReconciliationRenderer');

Choose a reason for hiding this comment

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

/*
Explain what you do here 
*/`

return deferred;
},
/**
* Click on add_line link if preset button have been clicked

Choose a reason for hiding this comment

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

???

'code': 'CASH',
'type': 'cash',
})

Choose a reason for hiding this comment

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

remove some useless empty line


@classmethod
def setUpClass(cls):
super(AccountReconciliationModelTestCase, cls).setUpClass()

Choose a reason for hiding this comment

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

you can call super() w/out args

Copy link
Member

@guewen guewen left a comment

Choose a reason for hiding this comment

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

Code LGTM (only some commented lines to remove), tested on runbot, works great. Thanks!

// var deferred = this._super();
// deferred.done(this.operation_rules());
// return deferred;
// }
Copy link
Member

Choose a reason for hiding this comment

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

I guess the commented lines can be removed

@grindtildeath grindtildeath force-pushed the 11.0-mig-account_operation_rule branch from 47b862c to 009122c Compare April 26, 2018 08:30
Copy link

@tschanzt tschanzt left a comment

Choose a reason for hiding this comment

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

Some of the Headers have the wrong Daterange in it for the licence. But otherwise 👍

@grindtildeath
Copy link
Contributor Author

@tschanzt Can you approve or add suggestions to correct the date range so we can get this merged ? 🙏 😉

@simahawk
Copy link

@tschanzt ping

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@benbrich
Copy link

@fclementic2c how about an merge here? Everythings seems allright from over here. Thx!

@benbrich
Copy link

benbrich commented Jul 4, 2019

@fclementic2c sorry for poking you on this one, I have learned from @OSevangelist that you are more into funtional stuff. @tafaRU or @jbeficent could you please be so kind and merge this one? Thanks!

@pedrobaeza
Copy link
Member

/ocabot merge

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Rebased to 11.0-ocabot-merge-pr-209-by-pedrobaeza-bump-no, awaiting test results.

@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e70bb0f. Thanks a lot for contributing to OCA. ❤️

PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into 11.0.

OCA-git-bot added a commit that referenced this pull request Jul 23, 2019
Signed-off-by pedrobaeza
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

8 participants