-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
[ADD] 11.0 mig account mass reconcile #197
Conversation
f400410
to
7a79068
Compare
account_mass_reconcile/README.rst
Outdated
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-reconcile/issues>`_. |
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.
account_mass_reconcile/README.rst
Outdated
* Vincent Renaville <vincent.renaville@camptocamp.com> | ||
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com> | ||
* Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com> | ||
* Nicolas Bessis <nicolas.bessi@camptocamp.com> |
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.
Bessi
@@ -0,0 +1,22 @@ | |||
# © 2012-2016 Camptocamp SA (Guewen Baconnier, Damien Crier, Matthieu Dietrich) |
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.
(c) -> Copyright
for value, ovalue in product(values, opposite_values): | ||
# we do not need to compare all values, if one matches | ||
# we are done | ||
if MassReconcileAdvanced._compare_values(key, value, ovalue): |
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.
shouldn't we use self._*
instead of calling the class straight?
'move_id') | ||
return ["account_move_line.{}".format(col) for col in aml_cols] | ||
|
||
def _select(self, *args, **kwargs): |
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.
wouldn't be better to prefix these methods' names w/ something to avoid possible clashes w/ odoo internals?
line_rs.reconcile( | ||
writeoff_acc_id=writeoff_account, | ||
writeoff_journal_id=self.journal_id | ||
) |
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.
indent back
string='Date of reconciliation', | ||
default='newest', | ||
) | ||
filter = fields.Char( |
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.
can we prefix this field name to avoid clash w/ built-in?
] | ||
|
||
def _get_rec_method(self): | ||
return self._get_all_rec_method() |
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.
this indirection is not needed
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.
Not sure what you mean here
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 can merge "_get_all_rec_method" into this method and rename it _selection_name
(I don't see those methods used somewhere else)
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.
hmm, thinking about it twice: _get_all_rec_method
it's kind of an api method, so:
- rename
_get_rec_method
to_selection_name
- rename
_get_all_rec_method
to_get_reconcilation_methods
self.env['account.mass.reconcile.method'] | ||
) | ||
self.mass_rec = self.mass_rec_obj.create( | ||
{ |
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.
poor indentation here
|
||
class TestReconcile(common.TransactionCase): | ||
|
||
def setUp(self): |
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.
we can use SavepointCase + setUpClass to avoid creating records again and again on each test.
70cf63d
to
fcbf3e3
Compare
@@ -0,0 +1,602 @@ | |||
# Translation of Odoo Server. |
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 the file
84c7018
to
f5e3266
Compare
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.
LGTM in term of code, however for the history, I see some issues.
Here we are loosing all history prior to 2952cbe , we probably want to include the history of account_easy_reconcile
and account_advanced_reconcile
https://github.com/OCA/account-reconcile/commits/10.0/account_easy_reconcile
https://github.com/OCA/account-reconcile/commits/10.0/account_advanced_reconcile
- those translations commits can be squashed
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 non-blocking things, otherwise looks good but please consider @yvaucher 's last comment.
'license': 'AGPL-3', | ||
"auto_install": False, | ||
'installable': True, |
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 we want to keep this key ?
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.
no they are defaults, not needed
) | ||
reconcile_line_ids = fields.Many2many( | ||
comodel_name='account.move.line', | ||
relation='account_move_line_history_rel', | ||
string='Reconciled Items', | ||
compute='_get_reconcile_line_ids' | ||
compute='_get_reconcile_line_ids', |
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.
Compute method should start with _compute
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.
@mpanarin ping?
f5e3266
to
a3edc47
Compare
d7dc959
to
8aab378
Compare
For reconciling entries automatically (lp:account-extra-addons rev 22)
based on account_easy_reconcile (lp:c2c-financial-addons/6.1 rev 24.1.20)
using account_easy_reconcile (lp:c2c-financial-addons/6.1 rev 24.2.1)
… of code which have still to be exectuted, not sure if it will runs or just miserably crash (lp:c2c-financial-addons/6.1 rev 24.2.2)
(lp:c2c-financial-addons/6.1 rev 24.2.6)
(lp:c2c-financial-addons/6.1 rev 24.2.7)
(lp:c2c-financial-addons/6.1 rev 58)
…ents that we made. This is mostly based on : account_statement_ext -> provide profile per bank statement, remove period, choose to use balance check or not,... account_statement_base_completion -> provide a completion rule system to fullfill the bank statement (partner, account,...) account_statement_base_import -> provide a base to create your own file parser for each bank/office and link it to a profile account_statement_transactionid_completion and account_statement_transactionid_import to use the transaction ID recorded in th SO account_advanced_reconcile -> An advanced way to setup reconciliation rules on every account account_financial_report_webkit -> some little fixes (lp:c2c-financial-addons/6.1 rev 63)
to order the reconcile methods
…rtially reconciled items from a profile to easy the verification and controlling
[IMP] add translations [FIX] add decorator multi
8aab378
to
429716f
Compare
No description provided.