Commit Graph
103345 Commits
Author SHA1 Message Date
Goffin Simon 67a9ea20d8 [FIX] crm: force view_id in window action
When clicking on "Your Pipeline" in Sale app and clicking afterwards
on an opportunity, the form view "crm.crm_case_form_view_oppor".
But if you refreshed, the form view of a lead was used.

opw:677962
2016-06-13 15:45:59 +02:00
Simon Lejeune 3f16ddfe50 [FIX] web_editor: run rte tests in post_install
The test begins by opening the webclient which default view is the
kanban view of the apps. However, by running this test at the web
module installation, web_kanban is not yet installed.
2016-06-13 15:32:44 +02:00
Martin Trigaux de78b1b3da [FIX] http: force removing the debug in redirection
In case of local_redirect with
* forward_debug=False
* qwery={'debug': True}

the debug mode should be removed.

cf discusion on #12107 and dd4980b0
2016-06-13 15:18:09 +02:00
Mahendra barad 703ccb9986 [ADD] event: option to install event_barcode
New Enterprise module
2016-06-13 15:16:31 +02:00
Nicolas Martinelli 6817c48a8b [FIX] website_sale: check email address
Partial backport of ef19830. The error message cannot be included for
compatibility reason, but the browser will highlight the field in red,
which should be enough to locate the error.

opw-677121
2016-06-13 14:08:26 +02:00
Damien Bouvy 25504cc11f [IMP] hr_timesheet: timesheet report (print) 2016-06-13 13:06:57 +02:00
Jainik Patel eda051f43d [REM] web: Remove GTK icons and replace them by Font-awesome 2016-06-13 12:04:17 +02:00
Nicolas Martinelli 3389b5f28a [FIX] account: analytic line amount
When an analytic account is added on an invoice line, the amount
recorded on the analytic line can be wrong if the invoice is not in the
company currency.

The issue is that the debit/credit amount is converted from the company
currency to the account move currency.

opw-679947
2016-06-13 10:53:12 +02:00
Géry Debongnie dcc13079b7 [FIX] web: action manager and modals should interact correctly
Before this commit, the action manager could in some case have a
reference of a modal dialog, even after it has been destroyed (for
example, when the "X" button has been clicked to close a modal).

Unfortunately, it has some unexpected consequences, for example, the
do_push_state method check the existence of self.dialog to update the
url.
2016-06-13 10:43:37 +02:00
Mitali Patel 8f39c652c6 [IMP] point_of_sale: manage lot/serial number from POS front-end
Frontend:
- When product has lot/serial tracking open popup for accept lot/serial
  number when it selected.
- Add icon in order line to show related lot/serial number and it
  indicate status of product lot
- User can add or remove product by lot from current lot dialog box
- Order line quantity don't match with lot line quantity show warning
  message

Back End:
- Added model `pos.pack.operation.lot` to manage product lot related
  with pos order
- Added state button in pos session form view to show pickings which are
  not in 'Done' stage
2016-06-13 10:19:01 +02:00
Jordan Vrtanoski d43d1ddf4b [FIX] hr_payroll: do not unlink records in onchange method
Fixing the error ValueError: "name 'date_from' is not defined"
while evaluating '[date_from, date_to, employee_id, contract_id]'

