Merge lp://staging/~camptocamp/account-financial-tools/7.0-add-account_move_batch_validate-lep into lp://staging/~account-core-editors/account-financial-tools/7.0
Proposed by
Leonardo Pistone
Status: | Merged |
---|---|
Approved by: | Yannick Vaucher @ Camptocamp |
Approved revision: | 162 |
Merged at revision: | 156 |
Proposed branch: | lp://staging/~camptocamp/account-financial-tools/7.0-add-account_move_batch_validate-lep |
Merge into: | lp://staging/~account-core-editors/account-financial-tools/7.0 |
Diff against target: |
987 lines (+929/-0) 11 files modified
account_move_batch_validate/__init__.py (+24/-0) account_move_batch_validate/__openerp__.py (+80/-0) account_move_batch_validate/account.py (+134/-0) account_move_batch_validate/account_view.xml (+28/-0) account_move_batch_validate/i18n/account_move_batch_validate.pot (+191/-0) account_move_batch_validate/i18n/fr.po (+185/-0) account_move_batch_validate/test/batch_validate.yml (+48/-0) account_move_batch_validate/test/batch_validate_then_unmark.yml (+62/-0) account_move_batch_validate/wizard/__init__.py (+22/-0) account_move_batch_validate/wizard/move_marker.py (+89/-0) account_move_batch_validate/wizard/move_marker_view.xml (+66/-0) |
To merge this branch: | bzr merge lp://staging/~camptocamp/account-financial-tools/7.0-add-account_move_batch_validate-lep |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Yannick Vaucher @ Camptocamp | code review, no tests | Approve | |
Nicolas Bessi - Camptocamp (community) | code review, no test | Approve | |
Leonardo Pistone | Abstain | ||
Joël Grand-Guillaume @ camptocamp | code review, no tests | Approve | |
Frederic Clementi - Camptocamp (community) | functional | Approve | |
Review via email: mp+201187@code.staging.launchpad.net |
To post a comment you must log in.
Just about these lines:
135 + session_hdl = ConnectorSessio nHandler( cr.dbname, uid) hdl.session( ) as session:
136 + with session_
session_ hdl.session( ) will open a new transaction (new cr), and commit the jobs at the end of the context manager.
I'm not sure that's what you want.
My opinion is that if something fails in the main transaction of the wizard, the jobs should not be created. In that case, you would need to create a Session with the current cursor (instead of creating a new cursor).
session = Session(cr, uid, context=context)