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

8.0 pep8 v7 forward port #33

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0ca4175
In account_easy_reconcile, now write-off entries can be created with …
guewen Mar 27, 2014
c45e47d
Improvement on the account_statement_base_import module to have profi…
pedrobaeza Jul 2, 2014
beea3e1
Create README.md
pedrobaeza Jul 2, 2014
59234d8
Merge pull request #9 from lepistone/7.0-account_easy_reconcile-analy…
lepistone Jul 11, 2014
56f6818
Merge pull request #4 from pedrobaeza/7.0-bank-statement-reconcile-pr…
pedrobaeza Jul 14, 2014
2971f66
[imp] auto reconcile: commit every 10 lines
lepistone Jul 15, 2014
8193d5d
refactor as suggested by @guewen
lepistone Jul 15, 2014
7b735ac
Merge pull request #12 from lepistone/easy_reconcile_commit
bwrsandman Jul 16, 2014
8f5861e
Add meta files
bwrsandman Jul 16, 2014
e5cfdfc
Add account-financial-tools dependency
bwrsandman Jul 16, 2014
3bf9710
allow to configure reconcile_commit_every
lepistone Jul 16, 2014
5c0f812
easy auto reconcile: commit at the end
lepistone Jul 16, 2014
996dea7
I'm a contributor, not an author
lepistone Jul 16, 2014
a1245da
Add ofxparse python dependency
bwrsandman Jul 16, 2014
1d1ae57
Merge pull request #15 from lepistone/easy_reconcile_commit_settings
lepistone Jul 16, 2014
1a96b22
Add logging during reconcile
guewen Jul 18, 2014
f40fe31
Wrong count of credit lines
guewen Jul 18, 2014
c6e8ea5
[FIX] API Improvement
florian-dacosta Jul 23, 2014
30525cf
fix docstring
florian-dacosta Jul 23, 2014
a61698b
fix docstring
florian-dacosta Jul 23, 2014
f6c5967
Merge pull request #19 from guewen/advanced-reconcile-logging
yvaucher Jul 28, 2014
d081f6c
Merge pull request #13 from bwrsandman/7.0-metafiles
yvaucher Jul 31, 2014
c1cf75d
[FIX] travis: update travis file to match the one in https://github.c…
lmignon Aug 1, 2014
bf46411
[FIX] travis: exclude account_statement_ext_point_of_sale (addon with…
lmignon Aug 1, 2014
18eb190
Merge pull request #25 from acsone/7.0-fix-travis
pedrobaeza Aug 1, 2014
7022628
[IMP] account_statement_base_import: Fill balance start when parser d…
pedrobaeza Aug 4, 2014
69c0e16
[FIX] Correct call order
pedrobaeza Aug 4, 2014
8e20a45
Merge pull request #22 from florian-dacosta/api_improvement
pedrobaeza Aug 4, 2014
2c1773e
Merge pull request #27 from pedrobaeza/7.0-import_start_balance_null
pedrobaeza Aug 4, 2014
44a59ce
autopep8
pedrobaeza Aug 4, 2014
2ec18f7
[IMP] account_statement_transactionid_import: Fix PEP8
pedrobaeza Aug 4, 2014
4a1c950
[IMP] account_easy_reconcile: Fix PEP8
pedrobaeza Aug 4, 2014
5072c71
[IMP] statement_voucher_killer: Fix PEP8
pedrobaeza Aug 4, 2014
f1e0b78
[IMP] account_advanced_reconcile: Fix PEP8
pedrobaeza Aug 4, 2014
c6298b0
[IMP] account_statement_base_completion: Fix PEP8
pedrobaeza Aug 4, 2014
b3c1aa9
[IMP] account_statement_so_completion: Fix PEP8
pedrobaeza Aug 4, 2014
5e98a81
[IMP] account_statement_ext_voucher: Fix PEP8
pedrobaeza Aug 4, 2014
d0a06fd
[IMP] account_statement_one_move: Fix PEP8
pedrobaeza Aug 4, 2014
66af054
[IMP] account_statement_ext_point_of_sale: Fix PEP8
pedrobaeza Aug 4, 2014
d64122c
[IMP] account_statement_regex_account_completion: Fix PEP8
pedrobaeza Aug 4, 2014
602d39d
[IMP] account_statement_completion_label: Fix PEP8
pedrobaeza Aug 4, 2014
aebcbfd
[IMP] account_invoice_reference: Fix PEP8
pedrobaeza Aug 4, 2014
d9a943d
[IMP] account_statement_base_import: Fix PEP8
pedrobaeza Aug 4, 2014
a851336
[IMP] account_statement_transactionid_completion: Fix PEP8
pedrobaeza Aug 4, 2014
6ccd6f4
[IMP] account_statement_commission: Fix PEP8
pedrobaeza Aug 4, 2014
9facd19
[IMP] account_statement_no_invoice_import: Fix PEP8
pedrobaeza Aug 4, 2014
5f0628b
[IMP] account_statement_ofx_import: Fix PEP8
pedrobaeza Aug 4, 2014
48e03e6
[IMP] account_advanced_reconcile_transaction_ref: Fix PEP8
pedrobaeza Aug 4, 2014
5cfa975
[IMP] account_statement_completion_voucher: Fix PEP8
pedrobaeza Aug 4, 2014
85d139f
[IMP] account_statement_completion_voucher: Fix PEP8
pedrobaeza Aug 4, 2014
b94bebe
[IMP] account_statement_bankaccount_completion: Fix PEP8
pedrobaeza Aug 4, 2014
b522f28
Fix Travis errors
pedrobaeza Aug 4, 2014
4e13e0e
F401 remaining
pedrobaeza Aug 4, 2014
a33cfa6
Fix multiline docstring param
pedrobaeza Aug 5, 2014
c0cbab8
Merge pull request #31 from pedrobaeza/7.0-pep8_fix
pedrobaeza Aug 6, 2014
8496d84
Merge remote-tracking branch 'upstream/7.0' into 8.0-port-base-import
lmignon Aug 6, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions account_easy_reconcile/base_reconciliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def _reconcile_lines(self, cr, uid, rec, lines, allow_partial=False, context=Non
period_id = self.pool.get('account.period').find(
cr, uid, dt=date, context=context)[0]

if rec.analytic_account_id:
rec_ctx['analytic_id'] = rec.analytic_account_id.id

ml_obj.reconcile(
cr, uid,
line_ids,
Expand Down
5 changes: 5 additions & 0 deletions account_easy_reconcile/easy_reconcile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def _get_rec_base_date(self, cr, uid, context=None):
required=True,
string='Date of reconciliation'),
'filter': fields.char('Filter', size=128),
'analytic_account_id': fields.many2one(
'account.analytic.account', 'Analytic Account',
help="Analytic account for the write-off"),
}

_defaults = {
Expand Down Expand Up @@ -199,6 +202,8 @@ def _prepare_run_transient(self, cr, uid, rec_method, context=None):
rec_method.account_lost_id.id),
'account_profit_id': (rec_method.account_profit_id and
rec_method.account_profit_id.id),
'analytic_account_id': (rec_method.analytic_account_id and
rec_method.analytic_account_id.id),
'journal_id': (rec_method.journal_id and
rec_method.journal_id.id),
'date_base_on': rec_method.date_base_on,
Expand Down
2 changes: 2 additions & 0 deletions account_easy_reconcile/easy_reconcile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ The lines should have the same amount (with the write-off) and the same referenc
<field name="account_lost_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="account_profit_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="journal_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="date_base_on"/>
</form>
</field>
Expand All @@ -147,6 +148,7 @@ The lines should have the same amount (with the write-off) and the same referenc
<field name="account_lost_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="account_profit_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="journal_id" attrs="{'required':[('write_off','>',0)]}"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="date_base_on"/>
</tree>
</field>
Expand Down