Commit Graph
102481 Commits
Author SHA1 Message Date
pvy 858188f1a2 [IMP] account: query_get improved to allow usage of analytic_account_id in reports 2016-05-04 16:42:40 +02:00
Shivam Dudhat 4c042cd55f [MIG] report_intrastat : Converted yml test cases to unittest 2016-05-04 16:31:52 +02:00
Yannick Tivisse 7725d7e683 [MIG] report_intrastat: Migrated to new api 2016-05-04 16:31:52 +02:00
Yannick Tivisse a8010ab6e2 [MOV] report_intrastat: Split files matching new api guidelines. 2016-05-04 16:31:52 +02:00
Yannick Tivisse d72346df02 [MOV] report_intrastat: Restructured files matching new api guidelines 2016-05-04 16:31:52 +02:00
Aaron Bohy 7ded5370f1 [REF] mail,web: unique Spinner template in base.xml 2016-05-04 15:06:20 +02:00
Aaron Bohy 80e83f17d4 [IMP] mail: chatter: better sync between chatter and form view
When switching between records, the displayed thread was still the one of the
previous records until the messages of the current record were loaded, which
could be confusing.

Moreover, when quickly browsing records using the pager, it could happen that
the resulting displayed thread wasn't the one of the displayed record (if
we visited a record with a long thread history, the RPC to load that history
might return after the one of the current record).

This commit aims to always synchronize the displayed thread with the current
record, by
  - directly hide the previous thread when browsing records
  - displaying a spinner after 1s to indicate that the thread is loading and
    (possibly) not empty
  - ensure to only render the thread of the last visited record
2016-05-04 15:06:20 +02:00
Aaron Bohy befbdcb935 [ADD] web: some deferred utils 2016-05-04 15:06:20 +02:00
Géry Debongnie 782a4466fe [IMP] web: better fuzzy search
The goal of this commit is to have better search results when fuzzy
searching.  Before this commit, the position of a match was irrelevant
to the search results.  After, a match in a first position has more
weight than a match in last position.  This is better, because we often
want to find results using the first letters.

This is controversial, but I could not find a better way to do this
without rewriting the whole library myself (which might not be a bad
idea, it is only 50 lines long)
2016-05-04 14:46:46 +02:00
Nicolas Martinelli 51064be4b3 [FIX] hr_holidays: access to resource calendar
Make sure the user can have access to resource calendar.
2016-05-04 12:13:59 +02:00
Nicolas Martinelli fb8f2c99cc [IMP] hr_holidays: handle UoM in resource calendar
In a company, there might be several contract types, e.g.:
- 38 Hours/Week, 5 Days/Week
- 45 Hours/Week, 5 Days/Week
- 24 Hours/Week, 2 Days/Week (work on week-end only)

Therefore, it is necessary to be able to define the average number of
hours per day on a resource calendar.
2016-05-04 12:13:59 +02:00
Thibault Delavallée e6d7261692 [FIX] stock, delivery: put_in_pack return
When called in new API it returns a record, not an ID. Update the override
in delivery accordingly.
2016-05-04 11:26:38 +02:00
Thibault Delavallée d386993672 [REM] mrp, purchase: dead code in stock
_get_all_products_to_resupply seems to be dead code since a long time. Even in
8 the base method cannot be found.
2016-05-04 10:30:53 +02:00
Olivier Dony 83a5c9d51e [FIX] analytic: move action after corresponding search view
Rev d115c24d6b introduced the
dependency but forgot to move the records in the right order.
2016-05-04 10:05:26 +02:00
Jérome Maes 32203627b2 [MIG] note_pad : migration to new api 2016-05-03 16:59:20 +02:00
Jérome Maes af8643248f [MOV] note_pad : move files 2016-05-03 16:59:19 +02:00
Anand Kansagra b3b0b23fe2 [MIG] note : migration to new api 2016-05-03 16:59:19 +02:00
Jérome Maes 032f0be5ba [MOV] note : split file per main models 2016-05-03 16:59:19 +02:00
Anand Kansagra e7007ba3f3 [MOV] note: Re-organised file structure. 2016-05-03 16:59:19 +02:00
qdp-odoo d115c24d6b [FIX] account: analytic lines pivot table reporting menu + copy of the analytic tags on analytic lines from aml 2016-05-03 16:46:42 +02:00
Nicolas Martinelli aa87e66c46 [IMP] hr_holidays: resource calendar in hr_holidays
The module hr_holidays now uses the resource calendar to compute the
number of days in a leave request.

