Commit Graph
103345 Commits
Author SHA1 Message Date
qsm-odoo 969bc66e7a [FIX] web: enterprise navbar toggle button -> a
This commit is a fix of the forward-port of an enterprise commit.
https://github.com/odoo/enterprise/commit/b0f309bc4ea79ff3ae2fe7d890dd60b0b414bd05
2016-05-30 14:59:06 +02:00
Goffin Simon 89c35b8c9c [FIX] account: correct message for lock dates
The sentence concerning the adviser should not be raised if the user is an adviser role.

opw:678458
2016-05-30 14:59:01 +02:00
dut-odoo 419ba7365f [ADD] account_voucher: same receipt behavior than invoices
In the sales receipts :
    - In Sales Receipts : Change the String Date into Bill Date
    - Always display the Journal Items tab
    - In the Journal Items tab :  Display the date. the string should be Accounting Date
    - In draft : There should be an onchange on the accounting date when the bill date is changed
    - In draft : It should be possible to change indenpendently the accounting date
    - The entries should be posted at the accounting date

In the purchase receipts :
    - Always display the Journal Items tab
    - In the Journal Items tab : Change the string Date into Accounting Date
    - In draft : There should be an onchange on the accounting date when the bill date is changed
    - In draft : It should be possible to change indenpendently the accounting date
    - The entries should be posted at the accounting date
2016-05-30 14:05:41 +02:00
Ravi Patel 3f1e051df9 [IMP] project: A lot of tasks and issue loading in a production environment, so we can set a default filter for own tasks and own issues. 2016-05-30 13:51:52 +02:00
Joren Van Onder 2d0053a80a [FIX] payment_stripe: support payments through website_quote
Contrary to other payment acquirers all transactions through stripe are
s2s transactions. Because of this payment_stripe has to create it's own
payment.transactions which is unusual.

Because of this payment_stripe needs a sale order id which will be
provided by website_sale in request.session. website_quote doesn't do
this so this extracts it from the return_url, just like
website_quotation.js does.

opw-678117
2016-05-30 13:42:04 +02:00
Martin Trigaux e641ec7815 Revert "[FIX] website_forum: notification of comments like answers"
This reverts commit e32ba845de.

This commit is wrong as it had an undifined variable and was losing the content
of the comment anyway.

Fixes #12213
2016-05-30 12:05:49 +02:00
Géry Debongnie 2172a6e81c [FIX] web: incorrect reference to openerp
I assume the problem was introduced by a forward port. But whatever the case, we
should not ever use the variable 'openerp' in jsland.
2016-05-30 11:43:06 +02:00
Géry Debongnie 2f7bd4d7e9 [IMP] hr_attendance: remove extra rpc
The attendance module needs to know if the user is an employee before
putting itself in the systray.  This commit add the information in the
session infos, and use it directly.
2016-05-30 11:43:06 +02:00
Géry Debongnie f3fb0bfe29 [IMP] web_analytics: remove rpc to version_info
and put it serverside, in the session info.  This saves 1 rpc for every
connections.
2016-05-30 11:43:06 +02:00
Nicolas Martinelli 63ca2d1b9f [FIX] purchase: wrong call to super
opw-675480
2016-05-30 11:24:10 +02:00
aetna-softwares 89d44e9c8a [CLA] Corporate signature for Aetna Softwares
Closes #12214
2016-05-30 10:23:16 +02:00
Géry Debongnie 58245d4dca [IMP] web: remove useless rpc by user_menu
The UserMenu widget needs the user name, but it is available in the
session informations.
2016-05-30 09:23:08 +02:00
Géry Debongnie 8ccff7dba8 [IMP] web: remove rpc call to get module list
It is already in the web client page source (or more precisely, in the
assets_backent bundle)
2016-05-30 09:23:08 +02:00
Géry Debongnie fdb250942f [IMP] web: move currency rpc to session_info 2016-05-30 09:23:08 +02:00
Géry Debongnie 9c68bc7482 [REF] point_of_sale,web(site): move session info into page source
This commit introduces a mechanism to add information into the session
from a different module, without having to fetch it manually with a rpc.
This is intended to be used with small pieces of info required at the
start of the web client, such as currency informations.

