Commit Graph
1243 Commits
Author SHA1 Message Date
Christophe Simonis 93e6316029 [MERGE] forward port of branch saas-11 up to 7153077 2016-06-28 18:05:25 +02:00
Christophe Simonis 5166fbd21b [MERGE] forward port of branch saas-10 up to 6d51bce 2016-06-28 15:12:06 +02:00
Nicolas Martinelli 6d51bce057 [FIX] account: money in/out in PoS
It is not possible to take money out or put money in for a PoS since it
leads to a traceback.

The decorator `@api.one` returns a list, which is something we don't
want when the method returns a dictionary.

opw-681417
2016-06-28 14:17:39 +02:00
Christophe Simonis 7306e888a6 [MERGE] forward port of branch saas-11 up to ac50230 2016-06-08 12:28:16 +02:00
Christophe Simonis ac5023060c [MERGE] forward port of branch saas-10 up to 2f948c7 2016-06-08 12:19:23 +02:00
qdp-odoo 9699dac818 [FIX] account: fixed old references to account_extra_report module forgotten during the merge into account 2016-06-06 13:06:27 +02:00
Christophe Simonis e54fb3eb22 [MERGE] forward port of branch saas-9 up to 30864b6 2016-06-03 12:33:58 +02:00
Christophe Simonis 30864b6d00 [MERGE] forward port of branch 9.0 up to 5419485 2016-06-03 11:29:49 +02:00
Ravi Patel 5ed14ce9b0 [IMP] account: The new draft invoice has the sale order as the source document.
Context:
Source document on invoice created through a credit note with the modify option

Current issue:
create an invoice from a sale order,
validate it,
Create a refund with the modify option
The first invoice is reconciled with the refund
The new draft invoice doesn't have a source document and can't be reached from the SO

Expect result:
The new draft invoice should have the sale order as the source document
2016-06-03 10:56:08 +02:00
Christophe Simonis a36f6dbc29 [MERGE] forward port of branch 9.0 up to 928bc26 2016-06-02 15:12:47 +02:00
qdp-odoo 5f9ca1b89b [FIX] account: manual reconciliation through the wizard on journal items were giving weird results. OPW 678153.
Symptoms: running a full reconciliation manually with that wizard was resulting in not fully reconciled aml altough the total in company currency and in secondary currency were perfectly matched. Full use case described in added test test_manual_reconcile_wizard_opw678153.
Problems:
 - The system was processing by pair of aml and creating exchange rate entry/full reconciliation as soon as possible whereas in that case it needs to be postponed at the end of the manual reconciliation otherwise some entries would be excluded from processing.
 - Another problem was that because of this batch processing, we ended with unconsistent amount_residual_currency values for some entries that were fully reconciled in company currency but not in foreign currency (also negative amount_residual_currency for a debit line which should never happens)... To solve that, we now process the manual full reconciliation in two steps: only in company currency first, then in secondary currency if needed. A small adaptation in the payment widget of invoices was needed for that too.
2016-05-27 16:52:51 +02:00
Christophe Simonis facb664483 Revert "[FIX] account: fixed old references to account_extra_report module forgotten during the merge into account"
This reverts commit 4f00202fda.
2016-05-24 12:51:14 +02:00
qdp-odoo 4f00202fda [FIX] account: fixed old references to account_extra_report module forgotten during the merge into account 2016-05-18 11:45:55 +02:00
Christophe Simonis 1e26ef6579 [MERGE] forward port of branch saas-11 up to 91c9284 2016-05-13 16:36:04 +02:00
Christophe Simonis 91c9284951 [MERGE] forward port of branch saas-10 up to 5aa0bae 2016-05-13 16:33:51 +02:00
Christophe Simonis c4bba868f0 [MERGE] forward port of branch saas-9 up to 087729f 2016-05-13 15:58:06 +02:00
Christophe Simonis 7f2a9e77b6 [MERGE] forward port of branch 9.0 up to dcab356 2016-05-13 14:08:51 +02:00
qdp-odoo 0d42c6e604 [MERGE] account: merge of account_tax_adjustment module as a core feature of account module. Added a boolean 'tax adjustment' on account.tax to define taxes that can be used in the wizard instead of taxes with fixed amount of 0 2016-05-12 17:18:01 +02:00
Nicolas Martinelli d8f8d345b7 [FIX] account: print Trial Balance
This applies commits 313bc91cf5 and
2ad4bd4846 to Trial Balance report.

opw-676061
2016-05-11 18:42:34 +02:00
Nicolas Martinelli 2ad4bd4846 [FIX] account: print multiple GL
When several accounts are selected to print their GL, the GL of only one
is printed. This is due to two issues:
- 'active_id' is retrieved instead of 'active_ids'
- the method `get_action` is called with the wrong records. `self`
  refers to the wizard, not to the accounts selected.

opw-676061
2016-05-11 10:11:24 +02:00
Christophe Simonis 0fbc92e0c4 [MERGE] forward port of branch saas-10 up to 1e86774 2016-05-04 17:09:51 +02:00
Christophe Simonis 1e86774207 [MERGE] forward port of branch saas-9 up to 89873cb 2016-05-04 15:42:26 +02:00
Christophe Simonis da60ca91cc [MERGE] forward port of branch 9.0 up to e248882 2016-04-25 17:29:34 +02:00
Nicolas Martinelli e680f29560 [FIX] account, sale: modify invoice
When a user validates an invoice linked to a SO, he might want to modify
it afterwards thanks to the 'Modify' option in the refund wizard. This
will create a refund, reconcile and create a draft invoice.

