Commit Graph
103345 Commits
Author SHA1 Message Date
Denis Ledoux e1b1f24516 [FIX] payment, website_sale: back port of f89e8f9 2016-03-23 15:38:19 +01:00
Nicolas Martinelli 94ed4ce8c8 [FIX] account: manual creation of journal item
The original issue is the following:
- Go to the journal item creation
- Choose a partner
- Add a line => the partner on the journal item is removed

This is because `partner_id` on the account move is a related to
`partner_id` on the account move lines. This is likely to cause errors
during the manual encoding of a journal item, since the relation will
link the partner of the account move to the partner of the first account
move line only.

opw-670661
2016-03-23 15:36:06 +01:00
sha-odoo b253c3323e [IMP] l10n_nl: Added pre and post migration file 2016-03-23 14:54:25 +01:00
sha-odoo 1c92a88003 [IMP] l10n_nl: Created tags and Assign to Taxes 2016-03-23 14:54:11 +01:00
rsi-odoo 437bc69c84 [MIG] website_hr: code migration to new api. 2016-03-23 14:53:25 +01:00
rsi-odoo 4c96dd813e [MOV] website_hr: file renaming according to new api 2016-03-23 14:53:18 +01:00
Yannick Tivisse efe56fb01c [IMP] crm: Rename 'Closed' into 'Closed Date'
This is a datetime field, not a boolean
2016-03-23 14:24:57 +01:00
Gaurav Panchal c1b6b6b979 [REF] sale_crm : Migrate into new api 2016-03-23 14:02:22 +01:00
Gaurav Panchal 4540e868c3 [REF] sale_crm : Split a file by models 2016-03-23 14:02:22 +01:00
Gaurav Panchal 1622f73f97 [REF] sale_crm : Reorganized module file structure 2016-03-23 14:02:22 +01:00
Vipul Bhatt e396f9dc9a [IMP] project: Demo channel 'Projects & Tasks' following all demo projects
A project can be followed by a channel. This channel will display all the
notifications on the projects followed by it.
2016-03-23 13:45:52 +01:00
rmu-odoo 319353dea4 [IMP] account,account_asset:few usability changes
1. Add an accounting configuration option
   "Assets management & Revenue recognition"

2. Deferred revenue account not set by default in product
    - Create new Deferred Revenue Type
    - Create new product and assign this "Deferred Revenue Type"
      you can see in income account there is nothing set. Actually
      when we select revenue type then in income account system
      have to set "Deferred Revenue Account" which we set on revenue type.
      Otherwise, if we create invoice for this product then system will
      by default take the income account from product category.

3. Change word Depreciation to Revenue :
2016-03-23 13:20:12 +01:00
Christophe Matthieu bad14a54d3 [IMP] gamification: add sql index on 'gamification.badge.user' to improve speed of 'gamification.badge' function fields 2016-03-23 12:53:16 +01:00
Raphael Collet 2d254e294b [FIX] ir_actions: fix unbound variable obj in method _get_eval_context 2016-03-23 12:28:05 +01:00
Martin Trigaux f42a00b9b1 [MERGE] website_sale_delivery: new api migration
Closes #10939
2016-03-23 12:14:24 +01:00
Christophe Simonis 42e3ed9ed3 [MERGE] forward port of branch saas-6 up to 0a1de99 2016-03-23 12:11:39 +01:00
Martin Trigaux 42b44daa8f [IMP] website_sale_delivery: return recordset instead of ids
Convert the method _get_delivery_methods to return recordset instead of ids.
This avoids rebrowsing records already computed.
2016-03-23 12:05:19 +01:00
Ravi Gadhia 4e49df4eb0 [MIG] website_sale_delivery: new api migration 2016-03-23 12:05:08 +01:00
Martin Trigaux 67d95df511 [FIX] website_sale: correct triggers for recomputation
Was copied from the one above while we only need the is_delivery field
2016-03-23 12:04:29 +01:00
Christophe Simonis 0a1de99731 [MERGE] forward port of branch 8.0 up to d39d191 2016-03-23 11:44:28 +01:00
Virbhadrasinh Gohil 3855ab7d85 [ADD] stock_landed_costs: Add test case for incoming shipment.
The current test in landed costs puts landed costs on outgoing pickings.
It is a bit weird as they are put on incoming shipments normally.  It checks
if the lines of the landed costs have been calculated well, but not if the
amounts/accounts/... on the account move and account move lines have been
calculated correctly.  It should also check the entries created when some
part is already out and when we create negative landed costs.  (in order to
be able to revert them)

Scenario :
- Two new products without stock as is done in current test in real-time
  valuation,...
- Both products are received
- One product goes out (or a part of the quantity)
- A landed cost is created for the incoming picking
- Check that the journal items created, have the correct amounts and that there
  is a part that went out and is put on the out account