This commit close #12383, close #8883, close #3116
2016-06-13 10:05:09 +02:00
Jordan Vrtanoski 2219c83aac [CLA] add jordanvrtanoski.md 2016-06-13 10:04:34 +02:00
Aaron Bohy 06e28ce2a4 [FIX] crm,website_sale: base_setup.action_sale_config wrong xmlid
Action action_sale_config has been moved to sales_team addon at
odoo/odoo@fa6e415.
2016-06-13 09:41:39 +02:00
Odoo Translation Bot 3215a81bab [I18N] Update translation terms from Transifex 2016-06-12 03:06:37 +02:00
Odoo Translation Bot 596398a759 [I18N] Update translation terms from Transifex 2016-06-12 00:39:18 +02:00
Jeremy Kersten 20989b8b17 [FIX] website_blog: fix url in rss
post.website_url contains the heading /.
Old code generate 404 url (https://www.odoo.com//blog/1/post/294)
2016-06-11 21:13:57 +02:00
Simon Lejeune efe37469e9 [FIX] packaging: debian: update-python-module is no more
The command is not installed by default. It was available in the
python-support library which we didn't depend on and now this library
is no more in debian jessie/ubuntu xenial.

fixes #11785
2016-06-10 17:22:03 +02:00
Simon Lejeune 123e51f4d5 [REF] ir_qweb: less webasset: compress output instead of minifying it
* Remove dependency on less-plugin-clean-css which distribution
  packages are broken on debian stretch and derivated.
* Updated documentation.
* Lessc provides a `--compress` argument that could solve this issue.
  According to the documentation at http://lesscss.org/usage/: "[...]
  Compress using less built-in compression. This does an okay job but
  does not utilise all the tricks of dedicated css compression[...]"
  However, using this argument works on lessc 2.5.3 but not on 1.4.2
  (`--compress` arg is present but seems to be break some rules
  i haven't been able to put my finger on).
* Finally, use the minification of the StylesheetAsset that takes care
  of removing the spaces, the comments and the sourcemap with regexes.

fixes issue #9113
2016-06-10 17:22:03 +02:00
Martin Trigaux dd4980b0a8 [FIX] http: keep debug mode in rediction
The parameter forward_debug is used to keep the debug mode during redirection.
Previous code was setting the debug to None which is ignored by werkzeug, making
the option useless.

Closes #12107
2016-06-10 16:51:41 +02:00
xmo-odoo b466a9eea0 [FIX] report: Backport of 6d73087d to 9.0
Closes #12131
[FIX] report: don't hide errors in custom reports

If a custom report's render_html raises a KeyError for some
reason, Report.get_html would swallow the exception and fallback
on generic HTML rendering, usually blowing up with unfathomable
errors of missing rendering context data.

Check if a custom report object exists instead of waiting for a
KeyError.
2016-06-10 16:31:23 +02:00
Marius Vaišvila 1412a73d74 [CLA] signature for MariusVaisvila
Closes #12131
2016-06-10 16:31:23 +02:00
jeffery chen fan 0b734418e8 [CLA] rename file name to match github account
Closes #12319
2016-06-10 15:52:13 +02:00
Olivier Dony f9688cc63f [FIX] calendar.event: wrong return type when message_post was called from new API 2016-06-10 15:51:29 +02:00
Dhinesh D deb439fe6a [FIX] stock_calendar: missing parameter in write
Surprisingly it doesn't work to write without ids
Closes #12369
2016-06-10 15:12:54 +02:00
Dhinesh D 65308e7492 [CLA] Signature for Dhinesh D
Closes #12370
2016-06-10 15:12:54 +02:00
Jainik Patel 919bee4058 [IMP] stock: Lot/Serial Numbers label uniformization
In master , some places the string "Lot" is used and at some places
"Serial Numbers" is used , which is very confusing for the user.

Make a common string "Lots / Serial Numbers" everywhere for the uniformity.
2016-06-10 15:03:44 +02:00
Joren Van Onder 298fc213dd [FIX] point_of_sale: ensure that there is always an order creation_date
Introduced by e9b1254a5c. This commit made
sense but there are certain POS modules that send the order to the
backend before validation and thus depend on there always being a
creation date, even if the order has not been validated yet.

This ensures that we don't end up with an undefined creation_date in the
backend.

opw-680590
2016-06-10 14:31:23 +02:00
Christophe Simonis e35b57d6f5 [MERGE] forward port of branch 8.0 up to 26b3501
# Conflicts:
#	addons/procurement/procurement.py
2016-06-10 12:23:34 +02:00
Nicolas Martinelli 26b3501ca9 [FIX] l10n_fr_hr_payroll: use child_of
Previous commit 8f7129216 searches recursively for children of a rule
category. Use `child_of` instead which is way more efficient.

opw-673222
2016-06-10 11:39:47 +02:00
Simon Lejeune 02484f899a [FIX] report: thread-safe barcode generation
A lock occurs when the user wants to print a report having multiple barcode while the server is
started in threaded-mode. The reason is that reportlab has to build a cache of the T1 fonts
before rendering a barcode (done in a C extension) and this part is not thread safe. We attempt
here to init the T1 fonts cache at the start-up of Odoo so that rendering of barcode in multiple
thread does not lock the server.

Another workaround was to set an explicit lock around the reportlab's function call, but it's
more dangerous as it may introduce undetectable lock between python and postgresql.

Thanks to @odony and @KangOl.

Fixes #12236
2016-06-10 11:26:01 +02:00
Ravi Patel 598f401d67 [ADD] contacts: Move 'Contacts' root menuitem from 'mail' to a new module
Purpose:
There are too many apps when someone starts to use odoo.
The user installs an app and see at least 6 menus -> too much !

Specification:
In mail module move contacts menu into new module 'contacts' to avoid this
useless app for new users but that can be useful afterward
2016-06-10 06:17:57 +02:00
Denis Ledoux d6e93d063b [FIX] project: project duplicate message followers
This is related to revision
c8aac116a6

`message_follower_ids` is a one2many field
on the thread. To copy them, you must
create new `mail.followers` records, and not
linking the followers of the project
being duplicated to the duplicated project.
2016-06-09 18:26:06 +02:00
Denis Ledoux 291561a197 [FIX] report, account: invoice reset to draft attachments
When cancelling and resetting to draft an invoice,
delete only the invoice report attachment from the
attachment, not all of them.

The reason why the report is removed from the
attachments on the invoice resetted to draft
is explained in
db0def38cc

opw-680295
2016-06-09 17:37:55 +02:00
Denis Ledoux c8aac116a6 [FIX] project: duplicate project must copy followers
Since duplicating a project copies the project
tasks, with the followers, the project followers must
remain as well.

This is done in the already overriden method
`copy` instead of simply adding `copy=True`
on the according one2many field, since this field
is defined on the inherited model
`mail.thread`, and to add `copy=True`, in the old api,
we would have to re-define the `message_follower_ids`
field within the `project.project`
model completely, making sure to copy all properties

opw-680313
2016-06-09 17:27:31 +02:00
Yannick Tivisse 9e57185449 [IMP] base,sales_team: Move res_groups and menuitems to sales_team
Purpose:
Having the res_group defined in base and sales_team auto installed
with mail doens't make sense.

- Move the empty res_config class and the related view from
  base_setup to sales_team (base_setup only contains the 'General Settings'
  model and views
- Move the 'sale' related content from product to sale module (Access rights,
  menuitems,...)
- Set sales_team at autoinstall False. The module is installed when needed by
  crm or sale for example
- Set sales_team as a dependency of voip. (Access rights defined for configuration
  purpose)
- Set sales_team ad a dependency of subscription (Access rights issue too)

[FIX] account: move some ir.model.access to sale module
[FIX] payment: Move some ir.rule to website_sale
[FIX] stock: move some ir.model.access rule to sale_stock
[FIX] project: Move some ir.model.access rules to crm_project_issue
[FIX] mrp: Move some ir.model.access rules to sale_mrp
[FIX] calendar: move some ir.model.access rules to crm

Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes
sales_team.group_sale_manager.

[ADD] sales_team: See own documents => See only his sales team
Moved the "User: Own Leads Only", "User: All Leads" and "Manager" groups from sale and crm
into sales_team module. Add the record rules so that user can see only his Own Sales Team
if "See Own Leads" is sales right and can see all sales teams if he is having sales rights
of "See All Leads" or manager.
2016-06-09 16:05:25 +02:00
Jairo Llopis 5cfadf5e41 [IMP] tools: support wdb in dev mode. 2016-06-09 16:01:54 +02:00
Yannick Tivisse 7e6ad941cf [IMP] stock: Remove domain on source/destination on Operation Details
When doing an internal trasnfer, you can choose any destination
location in the header, but not on the line

This is problematic when doing a pick-pack-ship transfer. For the pick
move, you may want to change the source destination location (maybe another
warehouse why not) but as the transfer is already validated you cannot
modify it on the form. But with the Operation Details (Pencil button) you
can modify the source/destination location. The only problem is that a domain
is forcing the user to choose a source destination that is a child of the source
destination on the transfer, which makes impossible to choose a destination on
another warehouse. This tool is pretty much advanced, so we don't need to be so
restrictive.
2016-06-09 15:59:42 +02:00
Yannick Tivisse 4906757334 [IMP] stock: Remove domain on source/destination on Operation Details
When doing an internal trasnfer, you can choose any destination
location in the header, but not on the line

This is problematic when doing a pick-pack-ship transfer. For the pick
move, you may want to change the source destination location (maybe another
warehouse why not) but as the transfer is already validated you cannot
modify it on the form. But with the Operation Details (Pencil button) you
can modify the source/destination location. The only problem is that a domain
is forcing the user to choose a source destination that is a child of the source
destination on the transfer, which makes impossible to choose a destination on
another warehouse. This tool is pretty much advanced, so we don't need to be so
restrictive.
2016-06-09 15:56:45 +02:00
Goffin Simon dbff4c6c12 [FIX] crm: field expected_revenue in crm.opportunity.report
The expected revenue in opportunity.report is in fact the probable
turnover. It was confusing with the field expected revenue in crm.lead.

opw:678062
2016-06-09 15:33:11 +02:00
Nicolas Martinelli 8f71292162 [FIX] l10n_fr_hr_payroll: children categories
When a rule category has children, the total of the category should
include the total of the children categories.

opw-673222
2016-06-09 15:21:03 +02:00
Nicolas Martinelli 8049d1e855 [FIX] base_import: file type on Windows
When a user imports a CSV file on Windows, the "CSV Format Options…"
field does not appear. This is an issue since it might be necessary to
tune these options depending on the file, e.g. change the encoding.

For some unknown reason, on Windows, the file type is empty whatever the
browser used. Therefore, we fall back on the extension of the file.

opw-680347
2016-06-09 15:09:22 +02:00
Goffin Simon a46f361698 [FIX] delivery, stock: carrier_id field in incoming stock picking
The field "carrier_id" must be hidden for the incoming stock picking.

In stock picking view form,
for an incoming stock picking, the Destination Location Zone must be hidden
for an outgoing stock picking, the Source Location Zone must be hidden
Introduced by 2cb3a90

opw:676411
2016-06-09 14:49:14 +02:00
Goffin Simon 28a7bcd83c [FIX] account_asset: create move for a depreciation line
The color of the button "create_move" in a depreciation line is
green if the related move is posted, orange if it exists but not posted and
red in the other case.

opw:678905
2016-06-09 14:37:27 +02:00
Goffin Simon 89f424dd28 [FIX] project_timesheet: _get_subtask_count
The task itself doesn't have to be counted, but substrcting one to
the total count was wrong when the task itself was archived.

opw:680207
2016-06-09 14:26:41 +02:00
Christophe Simonis 43f866af13 [FIX] sales_team: it works better when you actually load the code... 2016-06-09 13:59:47 +02:00
Shelton Freddy 35536b7206 [FIX] purchase: do not allow creation on purchase.order.line
To match the behaviour on sale.order.line.
Purchase line form is expected to be open in popup (where parent is defined),
not individually when creating a line alone is not useful.

Fixes #6644
Closes #12325
2016-06-09 13:46:08 +02:00
Christophe Simonis 267fbfa0e2 [IMP] base,sales_team: define sales_team_dashboard view type only in sales_team module 2016-06-09 13:44:21 +02:00
Shelton Freddy 34eecbf4be [CLA] signature for sheltonfreddy141
Closes #12326
2016-06-09 13:21:28 +02:00
Peter Hahn 6d7cb5408e [FIX] sale,procurement: use super instead of direct call
Otherwise inheritance is not properly propagated

Closes #12337
2016-06-09 13:19:09 +02:00
Jeremy Kersten 6f223edf4f [FIX] mail: display date and datetime in tracking value with the right timzeone.
When tracking value is converted to be rendered as a message_post, we convert
the date/datetime with the current local from momentjs.

Related to #12327

Courtesy of @aab-odoo for help and review.
2016-06-09 10:45:35 +02:00