The issue is that the draft invoice is not linked with the SO.

The fix is to link, in this specific case only, the draft invoice to the
SO. At the same time, we have to make sure to:
- unlink the first invoice (to prevent counting the quantity as invoiced
  in the SO)
- keep track of the first invoice/refund in the invoice list of the SO

opw-673446
2016-04-25 14:11:47 +02:00
Christophe Simonis 79976bd779 [MERGE] forward port of branch saas-10 up to 6e95659 2016-04-01 19:10:34 +02:00
Christophe Simonis 6e95659a08 [MERGE] forward port of branch saas-9 up to f4d1adc 2016-04-01 18:51:55 +02:00
Christophe Simonis 6c8141a1df [MERGE] forward port of branch saas-10 up to 2483327 2016-04-01 16:15:35 +02:00
Denis Ledoux 2d2028a66c [MERGE] forward port of branch 9.0 up to b44cb82 2016-03-31 17:57:22 +02:00
Goffin Simon b44cb82c1b [FIX] account, stock: date invoice for a refund
When a a refund is created from an open invoice and a different
date than today is selected as refund date, the invoice date of
this refund must be the selected date.

opw:673369
2016-03-31 14:18:02 +02:00
Christophe Simonis ddb0fb2739 [MERGE] forward port of branch saas-9 up to 59d3f63 2016-03-24 16:53:45 +01:00
Kinjal Mehta a57592abe4 [IMP] analytic: Replaced account_type field by active field
Currently there is a selection field 'account_type' on the
account.analytic.account model with 2 values : Active or Archived

Let's use an active field instead and add a Archive stat button on the
form. That way, we can remove all the domain ('account_type','=','normal')
which are implicit with the generic active field behavior
2016-03-23 16:35:34 +01:00
Christophe Simonis f2855c6c42 [MERGE] forward port of branch 9.0 up to 25c45a61 2016-02-19 18:10:57 +01:00
qdp-odoo 8dd9b25a62 [MOV] account: moving reports from account_extra_reports to account 2016-02-19 17:37:46 +01:00
qdp-odoo 3137ea1302 [FIX] account, aged partner balance: the period length was actually computing on (period_length+1) 2016-02-19 17:14:54 +01:00
Martin Trigaux a7f5a89407 [FIX] typo or outdated info 2016-02-15 17:16:10 +01:00
Cedric Snauwaert 47359af3af [FIX] account: when doing a reconciliation from journal items, amount was rounded with incorrect precision 2015-12-16 14:44:03 +01:00
qdp-odoo f6d6762dc7 [FIX] analytic: workaround to re-enable the feature to close an analytic account that has been unfortunately removed by mistake in commit 2a8c077.
It is using an already existing field that wasn't used anymore ('account_type') but as a lot of domains on analytic accounts were
 - wrong (still using old fields state and type that have been removed as well in the same commit),
 - or defined directly in the views
so, an update of some modules may be needed in order to avoid further problems.
2015-12-11 14:57:46 +01:00
Denis Ledoux 56ef99d050 [MERGE] forward port of branch saas-6 up to 105b1c0014 2015-10-23 18:31:55 +02:00
Martin Trigaux d6b3924247 [I18N] export source terms
Hopefully one last time and not one more time...
2015-10-09 13:56:03 +02:00
Denis Ledoux 0b678c63a9 [MERGE] forward port of branch 8.0 up to 34ce3e3 2015-10-01 16:47:28 +02:00
Stéphane Bidoul e11490c3a1 [FIX] account: Analytic account domain in reconcile with writeoff wizard
The domain for the analytic account in the `reconcile with writeoff` wizard
should be based on the `type` field, which must be `view`,
not on the `parent_id` field, as it's done everywhere else
(e.g. in the supplier invoice form).

`[('parent_id', '!=', False)]`
and
`[('type', '!=', 'view')]`
is almost the same, but the second domain is more appropriate.

Closes #4562
2015-09-30 16:22:05 +02:00
Martin Trigaux 3498f2287a [IMP] account: better label 2015-09-28 17:24:29 +02:00
Fabien Pinckaers e49d0cd74d [IMP] Typo 2015-09-26 11:34:18 -07:00
Christophe Simonis 57168a9e90 [MERGE] forward port of branch saas-6 up to a669433 2015-09-23 14:34:26 +02:00
Christophe Simonis 71d03fa5b2 [FIX] glitches introduced during last forward-port (as always) 2015-09-22 16:08:49 +02:00
Joren Van Onder f5ad251686 [FIX] account: _compute_values_for_statement_line is not a valid compute
This allows people to use point of sale > sessions > put money in again.
2015-09-16 13:01:52 +02:00
Christophe Simonis 88eaa7dad8 [MERGE] forward port of branch 8.0 up to 35233db 2015-09-11 17:28:07 +02:00
Foram Katharotiya 453adf434f [IMP] account: put back old PDF reports for people using only the community version 2015-09-10 17:52:51 +02:00
Goffin Simon ba74cb9144 [FIX] account: Cash registers
In Accounting > Bank and Cash > Cash Registers, when clicking in "More" button
on 'Put Money In' or 'Take Money out', the date used for the bank statement line
created must be the date of the bank stattement(same behaviour then when clicking
on "Add item" in edit mode). It's forbidden to put/take money in/out for a bank
statement which is not open.

opw:647631
2015-09-08 13:16:02 +02:00
Fabien Pinckaers af0ceb7909 [IMP] minor view improvement: refund invoice radio 2015-09-05 20:30:14 +02:00