opw-676596
2016-05-03 13:37:30 +02:00
Nicolas Martinelli 6b32ee456c [IMP] resource: work less
45 Hours/Week is too much, 40 is enough. And by the way, now it matches
with the default ratio 1 day = 8 hours defined in the UoM.

opw-676596
2016-05-03 12:23:54 +02:00
Aaron Bohy 03a764891c [ADD] mail: command /who
available in channels and chats, but not livechats as the public user isn't
really "in" the channel (the command would reply that you are alone in the
channel, which isn't necessarily the case)
2016-05-03 10:34:41 +02:00
Aaron Bohy 9865d3c0b7 [ADD] mail: command /leave
Required some changes for the client_action to correctly remove the left
channel from its sidebar, and switch to Inbox.
2016-05-03 10:34:41 +02:00
Aaron Bohy de6fa69774 [ADD] mail: commands support
Use the mention mechanism to autocomplete on commands (keyword /).

A first command /help has been implemented.
2016-05-03 10:34:41 +02:00
Aaron Bohy 2264378739 [ADD] im_livechat,mail: canned responses support
Use the mention mechanism of the composer to autocomplete on canned responses
(keyword :) with fuzzy search.

Directly perform the string replacement in the composer, instead of
server-side as before.

Add a menu item to access an editable list view to create and edit canned
responses.

Add two canned responses as demo data.
2016-05-03 10:34:41 +02:00
Aaron Bohy 29483ffe2e [FIX] mail: escape RegExp pattern
to prevent crashes if the user types, e.g. a \, in the partner's autocompletes
in Discuss ('Add a DM' in sidebar and 'Invite people to channel' dialog).
2016-05-03 10:34:41 +02:00
Aaron Bohy 1aa6774561 [FIX] mail: mention: close suggestions dropdown on ESC keypress 2016-05-03 10:34:40 +02:00
Aaron Bohy 11f525866f [IMP] mail: mention: don't delay local mention lookups
A 200ms delay is set on lookups for mention suggestions to prevent triggering
RPCs when the user is still typing. However, there shouldn't be a delay when
the suggestions are looked up in the prefetched suggestions.

Also fixes a bug that might occur when the user starts typing a mention which
triggers an RPC, but erase it before the RPC returns.
2016-05-03 10:34:40 +02:00
Aaron Bohy 790d84f78d [IMP] im_livechat,mail: mention in backend chat windows
The BasicComposer widget is now used in chat windows, which enables the mention
feature. This is only for the backend, as for the livechat windows in the
frontend, the composer is still a simple input.

Classname 'o_chat_input' has been renamed into 'o_chat_composer' (the root
classname of the basic composer) for uniformity in the JS and LESS code of
chat windows.
2016-05-03 10:34:40 +02:00
qdp-odoo 54b0168d5e [IMP] account, sale, purchase: added analytic tags in SO, PO and invoices, to allow reporting based on those tags 2016-05-04 09:37:41 +02:00
Xavier Morel 037e61af32 [REM] hr_timesheet: hr.timesheet.report
* removed hr.timesheet.report as it's mostly redundant with regular
  views on analytic lines
* moved "detailed activities" to reporting, renamed it, added a pivot
  view
* redirected timesheet link from HR dashboard to the detailed activities
  action

  - added department_id to analytic lines as that link is filtered by
    department
  - fixed bug in kanban view: button context wasn't evaluated in the
    correct context
2016-05-02 19:20:14 +02:00
Xavier Morel 09a5d65c48 [CHG] hr_timesheet: reportify detailed activities 2016-05-02 19:20:13 +02:00
Xavier Morel ba5c7fe6cc [ADD] hr_timesheet_attendance report
Provide a timesheet/attendance report independent from hr_timesheet_sheet.
2016-05-02 19:20:12 +02:00
mge-odoo eb8d4aaa59 [IMP] account_asset: added boolean on asset category to group depreciation lines into the same account.move + improved usability. 2016-05-03 17:47:03 +02:00
Cedric Snauwaert 4e4fa38880 [ADD] hr_expense: add accounting_date field, when generating accounting entries it will take this field if set, otherwise take expense_date field 2016-05-02 15:38:14 +02:00
Mansi Gandhi c220c22fbd [IMP] point_of_sale: 'Receipt Ref code' when returning product on order
It's about 'Receipt Reference code' which gets generated when Order is
created from POS .

After this, click on 'RETURN PRODUCTS' button, the return Order doesn't
fetch the "Receipt Ref" of the origin Order, so there is no way to find
the origin order from where the return of the products done.
2016-05-02 15:25:42 +02:00
Vipul Bhatt c1d813ec1c [IMP] web_calendar: Display in user's language time format
- Y axis : according to 12 hour or 24 hour format
- Event title : following time format in preferenced language

NB: The conversion from 'A' to 'TT' to match fullcalendar v1 should be
removed when fullcalendar is updated to v2, as the syntax will change.
See : http://fullcalendar.io/wiki/Upgrading-to-v2/
2016-05-02 14:52:15 +02:00
Damien Bouvy f6dc57b47c [IMP] hr: order departments by name 2016-05-02 11:56:01 +02:00
Thibault Delavallée 4540b6595e [FIX] mrp, account_analytic_default: removed methods
When migrating stock, some dummies methods have been removed. Indeed those
calls make more problems than they solve by adding unnecessary complexity
around simple methods. However it seems some calls have been left in the
process :

 - _get_act_window_dict which is basically an env.ref or act_window.for_xml_id
 - _get_products which is basically having all product_ids from template by
   iterating on product_variant_ids.
2016-04-29 17:43:02 +02:00
Thibault Delavallée c287ed4c34 [TESTS] stock: Reactivate and update new Py tests 2016-04-29 12:18:50 +02:00
Thibault Delavallée 0d0f96ddcd [IMP] stock_picking: code cleaning
Method _get_top_level_packages is moved to the quant model. Some code cleaning
is also performed in picking in methods computing pack operations.
2016-04-29 12:18:49 +02:00
Thibault Delavallée 20223fe920 [MIGR] stock: reports and controllers 2016-04-29 12:18:49 +02:00
Thibault Delavallée e3b8fe2024 [MIGR] stock: wizards
Wizard models are migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.
2016-04-29 12:18:48 +02:00
Thibault Delavallée 7a555a9fd1 [MOV] stock: wizards
Wizard models and views are moved in their own file. This commit only moves
files. No change is done.
2016-04-29 12:18:48 +02:00
Thibault Delavallée 16a7af219f [MIGR] stock: stock_incoterms
Incoterms model is migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.
2016-04-29 12:18:47 +02:00
Thibault Delavallée 69c4c87090 [MOV] stock: stock_incoterms
Incoterms models and views are moved in their own file. Impacted:

 - stock.incoterms

This commit only moves files. No change is done.

This last commit is done by renaming the remaining code in stock.py file. We
hope this helps keeping a bit of history by being able to retrieve the original
stock.py file.
2016-04-29 12:18:47 +02:00
Thibault Delavallée 82faf1691d [MIGR] stock: procurement model
Procurement model is migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.
2016-04-29 12:18:46 +02:00
Thibault Delavallée b9853db8b5 [MIGR] stock: product and product strategy
Product models are migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.

Impacted models

 - product.product
 - product.template
 - product.removal
 - product.putaway
 - stock.fixed.putaway.strat
2016-04-29 12:18:46 +02:00
Thibault Delavallée d00a054a38 [MIGR] stock: stock_production_lot
Production lot model is migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.
2016-04-29 12:18:45 +02:00