Commit Graph
103231 Commits
Author SHA1 Message Date
qdp-odoo f7f1833824 [FIX] account: don't write ref/date again on move when creating tax line 2016-05-31 18:16:34 +02:00
Jeremy Kersten d1073f8e48 [FIX] hr: allow to add stages to a job position.
In v9, stages are not shared by default. So when you create a new job position,
you need to specify manually which stages are available for this job position.
But the field stage_ids was not available.
2016-05-31 17:06:18 +02:00
Sylvain LE GAL f95963319e [FIX] stock: hide partner_id for internal transfers
onchange_picking_type func now return picking_type_code
The stock.picking has an attrs to hide the partner_id for internal transfers.
It was not set as picking_type_code was not set.

Closes #12117
2016-05-31 16:52:59 +02:00
Sylvain LE GAL a97ac3e851 [CLA] Corporate signature for GRAP
Closes #12117
2016-05-31 16:52:59 +02:00
Rohan Patel 593ae31f0e [ADD] hr_timesheet: Display total hours of task in timesheet, added compute field total_hours_spent which is calculate total hours based on task's time spent + sub-tasks hours. 2016-05-31 16:21:38 +02:00
Mansi Gandhi f7cb8c0cfb [RM] crm: Remove the 'color' field from tree as well as form views of 'Lead Tags' because forgot to remove this field and already removed this field from 'Tags' in project module. 2016-05-31 15:58:15 +02:00
Ravi Patel 7d1d272e0a [IMP] project: Remove separator to remove space between name and value. 2016-05-31 15:53:29 +02:00
Mansi Gandhi 78643853ac [IMP] project: improvements in configuration,
>Remove the Sale Service option, because 'sale_service' module doesn't exist anymore.
	>Remove the option "Time on Tasks" and link the Time Scheduling (resource_calendar_id) to Forecast.
	>Hide the Timesheets section if the 'hr_timesheet_sheet' app is not installed.
	>Change the label "Timesheets on Issues" instead of "Timesheets Invoicing".
	>"Timesheets on Issues" shouldn't appear if hr_timesheet_sheet + project_issue apps are not installed.
2016-05-31 15:47:12 +02:00
Goffin Simon a11324f061 [FIX] purchase: Expected date not stored
It is not possible to group by "Expected Date" because the field is
not stored.

opw:678591
2016-05-31 15:37:09 +02:00
Goffin Simon 5e8e5b90ee [FIX] account_asset: posted entries from account asset
The entries created from an asset don't have to be posted if
the asset category has its field "open_asset" set to False.

opw:678771
2016-05-31 14:56:08 +02:00
Goffin Simon a96e60475b [FIX] account, account_asset, stock_account: get the right account for an asset
When creating an invoice line from a PO, if the product is linked to an Asset type
then the account used for this line must be the expense account.

When creating an invoice line from a SO, if the product is linked to an deferred revenue type
then the account used for this line must be the income account.
2016-05-31 14:54:07 +02:00
Wolfgang Taferner 272c7b26fc [FIX] account: fix potential traceback
`all([]) = True`, therefore if there is no `matched_debit_ids` or
`matched_credit_ids` on a payment ==> boom when you access
`payment.matched_debit_ids[0]`

opw-677157
Closes #12232
Closes #12242
2016-05-31 14:47:37 +02:00
Jérome Maes d5943607dd [MIG] portal_stock, portal_gamification : migration of xml data
Since there is no python code in these modules, migration consists
in renaming openerp data tag into the odoo one.
2016-05-31 14:16:59 +02:00
Rutul Raval a9d11f1175 [MIG] portal : migration to new api 2016-05-31 14:16:58 +02:00
Jérome Maes d60e040096 [MOV] portal : reorganize module directory 2016-05-31 14:16:58 +02:00
Vipul Bhatt 2ae11ec508 [IMP] base: 'ir.actions.server' 'code' field validation constraint
- Only SAFE CODES (specified in openerp/tools/safe_eval.py) are allowed in server actions
 - Validating basic python errors eg. SyntaxError, IndentationError etc.
2016-05-31 14:15:13 +02:00
Jeremy Kersten f413d155df [FIX] openerp: force Odoo to serve svg with mimetype image/svg+xml
Odoo serves files based on the mimetype imported with python module Mimetype.
In some case, mimetype on windows for svg is undefined or misconfigured and
the svg is returned as text/plain (and so xml and not img).

This commit overrides the default mimetype to render .svg file with mimetype
'image/svg+xml'.

