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

[ADD] add module 'account_easy_reconcile' : v8 migration #110

Merged
merged 12 commits into from
Sep 10, 2015

Conversation

damdam-s
Copy link
Member

No description provided.

def _get_date(reconcile):
if reconcile.last_history.date:
return datetime.strptime(reconcile.last_history.date,
DEFAULT_SERVER_DATETIME_FORMAT)
Copy link
Member

Choose a reason for hiding this comment

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

use fields.Datetime.from_string(reconcile.last_history.date)


@api.one
@api.depends('reconcile_ids', 'reconcile_partial_ids')
def _reconcile_line_ids(self):
Copy link
Member

Choose a reason for hiding this comment

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

Could be renamed _compute_reconcile_line_ids or _get_reconcile_line_ids for clarity

@yvaucher
Copy link
Member

Still some cleaning to do

@damdam-s damdam-s force-pushed the migrate_account_easy_reconcile branch from ccc4e52 to f559a5f Compare September 4, 2015 06:47
dummy, where, params = ml_obj._where_calc(
cr, uid, eval(rec.filter), context=context).get_sql()
eval(self.filter)).get_sql()
Copy link
Member

Choose a reason for hiding this comment

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

please change this to use safe_eval.

A PR on 7.0 to fix this is welcome too.

@damdam-s
Copy link
Member Author

damdam-s commented Sep 4, 2015

@gurneyalex fixed.
#122 for fix in 7.0

@gurneyalex
Copy link
Member

👍

@yvaucher
Copy link
Member

yvaucher commented Sep 4, 2015

@damdam-s Thanks for the fixes, can you address the last 2-3 comments I have made? If you disagree just say it so 😄

@damdam-s
Copy link
Member Author

damdam-s commented Sep 7, 2015

@yvaucher done. oups ;) I forgot some of your comments.

@yvaucher
Copy link
Member

Thanks for the fixes 👍 merging...

@yvaucher yvaucher merged commit 43b0429 into OCA:8.0 Sep 10, 2015
grindtildeath pushed a commit to grindtildeath/account-reconcile that referenced this pull request Oct 16, 2019
8.0 improve selection of invoices to pay, solves OCA#93
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

5 participants