Commit Graph

9865 Commits

Author SHA1 Message Date
Denis Ledoux 6c13c8d966 [MERGE] forward port of branch 7.0 up to 529e920 2014-11-19 14:06:48 +01:00
Denis Ledoux 02270bd0fd [FIX] account: do not duplicate analytic lines on analytic journal duplicate 2014-11-18 16:27:57 +01:00
Denis Ledoux d9e48bae42 [MERGE] forward port of branch saas-3 up to 7ab4137 2014-11-14 16:58:24 +01:00
Denis Ledoux 7ab413724a [MERGE] forward port of branch 7.0 up to da15c9d 2014-11-14 15:59:33 +01:00
qdp-odoo 3540484138 [FIX] account: allow to use quantity in taxes computated with python code 2014-11-14 15:45:13 +01:00
Samus CTO 1a826e07fe [IMP] Speedup test account_assert_test.xml in account 2014-11-13 17:00:42 +01:00
Christophe Simonis 83bd9ee16b [FIX] account: give "Invoice" users access to "Invoice Analysis" Report.
This access is required in order to display the amount invoiced on partner form
2014-11-12 19:25:50 +01:00
Olivier Dony 3d88a60c2e [FIX] account.invoice report: show customer description of payment term
The payment term description (note) is meant
to be shown to customers. Restore it in the
default invoice report, as it was in 7.0.
If empty, assume the payment term is meant
to be hidden from customer, and do not show
anything.
By default the description includes the name
of the payment term, so no need to keep both.
2014-11-12 18:50:38 +01:00
Martin Trigaux f3b3776128 [FIX] account: recompute date_due
Add on_change to recompute the due date when the invoice date is modified (it was only done when modified the partner_id field
Fixes #3413
2014-11-07 17:39:57 +01:00
celm1990 d039249dd2 [FIX] fix wrong filter in search view (account/sale)
the field section_id is created in addon sale, but used in the account
reporting views.  This commit moves the search view definition
in the correct file.
2014-11-06 14:15:19 +01:00
Christophe Simonis 6239cf5c49 [MERGE] forward port of branch saas-3 up to 48ffbb6 2014-11-05 19:00:51 +01:00
Christophe Simonis 48ffbb68fb [MERGE] forward port of branch 7.0 up to cb91966 2014-11-05 18:58:07 +01:00
Martin Trigaux a3f9c908a0 [IMP] account: (over)due payments report
The report includes all due payments, not only the one after the maturity date.
The maturity date is displayed in the report so no confusion is possible for payments below the maturity date.
Fixes #3064
2014-11-05 15:49:15 +01:00
Arthur Maniet d50d89566c [FIX] account: correctly compute residual amount of partially reconciled multi-term invoices.
Fixes #1213
2014-11-04 14:46:09 +01:00
Arthur Maniet 4a8b8df813 [FIX] account: recompute invoice residual amount when one of its move lines is totally reconciled
Fixes #3395
2014-11-04 14:45:09 +01:00
Denis Ledoux f7723037d6 [MERGE] forward port of branch saas-3 up to 8c4a7cb 2014-11-04 12:30:01 +01:00
Denis Ledoux 8c4a7cb371 [MERGE] forward port of branch 7.0 up to 5035c76 2014-11-04 12:19:58 +01:00
Stéphane Bidoul 18b7b28bc1 [FIX] account: backport of 12a39db
[FIX] account: Preserve analytic account on tax lines which are on same general account as invoice line

After careful analysis, I'm now convinced it is a good thing to preserve
the analytic account on taxes line which have the same general account
as the invoice line.

This is the best default case and will save time for users,
while leaving the flexibility to adapt the analytic account on
taxes manually.
2014-11-04 11:29:00 +01:00
Stéphane Bidoul ab797f0cd8 [FIX] account: backport of 3470643
[FIX] account: Error when manually adding analytic account in the generated tax lines on an invoice

fixes #374
fixes https://bugs.launchpad.net/ocb-addons/+bug/1084822

The fix considers invoice tax lines with different analytic account
are equivalent for the purpose of checking if the list of tax line
is complete.

Caveat, this changes the structure of keys in the dictionary
returned by account.invoice.tax's compute method, I suppose this
is ok for the master branch.
2014-11-04 11:28:10 +01:00
Adrien Peiffer 78f3b94601 [IMP] account: Add multi-company record rule for analytic entries report
As a multi-company rule is already present for account.analytic.account and account.analytic.line, should have one on the report on both of them.
2014-11-03 11:50:10 +01:00
Martin Trigaux 37fe614126 [IMP] account: remove duplicated field in view
Partial backport of 5f06129.
Fixes #2837
2014-11-03 11:41:03 +01:00
Martin Trigaux aa9914568b [FIX] account: default partner format
When creating a new account.move.line, the computation of the default values should accept both `id` and `(id, name)` format.
The key partner_id may be containing a tuple so browsing should only be done on the first element of the tuple.
Fixes #3386
2014-10-31 08:40:30 +01:00
Somesh Khare 74157326f0 [FIX] account: domain on wrong field
The store recomputation method failed as the search was made comparing id of account.move.line to the account.journal values. Search was returing no result most of the time (opw 615554)
Fixes #2454
2014-10-30 15:21:27 +01:00
Olivier Dony 92c7874eb8 [FIX] account: indendation error in 82588fa
The original tax should not be included if
it was found in the tax mapping, even
if it has no replacement.

Fixes #2261 (hopefully, this time)
2014-10-29 19:42:13 +01:00
Christophe Simonis 8e637bac92 [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
Olivier Dony 82588faa71 [FIX] account: tax mapping logic was broken by 7508b7c
The original tax should not be applied
if at least one destination tax was
applied. It should only be applied if
explicitly included in target taxes.

(Re-)Fixes #2261
2014-10-29 16:44:55 +01:00
Denis Ledoux a6024a6376 [MERGE] forward port of branch 7.0 up to 00ec786 2014-10-28 13:40:17 +01:00
Denis Ledoux 00ec786e48 [FIX] account: partner balance general totals
General totals were not computed at all, due to the condition "if not self.ids" which was always true as self.ids wasn't set.

Besides, a parameter allows to display only partner with balance greater than 0, which was completely ignored by the totals computation methods: The totals always included all partners, even those having balance equals to 0
2014-10-28 13:18:22 +01:00
Alexis de Lattre 7508b7cd9c [FIX] account: fiscal position may map single tax to multiple taxes
(This is a regression in Odoo 8)

It should now work when a fiscal position replaces 1 tax with
several taxes (for example : Fiscal position "Intra-EU B2B" in l10n_fr)

Fixes #2261, manual merge of PR #3316
2014-10-27 17:08:09 +01:00
Denis Ledoux 96bcaadd46 [FIX] account: limit search for fields_view_get to one result
+ use ir.model.data get_object_reference method for better performance (cached result)

opw-616616
2014-10-27 13:24:47 +01:00
Stéphane Bidoul 24ec228acc [FIX] avoid leaving dangling account moves when deleting a bank statement
Fixes #3292
2014-10-27 10:58:11 +01:00
Christophe Matthieu c4ae1ef66d [FIX] account.fiscal.position: Fix get_fiscal_position for auto apply:
First match a fiscal position for the given country, then for a country
group containing the country. If none found, search a fiscal position
without country nor country group
2014-10-27 10:24:13 +01:00
Simon Lejeune 6bd36a8613 [FIX] account: tax report: translate account.tax.code according to context
As get_lines is called from the template, use a partial to embed the original context.
2014-10-23 15:43:52 +02:00
Géry Debongnie ec7fd06ade [FIX] remove wrong filter (account)
For some reason, a filter was made on the non-existing field 'categ_id'.
Result: crash crash boom.
2014-10-23 11:42:54 +02:00
Denis Ledoux 285ba3d801 [FIX] account: default product taxes on product.template
As product.template is now most commonly used than product.product

This is related to fix 96dd8bf
2014-10-20 17:50:22 +02:00
Arthur Maniet 40acb7ee6c [IMP] account: reconciliation widget: load list of move lines in a single RPC call with limit set. It drastically improves performances on big databases.
[FIX] account: reconciliation widget: for reconciliations with no partner, allow to select move lines from any partner and apply global move lines exclusion.
2014-10-20 15:02:26 +02:00
Arthur Maniet f2401bc905 [FIX] account: bank statement reconciliation incorrect rounding 2014-10-20 14:25:16 +02:00
Denis Ledoux dafa7958c6 [FIX] account: use float_compare instead of just <> 2014-10-17 10:59:19 +02:00
Guewen Baconnier 3af6bed743 [REF] Extract the domain generation for get_move_lines_for_reconciliation and get_reconciliation_proposition in new methods
This way, the query method can be used with a custom domain. Such a domain
could match on a 'transaction_ref' field as well as on 'ref' and 'name'.

Example of implementation:

    class account_bank_statement_line(orm.Model):
        _inherit = 'account.bank.statement.line'

        def _domain_reconciliation_proposition(self, cr, uid, st_line,
                                               excluded_ids=None, context=None):
            _super = super(account_bank_statement_line, self)
            _get_domain = _super._domain_reconciliation_proposition
            domain = _get_domain(cr, uid, st_line, excluded_ids=excluded_ids,
                                 context=context)
            new_domain = []
            for criterium in domain:
                if len(criterium) == 3:
                    field, op, value = criterium
                    if (field, op) == ('ref', '='):
                        new_domain += [
                            '|',
                            ('transaction_ref', '=', value),
                        ]
                new_domain.append(criterium)
            return new_domain

        def _domain_move_lines_for_reconciliation(self, cr, uid, st_line,
                                                  excluded_ids=None, str=False,
                                                  additional_domain=None,
                                                  context=None):
            _super = super(account_bank_statement_line, self)
            _domain_meth = _super._domain_move_lines_for_reconciliation
            domain = _domain_meth(cr, uid, st_line, excluded_ids=excluded_ids,
                                  str=str, additional_domain=additional_domain,
                                  context=context)
            if not str and str != '/':
                return domain
            domain = domain[:]
            domain.insert(-1, '|')
            domain.append(('transaction_ref', 'ilike', str))
            return domain
2014-10-16 14:12:06 +02:00
Christophe Simonis 2e3f59181d [MERGE] forward port of branch saas-3 up to db75994 2014-10-14 15:13:14 +02:00
Denis Ledoux d38adf3d92 [FIX] account_invoice: using has_group to determine if user has group group_supplier_inv_check_total
has_group do not care about the fact res.groups is access restricted
2014-10-09 18:57:37 +02:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Denis Ledoux b13898c058 [MERGE] forward port of branch 7.0 up to 03df412f 2014-10-07 17:34:42 +02:00
Denis Ledoux 03df412faf [FIX] account: precision_get returns a number of digits
In other words, it returnes a precision digits, not a precision rounding
2014-10-07 17:26:49 +02:00
Ferdinand Gassauer bc69e1812a [FIX] account: self typo 2014-10-06 17:10:50 +02:00
Martin Trigaux 8843974d04 Forward port of branch saas-3 up to fc9fc3e 2014-10-06 15:52:23 +02:00
Simon Lejeune e388cb8c32 [FIX] account: res_config: gain/loss exch. account onchange
Commit f4e350ca3 defined an `onchange_company_id` method, never executed
because another `onchange_company_id` was defined below. Merged the first
in the second.
2014-10-06 15:27:53 +02:00
Arthur Maniet e6ca891714 Merge pull request #2894 from erwin-bas-solutions/translation-reconcile
[FIX] Account. Missing translation on write-off comment
2014-10-03 16:00:10 +02:00
Erwin van der Ploeg 2ec99aee18 [FIX] Account. Missing translation on write-off comment 2014-10-03 15:38:45 +02:00
Denis Ledoux 76fdbec3bb [MERGE] forward port of branch 7.0 up to 6d4e1cc 2014-10-03 11:22:47 +02:00
dhr-odoo b2cb31c0fb [FIX] account: return format of function field
When no result is found on the function field 'invoice' (account.move.line), instead of returning {move_id: (False, '')}, return {move_id: False} (expected for m2o fields)
Fixes #2138, opw 613096
2014-10-03 09:59:38 +02:00
Denis Ledoux 14f3085776 [MERGE] forward port of branch saas-3 up to 77500e5 2014-10-02 15:36:58 +02:00
Denis Ledoux 77500e54ec [MERGE] forward port of branch 7.0 up to eb9113c 2014-10-02 15:34:02 +02:00
Christophe Simonis e883193246 [FIX] account: recordsets are not sortable in-place 2014-10-01 17:51:01 +02:00
Christophe Simonis 388f1a1d7e [MERGE] forward port of branch saas-3 up to 3d4b82c 2014-10-01 16:46:03 +02:00
Ravi Gohil e30a5a11a5 [FIX] account: avoid closing fiscalyear with unpost entries
As when closing fiscal periods, forbid to close a fiscal year with unposted entries.
Fixes #1194, opw 610784
2014-10-01 16:25:22 +02:00
Humberto Arocha 6d3855e9dc [FIX] account: remove orphan analytic lines
If the analytic account is not present on an entry, still removes the Analytic Journal Items linked to it.
Fixes #1194, opw 610784
2014-10-01 16:18:47 +02:00
qdp-odoo 19da7b708c [FIX] account: fixed broken constraint (due to the passage to the new API) to ensure the same partner is present on journal items we try to reconcile partially. Fixes #2527 2014-10-01 16:05:53 +02:00
Denis Ledoux b235c9d1fb [MERGE] forward port of branch 7.0 up to 419c439 2014-09-30 15:46:11 +02:00
Denis Ledoux 419c439776 [FIX] account: sort partner ledger report by partner ref, name 2014-09-30 15:45:22 +02:00
Denis Ledoux 96dd8bf507 [FIX] account: default product taxes on product.template
As product.template is now most commonly used than product.product
2014-09-29 17:56:39 +02:00
Denis Ledoux 39bb45a8ea [MERGE] forward port of branch 7.0 up to 333852e 2014-09-26 21:32:40 +02:00
Martin Trigaux ceff8ef899 [IMP] account: use float_compare for taxes
Avoiding some python float representation errors
2014-09-26 16:57:28 +02:00
Fekete Mihai 57869b9001 Modify General Ledger report to be printed on landscape if set in wizard. 2014-09-26 09:54:31 +03:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Commandant Custo 7c70660404 [FIX] account: typo in conversion to new API 2014-09-23 14:26:47 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
qdp-odoo 3f4ff3e725 Merge pull request #2352 from odoo-dev/8.0-imp-bank-statement-reconciliation-widget-ama
fixes and improvements in the new bank statement reconciliation widget.
2014-09-17 17:37:14 +02:00
Arthur Maniet 0a524e9e53 [FIX] account: bank statement reconciliation: when creating a new move line to reconcile an existing one, use the existing move line's partner or, if there's none, the statement line's partner 2014-09-17 17:12:50 +02:00
qdp-odoo 625f858e07 [REF] account: minor change made during the code review 2014-09-17 16:13:45 +02:00
Arthur Maniet 8574f61ab7 [IMP] account: bank statement reconciliation: allow to filter on move line name 2014-09-17 15:02:02 +02:00
Stéphane Bidoul ae742db21d [IMP] broaden scope of search of bank statement reconciliation candidates
Looking for accounts with reconcile=True is enough.
Restricting on payable/receivable account types narrows the search
to much and makes it difficult to implement transfer account holding
the payment while they are in transit at the bank.
2014-09-17 14:24:24 +02:00
qdp-odoo c21f26ac35 [FIX] account, bank reconciliation widget: fixed the method that manage the pager in case of partial reconciliations 2014-09-17 14:18:52 +02:00
Arthur Maniet 0a7fd6a943 [FIX] account: bank statement reconciliation: when fetching moves lines for reconciliation, if lines from the same partial reconciliation are filtered out, keep fetching to returne the correct number of lines 2014-09-17 13:49:39 +02:00
Arthur Maniet 1127024eb5 [FIX] account: bank statement reconciliation widget: wait for all reconciliations to be displayed before to load matches, so moves lines in reconciliation proposition are correctly excluded 2014-09-17 13:16:46 +02:00
Arthur Maniet de58cf4950 [FIX] account: bank statement reconciliation widget: when filtering move lines by string, for a statement line with no partner, do a or on varchar fields, not a and 2014-09-17 13:00:21 +02:00
Arthur Maniet f968ceddd7 [FIX] account: bank statement reconciliation widget: do not set partner of a statement line with no partner when selecting a move line 2014-09-17 12:26:19 +02:00
Arthur Maniet cfe558c41d [FIX] account: bank statement reconciliation: allow to match move lines when no partner 2014-09-17 12:10:01 +02:00
qdp-odoo 3e47eca083 [REF] account: minor change made during code review 2014-09-17 11:18:16 +02:00
qdp-odoo c8c9d4fdf6 [FIX] account: wrong conversion way to foreign currency in the bank statement reconciliation widget 2014-09-17 11:02:47 +02:00
Olivier Dony 44a2b10efb [FIX] account: invoice view - useless trailing spaces in labels 2014-09-16 19:23:25 +02:00
Arthur Maniet 52e1b45cda [IMP] account: bank statement reconciliation widget: show bank statement line name AND ref 2014-09-16 17:17:11 +02:00
Arthur Maniet 197ce282bd [IMP] account: bank statement reconciliation widget: ctrl-enter makes only 1 RPC call 2014-09-16 17:15:54 +02:00
Arthur Maniet c6ca31dd9f [IMP] account: bank statement reconciliation: correctly find reconciliation proposition based on amount match 2014-09-16 17:03:04 +02:00
Arthur Maniet 9f481d6c64 [FIX] account: account_invoice's onchange_partner_id uses the first partner bank account if several are defined. Merge of #2280 2014-09-16 13:37:51 +02:00
Arthur Maniet 0952da422d [IMP] account: bank statement reconciliation: better animations 2014-09-16 12:46:26 +02:00
Arthur Maniet 8f46da455e [IMP] account: bank statement reconciliation: for a partially reconciled move line, display total and residual amount 2014-09-16 12:23:13 +02:00
Arthur Maniet 75b37a7f42 [IMP] account: bank statement reconciliation widget: display partner name found in statement import in change partner field ; do not set the partner to false before changing the partner 2014-09-16 11:01:06 +02:00
Denis Ledoux c6fbfe7fa0 [FIX] account: missing context assignation in self 2014-09-15 12:26:07 +02:00
Arthur Maniet b2385d6b9e [FIX]: account: reconciliation: handling negative amount_residual 2014-09-12 15:33:48 +02:00
Arthur Maniet f393171bc3 [FIX] account: bank statement reconciliation widget: display only one line for a partial reconciliation 2014-09-12 15:28:50 +02:00
Arthur Maniet b7361b04ee [FIX] account: reconciliation: allow to reconcile when no_partner 2014-09-11 17:02:47 +02:00
Arthur Maniet 0171d94939 [FIX] account: bank statement reconciliation widget: refactor fix : is_single_statement -> single_statement 2014-09-11 16:34:05 +02:00
Arthur Maniet b146263a77 [IMP] account: bank statement reconciliation widget: better animations 2014-09-11 13:08:59 +02:00
Arthur Maniet 80c62b395f [IMP] account: bank statement reconciliation widget: it is now possible, when reconciliation is done, to close all the statements reconciled and to go back to statements list view 2014-09-11 12:46:56 +02:00
Arthur Maniet 6af1d35ba6 [FIX] account: bank statement reconciliation widget: correctly refresh partial reconciliation sign 2014-09-11 09:27:10 +02:00
Arthur Maniet f879548340 [FIX] account: bank statement reconciliation widget: cleaning (ID has nothing to do in the tooltip showing more infos about a move line) 2014-09-10 17:17:35 +02:00
Arthur Maniet 1cd330f7ef [FIX] account: reconciliation: taking into account that amount_residual can (very infrequently) be < 0 2014-09-10 17:07:07 +02:00
Arthur Maniet e49eeded39 [FIX] account: reconciliation widget: when updating matches (move lines), exclude those which are reconciled with a selected move line as well 2014-09-10 16:59:19 +02:00