Commit Graph
103345 Commits
Author SHA1 Message Date
eLBati 58cb0bcbc5 [FIX] account: avoid deleting taxes when they are linked to move lines
Equivalent of 8c337f9743
but for account.move.line as well.

Closes #11883
2016-06-02 00:41:51 +02:00
Joren Van Onder b698caf42e [FIX] point_of_sale: apply extended cash box behavior properly
Normally when you manually add or remove money from the cashbox the
reference on the bank statement line should be set to the name of the
session. But because the wrong function names where used this didn't
happen. Introduced by f5ad251686.

Fixes #12224
2016-06-01 10:34:40 +02:00
Mansi Gandhi 4bdbfbdf2f [IMP] mail: 'Mark all read' button is not a primary action
In discuss, mark all read is green. It shouldn't because it is not
the primary action.
2016-06-01 10:23:02 +02:00
dut-odoo e57f2f708d [FIX] hr: Traceback when assigning a parent department to a department
Comming from the hr module migration.
https://github.com/odoo/odoo/commit/44c62e1b7f02bb43ed75615076bcbbc7195f72d4#diff-7fe5c1ac38eeb355c75fa18a98b62323R271
2016-06-01 10:04:23 +02:00
Jeremy Kersten b49818e1ee [FIX] website_sale: add color value on attributes
xml template was using color name, because color index was empty.
It works in English, but once translated (in french e.g.) we have background-color:noir

Fix #12251
2016-06-01 10:01:38 +02:00
Joren Van Onder dffd4d51f3 [FIX] point_of_sale: hide QWeb header/footer from non-ESC/POS receipt
We allow users to specify QWeb in the header and footer fields of the
receipt. Because the browser receipt and the ESC/POS receipt use a
different format (HTML and ESC/POS XML respectively) we don't render
this QWeb to both receipts. Currently it is only rendered for the
ESC/POS receipt. When this is the case however, we shouldn't display the
unrendered QWeb on the regular browser receipt. This commit simply hides
it.

Perhaps in the future we can provide an additional parameter in the
<DOCTYPE declaration that allows the user to specify whether he wants
the QWeb to apply to the HTML receipt and/or the ESC/POS receipt.

opw-678170
2016-06-01 09:58:47 +02:00
Richard deMeester 8706ab4f13 [IMP] l10n_au: tax definition change
Change tax collection definion for private use (and others) to not
accumulate in GST accounts.

opw-678956
Closes #12081
2016-06-01 09:22:21 +02:00
Richard deMeester 172f6cfb98 [IMP] l10n_au: Australian COA enhancements
Added new accounts, fiscal positions and taxes

opw-678956
Closes #12081
2016-06-01 09:19:59 +02:00
dut-odoo 06989f6978 [FIX] account: fixing email template of invoice to display invoice number instead of false 2016-06-01 09:02:16 +02:00
Richard deMeester 77c7754e4f [ADD] l10n_nz: add New Zealand COA
Chart of accounts structure and localisation for New Zealand.

opw-678956
Closes #9234
2016-06-01 08:15:56 +02:00
Odoo Translation Bot 0ae392c9e3 [I18N] Update translation terms from Transifex 2016-06-01 00:27:50 +02:00
Denis Ledoux b46b0936a8 [FIX] crm: date_closed when writting without probability value
If `probability` is not being written,
`vals.get('probability')` is `None`
`None` < 100 is `True`

While it should not remove the `date_closed` value
when the probability field is not being rewritten
on the lead, but something else is.

opw-677273
2016-05-31 19:05:22 +02:00
Olivier Dony 8c337f9743 [FIX] account.invoice: prevent deleting taxes that are in use
Related to #12066 (see comments)
2016-05-31 18:58:51 +02:00
Jeremy Kersten 780f46ae9b [FIX] hr_recruitment: fix stage_ids in form view
Revert and related to commit: odoo/odoo@d1073f8e48
Re close #12246
2016-05-31 18:42:27 +02:00
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