It is similar to add/override the key from windows registry with:
```
[HKEY_CLASSES_ROOT\.svg]
@="svgfile"
"Content Type"="image/svg+xml"
```
The advantage to override it in Odoo, is to be sure that even if this key has
been updated or deleted by a cleaner software or malware, Odoo continue to work

This closes odoo/odoo#12150, closes odoo/odoo#9061, closes odoo/odoo#9118
2016-05-31 14:14:30 +02:00
Yannick Tivisse 13dae8847e [IMP] website_sale: Stock Availability banner on shop/product/id view
An availability selection field with 3 values :
- Display nothing
- In stock
- Warning + a warning message that could be something like 'available with
  a variable delay of 15 days
2016-05-31 13:11:56 +02:00
Darshan Kalola 65040e4be9 [MIG] pos_reprint: migration to new api 2016-05-31 09:20:11 +02:00
Darshan Kalola 38ef0adb93 [MOV] pos_reprint: reorganize module directory 2016-05-31 09:20:11 +02:00
Darshan Kalola 3de847afd8 [MIG] pos_restaurant : migration to new api
During migration, remove 'set_background_color' method, to directly use js api.
2016-05-31 09:20:11 +02:00
Jérome Maes 284e62def9 [MOV] pos_restaurant : slip file per models 2016-05-31 09:20:10 +02:00
Darshan Kalola 65fce907f2 [MOV] pos_restaurant : reoganize module directory 2016-05-31 09:20:10 +02:00
Jérome Maes 36fa95df0b [IMP] google_drive : make it use the constant defined in google_account 2016-05-31 09:09:23 +02:00
vbh-odoo 8107916079 [REM] google_spreadsheet: removed unused code 2016-05-31 09:09:23 +02:00
vbh-odoo 2fcf05d6d8 [MIG] google_spreadsheet : migrate to new api 2016-05-31 09:09:23 +02:00
Jérome Maes a1906557bc [MOV] google_spreadsheet : reorganize module directory 2016-05-31 09:09:22 +02:00
Jérome Maes 1d67e4982d [IMP] google_drive : allow to remove drive access token
Before, we submitting empty token field on General Settings, it did not remove the token from database.
2016-05-31 09:09:22 +02:00
vbh-odoo 3174d2f56e [MIG] google_drive : migrate to new api 2016-05-31 09:09:22 +02:00
Jérome Maes b581e2004f [MOV] google_drive : move code to split file per model 2016-05-31 09:09:22 +02:00
vbh-odoo 009578d5ee [MOV] google_drive : reoganise module directory 2016-05-31 09:09:21 +02:00
Adrien Dieudonne 6739e10b50 [ADD] web: add 'is between' operation for dates in search filters
- Add two datepickers to specify a range of date/datetime
2016-05-31 08:42:24 +02:00
Kinjal Mehta d6b3c1d962 [ADD] base: Add ir_rules for ir_filters
The object ir.filters has no security rules. anyone can access and
delete other people rules.

Add several rules:
- The administrators have all the rights on ir_filters
- An employee can create/modify a filter for him or everyone. But not for someone else
- An employee can delete only delete the filters he created
- A portal/public user can only access the filters for which he's the user
2016-05-30 16:26:39 +02:00
Joren Van Onder fe511f18e1 [FIX] account_asset: don't recompute depreciation board on state change
When a user goes through the trouble of manually modifying the
depreciation lines he will lose all his work when clicking on 'reset to
draft'. Furthermore, if he then goes through the trouble of repairing
the problem by once again manually changing the depreciation lines he
will again lose his work when pressing confirm.

opw-678678
2016-05-30 16:17:19 +02:00
Goffin Simon d5e478d4f0 [FIX] sale: Warning when Create invoice from SO
Used case:
Create a SO with invoicing policy based on delivery. Don't deliver
anything and Create invoice for all invoiceable lines.
Result:
There was no invoice created and no warning message.
After the fix:
A warning message is raised when after clicking "Create
invoice",for any reason it doesn't create an invoice.

opw:678567
2016-05-30 15:33:02 +02:00
Ronald Portier (Therp BV) d73648fe0d [FIX] crm,gamification: flexible reference to field
The field generation is most of the time following the pattern
`field_<table name>_<field name>`
but in case of name clash (e.g. res.partner.category - id and res.partner -
category_id), the id of ir.model.field is added at the end of the external id
during the field creation.

The more flexible way to link to an ir.model.field is to use the syntax
`search=[('model', '=', <model>), ('name', '=', <field name>)]`
to avoid errors as in #12192 when the "first" external id no longer exists.

Fixes #12192
Closes #12198
2016-05-30 15:02:20 +02:00
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