To add information to the session, one can simply inherit from ir.http
and modify the session_info method.
2016-05-30 09:23:07 +02:00
Géry Debongnie 2a8a17024d [IMP] web: start session service as soon as possible 2016-05-30 09:22:38 +02:00
Olivier Dony cd3f52ba10 [FIX] account,*: preserve deactivated taxes
By default, when reading a m2m field, entries that are
deactivated in the destination table are not included.
This behavior is desirable in some cases (e.g. for
"tags" or "categories", but not for entries that
significantly impact other field values in the parent
record, such as taxes.

The problem is rather obvious: when displaying a
paid invoice that used taxes that are now deactivated,
the taxes are hidden while they still affect the
computed amount. And after cancelling + resetting
to draft, the tax is not taken into account anymore,
while still being linked.

Forcing the field-level (python) domain to include
both active and inactive entries solves the problem:
 - when reading, displaying and recomputing values,
   deactivated taxes will be included.
 - when trying to pick a tax, deactivated entries
   will still be ignored, as expected.

This commit applies the technique to all m2m
fields that refer to taxes.

Fixes #12066
opw-677751
2016-05-30 09:07:31 +02:00
David Arnold 270b2d0a78 [CLA] corporate signature for DevCo Colombia
Closes #11755
2016-05-30 08:40:40 +02:00
Ronald Portier (Therp BV) c038535446 [CLA] Update Therp BV's signature
To have consistent email in author and signer key.
Also update list of contributors as Stefan is no longer working for Therp BV.

Closes #12202
2016-05-30 08:40:02 +02:00
Odoo Translation Bot cb70a8ff98 [I18N] Update translation terms from Transifex 2016-05-29 02:58:42 +02:00
Odoo Translation Bot be91fa4c63 [I18N] Update translation terms from Transifex 2016-05-29 00:29:48 +02:00
Vipul Bhatt 3cc6468d55 [IMP] point_of_sale: remove the User's Product report
This particular report was broken for a long time. Instead of fixing it
it was removed because the use case for it is unclear and noone seems to
actually be using it anyway.
2016-05-28 15:22:20 +02:00
Vipul Bhatt f619e5682c [FIX] point_of_sale: remove pos_receipt python code
Oversight of 0650047fd5.
2016-05-28 15:22:20 +02:00
Vipul Bhatt bc0c3579be [IMP] point_of_sale: remove custom account_statement report model
There's no point to it, as we can easily do what we need directly in the
report.
2016-05-28 15:22:20 +02:00
Antoine Huvelle b08642c21c [FIX] pos_restaurant: remove floor_id from restaurant.table form view
There is no way to directly create restaurant.table records in the
backend. The only way is through adding it directly to the table_ids
one2many on restaurant.floor and when doing that floor_id is
automatically set.

Closes #8705
2016-05-28 13:23:32 +02:00
Joren Van Onder 5d9f034b44 [IMP] pos_restaurant: remove pos_order_ids from restaurant.table
Wasn't used anywhere, nor are there any plans for it being used in the
near future.
2016-05-28 12:59:25 +02:00
Joren Van Onder 46d1c229ba [IMP] pos_restaurant: remove background_image from restaurant.floor
Continuation of 267097255e.
2016-05-28 12:55:30 +02:00
Damien Bouvy a3a4660b70 [IMP] sale_timesheet: ondelete has no effect on company-dependent fields 2016-05-27 17:34:12 +02:00
Jeremy Kersten 0413a4ab08 [FIX] sale: avoid division by zero in _get_price_reduce
close #11999
2016-05-27 17:06:32 +02:00
Damien Bouvy 678ea1ebea [IMP] sale_timesheet: project on product template is company_dependent
When using sale_timesheet to create tasks in specific project for certain
products, you should be able to set this setting by company.

Indeed, standard ir_rules prevent you from seeing projects from other
companies; therefore it makes little sense to have this field set to
the same value for all companies.
2016-05-27 17:04:19 +02:00
Parth Mehta b7424d008d [ADD] Product: Product template stat button on product categories
Remove 'sequence' field, and always display alphabetically
2016-05-27 16:53:09 +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
Géry Debongnie 4828a00f9e [REF] web: move dom_utils to its own file 2016-05-27 16:08:50 +02:00
Géry Debongnie b107b14e6b [REF] report,web(_editor): services extracted in their own files
session_instance.js moved from framework/ to services/ and renamed into
session.js, which required to change the bundles in report and web_editor
addons.
2016-05-27 16:08:41 +02:00
Dhaval Panchal 20d7f303e4 [IMP] stock: Hide label Packs and Lots in not enabled
Hide the group in the stock_picking_type form view if in configuration setting:
   - Packages: Record packages used on packing is false
   - Lots: Track lots or serial numbers is false
2016-05-27 15:16:43 +02:00
Kinner Vachhani deef119d72 [FIX] account: substitution in aged partner report
'foo %s bar' % 'alice' if False else 'bob' returns 'bob', not 'foo bob bar'

The previous strings returns '>=' when the direction is future while it should
be 'COALESCE(l.date_maturity,l.date) >= %s'

Fixes #10654
Closes #10695
2016-05-27 15:00:59 +02:00
Mansi Gandhi 9ee4b43477 [IMP] hr_recruitment: Remove wrong tooltip
because document_ftp and knowledge management module is doesn't exist anymore.
2016-05-27 14:59:36 +02:00
Mitali Patel d7a4cc47f9 [IMP] hr_holidays: show leave duration on calendar view
name pattern like '<Employee_name> on <holiday_status> : <no_days> days'.
2016-05-27 14:29:24 +02:00
Joren Van Onder 9499b5d4d2 [FIX] account_asset: use newest depreciation date for new depreciations
The code uses self.depreciation_line_ids[0] and incorrectly assumes it
is always the latest (newest) depreciation line. This sorts the
recordset to guarantee that this is true.

opw-678678
2016-05-27 13:51:56 +02:00
Nicolas Martinelli ff38b370a1 [FIX] payment_ogone: missing key
The key 'PAYIDSUB' should be added in the list of SHA-OUT keys.,
otherwise the signature is wrong.

opw-678718
2016-05-27 13:35:09 +02:00
Nicolas Martinelli b06b2a3641 [FIX] product: pricelist item sorting
The issue occurs in the following case:
- Configure 2 product categories A and B such as A is the parent of B
- Create a pricelist
- Create a first pricelist item which applies to category A
- Create a second pricelist item which applies to category B (with the
  same configuration regarding the minimum quantity)
- Create a product for category B

Before this fix, we cannot ensure that the pricelist item related to
category B will be applied, since we do not order the pricelist items by
category.

Thanks to this fix, we make sure to select the category from the more
specific to the less specific.

opw-678633
2016-05-27 13:31:44 +02:00
Nicolas Martinelli 82b9d7d511 [FIX] web: minimum margin
Make sure to define a minimum margin large enough.

opw-678645
2016-05-27 12:29:29 +02:00
Fabrice Henrion 32ed4c7191 [IMP] README: add Links
Closes #4764
2016-05-27 12:05:58 +02:00
Mansi Gandhi acbe01a1de [IMP] crm:Various improvements,
>In Dashboard/Your pipeline and in Sales/Your Pipeline: Remove the Direct Sales team filter.
	>In the kanban view, if the expected revenu = 0, the "," shouldn't appear.
	>In lead form view, remove the Opportunity header and move Probability under Analysis in Extra Info tab.
	>Rename Your Pipeline into My Pipeline to match the menu entry.
2016-05-27 12:03:35 +02:00
Nicolas Lempereur bc34fe481d [FIX] mail: don't reset subscriptions before adding one
When posting on a thread the user can be auto-subscribed to its default
types. But if the user has previously been subscribed to other subtypes,
those are lost.

With this commit, user mentionned (@{username} in message) or added as
follower for default subtypes are not subscribed if they were already
followers of the record.

So if default subtype is "Comment" and user was only following subtype
"Alarma!" (by checking it and then un-checking "Comment"), then if the
user comment:

-> before this commit, the user would then follow subtype "Comment" and
   not follow anymore "Alarma!"

-> after this commit, the user would follow the subtype "Alarma!"

closes #12008
opw-669127
opw-673766
2016-05-27 12:00:47 +02:00
Jeremy Kersten 2164383fe4 [FIX] website_sale: allow to override product order on shop
Close #11202
2016-05-27 11:56:35 +02:00
Fabrice Henrion 15a0f1acdd [IMP] stock_account: Usability stock accounting settings
It sounds better to call the "Accounting" section of the Inventory app settings
"Stock Accounting" considering it only concerns stock accounting and nothing else.

Closes #8095
2016-05-27 11:55:14 +02:00
Fabrice Henrion 753c679c94 [MIP stock: wording
This sentence was turned in a way that was making the user reluctant to click on
Apply while this is a normal flow to follow most of the time.

Closes #11763
2016-05-27 11:50:39 +02:00
Fabrice Henrion 5548bbe961 [IMP] account: consistent terminology
Closes #11663
2016-05-27 11:37:28 +02:00
Fabrice Henrion dd8ba8924f [IMP] payment_transfer: term
Closes #11764
2016-05-27 11:36:08 +02:00