Commit Graph

9885 Commits

Author SHA1 Message Date
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
Arthur Maniet 90cc05f8c3 [FIX] account: bank statement reconciliation widget: firefox compatibility 2014-09-10 15:47:08 +02:00
Arthur Maniet b281b83cd0 [FIX] account: reconciliation: using move_line.name instead of move_line.move_id.name when is defined 2014-09-10 15:02:33 +02:00
Arthur Maniet 24cf401f63 [IMP] account: bank reconciliation widget: making it harder to remove a statement line's partner ; improved change statement name usability 2014-09-10 15:01:13 +02:00
Arthur Maniet 9277cc9203 [IMP]: account: bank statement reconciliation widget: statement name can be changed from widget 2014-09-10 14:07:27 +02:00
Arthur Maniet 242fbc2a20 [FIX] account: bank statement reconciliation widget: create move line + partial reconcile now possible 2014-09-10 11:41:00 +02:00
Raphael Collet ecd8b5222b [FIX] account.invoice.line: move context to last position in onchange methods
The methods product_id_change() and uos_id_change() have been converted to the
new api, and now use the decorator @multi.  When invoked with the old api, by
convention the methods will take the last argument as the context.  But this
will not work properly for those methods, as the context is passed in another
position.  In order to avoid an argument swap in the api wrapper, we moved the
context to its expected position.

Fixes #1943
2014-09-09 11:50:10 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
qdp-odoo f4e350ca36 [FIX] account: several fixes on the new bank statement reconciliation widget 2014-09-04 11:32:16 +02:00
Denis Ledoux e833066b63 [FIX] account: invoiced button values must be calculated as the user
Otherwise, if done with the superuser:
 - The multi-company rules won't work, the user will have the amount of all invoices, cross-companies
 - The amount currency will always be the currency of the superuser