- Create a negative landed cost as the first landed cost was a little bit too high
- Check again that the journal items created have the correct amounts
2016-03-23 11:27:55 +01:00
Christophe Matthieu 2abc2ceee0 [IMP] gamification: split multi function field to avoid massive prefetching of user records
Issue: website_forum takes 15 to 30 seconds to load the user page
2016-03-23 11:22:51 +01:00
Christophe Matthieu 00f01b8b1d [IMP] website_forum: remove le list of the user per badge
(6 minutes to load all avatar for some page, no sense to display all users)
2016-03-23 11:21:57 +01:00
Christophe Matthieu f1514bf01c [IMP] gamification: split multi function field to avoid massive prefetching of user records
Issue: website_forum takes 15 to 30 seconds to load the user page
2016-03-23 11:21:57 +01:00
rmu-odoo f1e4402b6a [IMP] hr_holiday: show absent employee in dashboard 2016-03-23 10:55:37 +01:00
rmu-odoo 1936367fd2 [IMP] l10n_et: Added post migration file 2016-03-23 10:55:23 +01:00
rmu-odoo a9c93119ae [IMP] l10n_et: Create newly tag assign to taxes 2016-03-23 10:55:10 +01:00
Rohan Patel c01f5758b0 [IMP] board: Display 'My Dashboard' instead of 'New' in breadcrumb 2016-03-23 10:09:13 +01:00
Rohan Patel dbb2642f44 [REM] board: Remove the board.create model
It is no longer used in master.
2016-03-23 10:09:13 +01:00
qdp-odoo d8137d35b7 [FIX] [tldr] account: multi-currencies fixes.
[FIX] account: fixed behavior in order to create the exchange rate difference entry at the full reconciliation only.

 This is needed in order to support the use case where an invoice in foreign currency is paid on a bank account in company currency,
 with the user encoding manually the difference due to the currency fluctuation (writeoff in the bank statement reconciliation interface): before
 this patch, Odoo was doing automatically the same, what results in a duplicated currency difference booking). ticket ID: 670876.
 A test has also been added in account/tests/test_reconcilication.py (test_statement_euro_invoice_usd_transaction_euro_full) to ensure that use case
 is now fixed.

[FIX] account_full_reconcile: a reconciliation is full as soon as either total_debit = total_credit OR if total_amount_currency is 0
[FIX] account: when registering a payment with a writeoff, always create the writeoff line exactly as entered by the user. Before, it was modified
 by the exchange rate entry, for some reason...
[FIX] account: on invoices, show the payment widget and outstanding payments in the invoice's currency always
[FIX] account: when assigning a payment in company currency on an invoice in foreign currency, save the amount_currency in order to create the correct
 exchange rate.
[FIX] account: show the currency difference entry on the invoice payments widget
[FIX] account: fixed the reconciliation methods in order to work with exchange rate entries that have debit = credit = 0
[FIX] account: fixed reconciled field computation. A line is reconciled only if its amount_residual AND amount_residual_currency are 0
[IMP] display the move name of payments on the invoice payments widget
2016-03-23 09:57:59 +01:00
Nicolas Martinelli 7a44effd09 [IMP] account: rename "Done" to "Skip"
When less than 2 entries are selected, no action will be performed.
Therefore, the "Done" label is misleading.

opw-670503
2016-03-23 09:31:59 +01:00
Fabien Pinckaers 512e62d5ad Merge branch 'master' of https://github.com/odoo/odoo 2016-03-22 10:40:07 -07:00
Fabien Pinckaers 4589276d7d [IMP] Won leads are not lost 2016-03-22 10:39:23 -07:00
Denis Ledoux 6207644c00 [FIX] website*: remove technical routes in sitemap
Multiple technical routes were listed in the sitemap,
and it's pointless to list them in the sitemap.

There is currently no way to exclude routes
from the sitemap using a specifc argument
(e.g. sitemap=False on the route).

Therefore, in order to remove them from the sitemap,
we play with the current conditions to exclude
these routes from the sitemap:
 - routes with `auth` other than `none` and  'public`
   are excluded. Technical routes marked as `auth="public"`
   for no reasons are changed to `auth="user" so they
   are excluded from the sitemap
 - routes with required arguments are excluded as well.
   the route `website/image` cannot work without any argument,
   `website/image` has therefore been removed from the possible
   routes for the method `website_image`, so it's no longer
   listed in the sitemap.

For an exhaustive list of the conditions to exclude
a route from the sitemap, check the method
`rule_is_enumerable` in `website/models/website.py`

opw-670865
2016-03-22 18:01:41 +01:00
Nicolas Martinelli d39d191cec [FIX] stock: reserve if move not assigned
Commit 4a0b6f6 slightly improves the performances of `action_assign` by
skipping moves which already have pack operations. However, if the move
is not completely assigned, it prevents the possibility to search for
new quants to assign to the given move.

opw-672069
2016-03-22 17:17:37 +01:00
Denis Ledoux 9e624671d2 [FIX] account: bank statement lines order on write
When adding new lines to an existing statement,
the order of the lines was not kept,
due to the re-sequencing operation done in the
override of `write` in `account.bank.statement`:

```
for statement in self.browse(cr, uid, ids, context):
    for idx, line in enumerate(statement.line_ids):
        account_bank_statement_line_obj.write(cr, uid, [line.id], {'sequence': idx + 1}, context=context)