2014-09-04 11:15:13 +02:00
qdp-odoo 98801be77f [FIX] account, bank statement reconciliation: fixed use cases involving transactions made in a different currency than the company AND the statement ones 2014-09-02 11:37:57 +02:00
qdp-odoo 2a1f447d06 [FIX] account, bank statement reconciliation: payment and invoice in foreign currency use case fixed 2014-09-02 10:42:28 +02:00
qdp-odoo cbc52f80eb [FIX] account: fixes of bank statement reconciliation widget. Add of a partner_name field to hold the name of the counterparty in case it is not detected instead of merging it to the communication. Structured communication goes in the same communication field, while reference field holds the reference of the transaction (for whatever that means)" 2014-08-29 19:13:41 +02:00
Christophe Simonis 1d2fe3330c [MERGE] forward port of branch saas-5 up to 24c25f5 2014-08-29 11:36:35 +02:00
Christophe Simonis 010dd70894 [MERGE] forward port of branch saas-3 up to c914893 2014-08-28 19:25:08 +02:00
Christophe Simonis 4e9f9426c6 [FIX] account: use method has_group() instead of browsing the group directly. 2014-08-28 17:21:54 +02:00
Christophe Simonis 8046b7367d [MERGE] forward port of branch saas-5 up to 7e117b1 2014-08-28 16:51:11 +02:00
Christophe Simonis 7e117b18a0 [MERGE] forward port of branch saas-3 up to ada9724 2014-08-28 16:21:27 +02:00
Christophe Simonis ada9724655 [MERGE] forward port of branch 7.0 up to 3509e15 2014-08-28 16:12:55 +02:00
qdp-odoo 6244ec55c9 [FIX] account: several fixes in bank statement reconciliation related to multi-currencies use cases where the statement is a foreign currency but receive a payment in the company currency 2014-08-28 11:09:48 +02:00
Ravi Gohil df5633dcab [FIX] account: avoid date and cache issues
Explicitely refresh invoice browse_record(...) in order to have correct 'date' in account.move.
Use context_today() date instead of time.strftime() for date_invoice. (opw 611210)
2014-08-27 15:03:47 +02:00
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +02:00
Denis Ledoux 480f73c1ef [IMP] account: Invoice analysis, filter year by default
For companies having a lot of invoice, not applying the year filter leads to a long reponse time
2014-08-26 18:28:56 +02:00
Martin Trigaux 30469bd69b [FIX] account: name of bank statement is not required
At the confirmation of a bank statement, the name may not be set (e.g. generated by point of sale). This field is not requred so make a fallack on the statement line (which is required).
2014-08-26 16:33:58 +02:00
qdc f57787e07e [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
Christophe Simonis 5a5f811d23 [REVERT] commit 5e5c73e
Branch 8.0 is a **stable** branch. This mean no database schema
changes.
2014-08-22 13:59:22 +02:00
qdc 5e5c73e7ba [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-22 09:49:09 +02:00
Christophe Simonis 819e3005c2 [FIX] account: _get_analytic_lines() must work in @mutli beside using only self[0]
(partially revert previous commit)
2014-08-21 21:22:12 +02:00
Christophe Simonis 2649d4ba28 [FIX] account: correct some v8 decorators 2014-08-21 18:54:44 +02:00
Fabien Pinckaers 9dc9169f33 [IMP] readable code 2014-08-21 11:02:18 +02:00
Fabien Pinckaers 9c175fe730 [FIX] difference POS / Cash 2014-08-21 10:54:38 +02:00
Fabien Pinckaers 98bc5adc6e [FIX] recursion 2014-08-21 10:43:49 +02:00
Fabien Pinckaers d14297ac53 [FIX] better responsibilities on objects POS 2014-08-21 10:38:21 +02:00
Christophe Simonis 5dff035878 [MERGE] forward port of branch saas-5 up to 39bee35 2014-08-20 20:33:17 +02:00
Christophe Simonis c3131317d7 [MERGE] forward port of branch saas-4 up to ddef2dd 2014-08-20 17:57:22 +02:00
Christophe Simonis ddef2dd10a [MERGE] forward port of branch saas-3 up to 8f13e83 2014-08-20 17:51:20 +02:00
Christophe Simonis 8f13e8320e [MERGE] forward port of branch 7.0 up to d0a0b7d 2014-08-20 17:45:05 +02:00
Raphael Collet 052f9ed5d7 [FIX] models: improve rationale for the management of flag 'recompute' in context
When the context contains 'recompute': False, the recomputation was not even
prepared. Now both create() and write() prepare the recomputation by invoking
method modified(). The flag only controls whether method recompute() is invoked.
In addintion, the former flag 'no_store_function' was converted to the flag
'recompute', so that both create() and write() use the same flag.

Fixes #1456
2014-08-19 11:50:42 +02:00
Olivier Dony 50ef63881a [I18N] Update 8.0 translation with latest source code 2014-08-14 17:01:54 +02:00
Olivier Dony 971ffa3db1 [FIX] account: reconcile: no useless revalidation
Avoid revalidating the complete account moves
that contain the lines being reconciled.
The reconciliation does not change the validity
of those moves anyway.
This represents a very important speed up of
reconciliation when moves with several hundred
lines are involved.
2014-08-14 16:51:37 +02:00
Olivier Dony 85d2b45aaa [I18N] Update 7.0 translations with latest changes on Launchpad
See also https://github.com/odoo/odoo/wiki/GitHub-Transition#translations
2014-08-14 03:38:58 +02:00
Olivier Dony 96c36e895c [I18N] Update all 7.0 translation templates with latest terms and annotations
Total new terms: 168
Total deleted terms: 95
Total identical terms: 16329
(Some modules skipped, typically all l10n_* modules)
2014-08-14 02:24:24 +02:00
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Olivier Dony 2a94d1d811 [MERGE] Forward-port saas-4 up to 2694ed1 2014-08-13 17:34:27 +02:00
Olivier Dony 2694ed1472 [MERGE] Forward-port saas-3 up to b9275da 2014-08-13 17:33:12 +02:00
Olivier Dony b9275da8a5 [MERGE] Forward-port 7.0 up to 23cffab 2014-08-13 17:30:06 +02:00
Olivier Dony 6b8af73179 [FIX] account.invoice: payments can never be shown to portal users, but residual might be needed
The residual amount is typically needed to render the
online payment forms (payment acquirers).

Payments on the other hand rely on account.move.line,
something that portal users should never be allowed to read.
Removing the field from the view by setting a model-level
group permission ensures they will not see an error.
2014-08-13 12:38:38 +02:00
Denis Ledoux fe83c11301 [MERGE] forward port of branch saas-4 up to b49755b
The forward port of the fix 3609ba10f2 will be done separately, as the mrp scheduler has been completely refactored from saas-5.

Conflicts:
	addons/l10n_be_coda/wizard/account_coda_import.py
	addons/point_of_sale/static/src/xml/pos.xml
	addons/procurement/schedulers.py
2014-08-13 10:45:36 +02:00
Denis Ledoux b49755b545 [MERGE] forward port of branch saas-3 up to 591326c 2014-08-13 10:29:14 +02:00
Denis Ledoux 8a7728790b [MERGE] forward port of branch 7.0 up to 60ab6f1 2014-08-12 17:49:12 +02:00
Ruchir Shukla b2f1c764cd [FIX] account_anglo_saxon: avoid duplication of price difference lines
When computing the price difference lines, in move_line_get of account_anglo_saxon, we loop on the result of super call for each lines (n * n times) to compute the price difference.
The product_id was used to match the returned line and the original invoice line. This was wrong as we could get several lines with the same product_id (and then get n * n price difference lines).
This patch adds the line id to the result of move_line_get (from account) so that account_anglo_saxon can filter more efficiently and only get one price difference per invoice line.
Fixes #704
2014-08-12 17:30:49 +02:00
Josse Colpaert 2fe5bb8df7 [IMP] No attrs for taxes and income/expense accounts 2014-08-12 13:37:26 +02:00
Josse Colpaert 7191bbfb24 [IMP] is_product_variant not needed in most views + no delete in stock valuation history 2014-08-12 13:37:26 +02:00
Fabien Pinckaers ef944dcd55 [IMP] Maifest for Github README.md on main apps 2014-08-12 11:33:15 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
qdp-odoo 5e20e7a302 [FIX] account, point_of_sale: fixed the feature to put money in or take money out of a cash register. Fix #1416 2014-08-11 13:18:17 +02:00
Denis Ledoux 7c647ec876 [MERGE] forward port of branch saas-4 up to 0a1e4a0 2014-08-08 17:27:29 +02:00
Denis Ledoux 0a1e4a05b2 [MERGE] forward port of branch saas-3 up to 81a902a 2014-08-08 17:06:39 +02:00
Denis Ledoux 02bf0fd9c8 [MERGE] forward port of branch 7.0 up to a86dfb8 2014-08-07 18:20:13 +02:00
fka-odoo ed79bc203f [FIX] account: child_of operator in invoice analysis report
When displaying invoice analysis of a company, include the invoices of the members of this company (opw 611084)
2014-08-07 10:24:36 +02:00
Denis Ledoux 5ca6b09375 [FIX] account: payment_ids should list payments of same account than the invoice account 2014-08-06 19:00:01 +02:00
Humberto Arocha 629e3709d0 [FIX] Account: Consolidation Account should not be carried to next fiscalyear 2014-08-06 18:01:24 +02:00
Denis Ledoux 978fd47261 [MERGE] forward port of branch 7.0 up to 095be21 2014-08-06 13:06:20 +02:00
cod-odoo 2d54afef9e [FIX] account: prevent crash onchange company_id
(rebase of #1534)
2014-08-05 15:09:32 +02:00
Anael Closson f09e11f55b [FIX] sale: quote character in company name is converted to html entity
Avoid to get company names such as "L'abc" to be transformed as "L&#39;abc" opw 607221
2014-08-05 11:15:28 +02:00
Raphael Collet c0997d332a [FIX] account: fix unexpected invalidation of field account_invoice.reconciled
Problem: the field account_invoice.reconciled was invalidated by a workflow
signal sent from the compute method of the field. The purpose of the signal was
to re-open the invoice when the account move lines were no longer reconciled,
for instance after cancelling a reconciliation.

Solution: modify the workflow such that it makes an automatic transition from
'paid' to 're-open' when the condition 'not reconciled' is met. This works
because the field 'reconciled' is stored, and each recomputation forces a
reevaluation the workflow. The signal to re-open the invoice is thus no longer
necessary.
2014-08-05 10:01:07 +02:00
Martin Trigaux dbca34511e [FIX] account: method should return browse records, not set 2014-08-05 09:30:14 +02:00
Christophe Simonis e29a7b7b4c [FIX] account: correct v8 version of map_tax() method of account.fiscal.postion 2014-08-04 19:41:43 +02:00
Olivier Dony d706adba11 [MERGE] Forward-port saas-5 up to 37ba23d 2014-08-04 01:44:30 +02:00
Christophe Simonis b4cbef4333 [FIX] account: res.partner: limit access to "total_invoiced" field to group "group_account_invoice". Use SUPERUSER_ID to access data 2014-08-01 17:29:20 +02:00
Olivier Dony 494ecc620f [MERGE] Foward-port saas-5 up to ee4df1e 2014-08-01 14:24:07 +02:00
Olivier Dony ee4df1e397 [MERGE] Forward-port saas-4 up to 8b15482 2014-08-01 13:06:49 +02:00
Olivier Dony 8b15482e00 [MERGE] Forward-port saas-3 up to e79a367 2014-08-01 12:54:30 +02:00
Denis Ledoux a9bce700dc [FIX] account: avoid to propagate context in send by email button
There is no reason to propagate the context in those buttons.

Besides, it leads to issues concerning the email template, rendering the wrong res_id because the active_id was wrongly propagated
2014-08-01 10:05:56 +02:00
Denis Ledoux 4eba90561f [MERGE] forward port of branch 7.0 up to 7c5bf67a5f 2014-07-31 18:17:48 +02:00
Denis Ledoux 7c5bf67a5f [FIX] account: unit arg of on_change_unit_amount can be False 2014-07-31 18:15:41 +02:00
Denis Ledoux 4705802a6f [MERGE] forward port of branch 7.0 up to cd31cbf556 2014-07-31 18:06:57 +02:00
Denis Ledoux cd31cbf556 [FIX] account: on_change_unit_amount do not reset uom to default 2014-07-31 18:05:17 +02:00
Denis Ledoux 60d038c350 [FIX] account: _get_analytic_lines needs the date_invoice
During the conversion of account_invoice.py to the new API, the date_invoice written on the invoice has been moved in the end of the action_move_create method.

But, the method _get_analytic_lines needs it sooner.
2014-07-31 14:16:52 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00