```
as the lines order was based on `statement_id desc, sequence`,
which is the same for all lines added,
(except if the order is forced in the web client,
using the handle widget)
and, therefore, the order
of the lines returned by `statement.line_ids` was
not determinist.

Adding the `id` to the lines order
(as it's done in `sale.order`, for instance),
solves the issue, as the lines will then be fetched
in the order they were created.

opw-667541
2016-03-22 17:12:01 +01:00
Nicolas Martinelli f37681e74e [IMP] sale_stock: decrease delivered quantity
The commit adds a "Refund" field on the stock move, in the module
sale_stock. This allows to decrease the quantity delivered in the
associated SO, and therefore to generate refunds more easily.
2016-03-22 16:19:01 +01:00
Denis Ledoux e94be1856c [FIX] website_sale: non-blocking order confirmation fail
When validating a payment transaction,
if the cart (order) cannot be confirmed or
the email cannot be sent for any reason
(instance, the email template is broken),
the transaction must continue, so the payment
transaction can be set to `done` or `pending`.

In other words, not sending the confirmation
email or not confirming the sale order must
not be blocking to mark the payment
transaction as done.

opw-672486
2016-03-22 15:49:14 +01:00
Yannick Tivisse d3714770d9 [IMP] website: Hide website_id in Website Config view
This field is misunderdstood by common user and is problematic in saas
instances. Make it invisible, but usable with the html editor
2016-03-22 15:49:07 +01:00
Aaron Bohy 1193686bf3 [FIX] board: broken include and unwaited deferred
This commit fixes two problems with the dashboard:

- The function prepare_dropdown_menu() has been removed by commit 002660,
breaking the include in dashboard.js, and thus the 'Add to Dashboard' feature
wasn't appended to the FavoritesMenu.

- The code to render the dashboard didn't correctly wait for the action
manager's deferred to be resolved, which produced a traceback when they were
a Kanban or List view in the dashboard.
2016-03-22 15:28:42 +01:00
Martin Trigaux b54b888305 [MERGE] Forwardport of branch 9.0 up to revision 87578177 2016-03-22 14:30:21 +01:00
xmo-odoo c41661ab83 [FIX] view inheritance tests
Validation error type changed from AttributeError to ValueError.
2016-03-22 13:29:54 +01:00
Nicolas Martinelli d6c88b8809 [FIX] account: filter out special periods
Commit 7b7f3fa filters out the special periods. However, the filtering
should be done only for the display in the form view, nto for the
reporting which is actually correct.

opw-672531
2016-03-22 13:07:30 +01:00
Raphael Collet 01a04f121f [IMP] ir_ui_view: pass error message when validating views 2016-03-22 11:56:32 +01:00
Nicolas Martinelli 43445db7e4 [FIX] point_of_sale: fiscal position on invoice
In v8.0 and saas-6, the PoS does not support the concept of fiscal
position. Therefore, the invoice generated should not use it, otherwise
there might be an inconsistency between the PoS order and the invoice.

FORWARDPORT TO SAAS-6 ONLY!

Fixes #11299
opw-671743
2016-03-22 11:46:49 +01:00
Raphael Collet 6b01c6d120 [FIX] ir_filters: fix API of method create_or_replace
The API was broken after the migration to the new API.  The method now returns
a record with the new API, and a record id with the old API.
2016-03-22 10:20:56 +01:00
Nicolas Martinelli 899d01b9fb [FIX] web_kanban: request fields only if necessary 2016-03-22 08:45:17 +01:00
Fabien Pinckaers 97e2d35292 [FIX] english typo: amounting 00 --> amounting in 00 2016-03-21 20:48:39 -07:00
Denis Ledoux 9d12f90c23 [FIX] crm: check context before using it
context could be `Nonetype`

opw-672452
2016-03-21 18:28:01 +01:00
Josse Colpaert 87578177ac [FIX] mrp: Cost calculation of finished product when real price should work in real-time too
For that, we needed to inverse the processing of the moves of the production order (first consumed, then produced
instead of the opposite) as that way we know the price to put on the produced moves based on what was consumed before.
2016-03-21 17:08:07 +01:00