Commit Graph
103516 Commits
Author SHA1 Message Date
Fabien Pinckaers df3631ee3a [IMP] project: tour: add a Done stage to be able to close tasks. 2016-06-27 10:25:24 -07:00
Joren Van Onder 86cf147f2e [IMP] pos_mercury: move automatic Mercury token deletion to vacuum cron 2016-06-27 16:24:31 +02:00
Aaron Bohy 246b9a29ae [FIX] mail: tour: tip's position
Tips are now positionned in their closest scrollable parent (b70c990b), which
breaks some tips in discuss as they overflow that parent.
2016-06-27 16:04:25 +02:00
Aaron Bohy 488e9f299d [IMP] calendar: remove /calendar/notify RPC done every 5 minutes
Basicaly, do this RPC once, at webclient startup, to get the next notification.
Do the RPC again when the notification is displayed to get the next one.
When an event with alarm is created, edited or removed, trigger an event on the
bus for all involved users (the attendees) with an update of their next
calendar notification.
2016-06-27 15:30:45 +02:00
Aaron Bohy d9cc893dbc [IMP] openerp: models.py: use LOG_ACCESS_COLUMNS constant 2016-06-27 15:30:45 +02:00
Christophe Matthieu 5aac400e33 [IMP] qweb: use CDATA in test and remove stringify_children method 2016-06-27 14:29:04 +02:00
Aaron Bohy 8d61316486 [FIX] web_tour: load consumed tours in the frontend
Also deactivate unnecessary magic fields for the web_tour model.
2016-06-27 10:59:39 +02:00
Christophe Matthieu 15e1f88a73 [FIX] qweb: fix t-if and t-else and add test
Can not use remove with the loop for in (in _compile_directive_content)
2016-06-27 08:08:00 +02:00
Fabien Pinckaers 28656a1a3c [IMP] base: currency: add a form view to hide company 2016-06-25 23:57:58 -07:00
Fabien Pinckaers 770f7dfc6c [IMP] product: Filter on attributes only visible if multi-variants enables 2016-06-25 23:53:03 -07:00
Fabien Pinckaers 0c618d79ff [FIX] purchase: canceled PO can not be selected to create a bill
[IMP] purchase: name_get, show the amount (to select a PO in the bill
when several PO for the same vendor)
2016-06-25 14:50:30 -07:00
xmo-odoo 8d6ed1adbc [FIX] hr_recruitment: _group_by_full new API callback issue
Incompatibility between the way the callback had been migrated in
hr_recruitment and the way it's now called in base.
2016-06-25 09:57:54 +02:00
qsm-odoo b70c990b6a [IMP] web_tour: tip location
Choosing where to place a tip is a difficult problem.

If placed in the body element, the tip have to be repositionned on each
scroll event which is performance-consuming and induces bugs (firefox
scroll event, tips which is over an element while the anchor is under,
...).
If placed in the anchor parent which scrolls, all the above problems
are solved but when the tip opens it cannot overflow its parent
boundaries, which is not possible in many contexts (modals, ...).

The solution here is to change the tip location when it opens/closes.
When closed, it is placed in the anchor parent which scrolls. This
allows to not have to reposition the tip on each scroll. The tip is
also naturally hidden when its anchor is not visible on the screen.
When opened, the tip is placed in the body, where it can be placed
on the top of anything in the DOM.

The transition from one state to another is not noticable as the
position does not have to be computed when the tip is moved in the
DOM and the animation is purely CSS.

Note: however, this commit does not solve the firefox bug of closing
the tip when the window scrolls. Here, the temporary solution is to
let the tip be wrongly position if the user scrolls when a tip is
opened (this only occurs when using the mouse wheel anyway).
2016-06-24 17:18:44 +02:00
qsm-odoo 25a3a6f9bf [FIX] web_tour: unbind events on destroy 2016-06-24 17:18:44 +02:00
qsm-odoo 75deed4bee [FIX] web_tour: border computation of the tip
The border width was wrongly computed and was not used correctly in
the reposition algo.
2016-06-24 17:18:44 +02:00
qsm-odoo 2a2780fdf4 [FIX] web_tour: first positionning of tips
Before being positionned, the tip is at the end of the body, thus
adding a scrollbar... which prevents to calculate the correct x
position of the tip.

The chosen solution is to place the tip at the center of the screen
in LESS before the first positionning. This also prevents the content
to overflow the body and does not break animation of the tip as its
display property is always block.
2016-06-24 17:18:44 +02:00
Aaron Bohy 97a8ff9909 [IMP] im_livechat: unpin old sessions in the autovacuum cron 2016-06-24 16:34:00 +02:00
Aaron Bohy 7d64bd5ed2 [IMP] im_livechat: add gc of empty sessions in the autovacuum cron 2016-06-24 16:34:00 +02:00
Aaron Bohy 1339180ba8 [ADD] base: ir_actions: target attribute for ir_actions_client
Allows to open a client action in a dialog, fullscreen, or in the current
window with a cleared breadcrumb
2016-06-24 16:26:05 +02:00
Joren Van Onder fbf8d26255 [IMP] point_of_sale: don't print the stock name on receipts
Most users don't care about this and find it confusing that on their
receipt they end up with the word 'Stock' (default stock location name).

Fixes #11733
2016-06-24 16:11:07 +02:00
Olivier Dony e7f6d3bc11 [FIX] ir.config.parameter: error in new API conversion
The conversion at eb04aa1e39
failed when `force=True`.
2016-06-24 14:23:29 +02:00
Olivier Dony ed695de2a0 [IMP] ir.config.parameter: unused imports 2016-06-24 14:23:29 +02:00
Fabien Pinckaers 31207d82b5 [IMP] hr_expense: does not depend on workflow anymore 2016-06-23 14:27:43 -07:00
Fabien Pinckaers ff7a40c1c9 [FIX] utm: employees should be able to edit UTM (e.g. HR Job recruitment tracker creation 2016-06-23 11:21:35 -07:00
Christophe Matthieu f5797ae1b6 [IMP] qweb: add backward compatibility for t-field-options 2016-06-23 12:03:03 +02:00
Christophe Matthieu 2dc19eb6f0 [FIX] qweb: use python builtins for safe_eval._BUILTINS key instead of value.get('key') 2016-06-23 12:03:03 +02:00
Christophe Matthieu 566cfd494b [FIX] website_hr_recuitment,hr_expense,website_sale: t-field-options use new qweb syntax
Use 'True' instead of 'true' because 'true' key does not exist.
2016-06-23 12:03:03 +02:00
Christophe Matthieu 17032dcb03 [IMP] ir.qweb: better error message (same traceback message) 2016-06-23 12:03:03 +02:00
Raphael Collet 1ba91042d6 [FIX] fields: do not serialize more digits than necessary in monetary._symbol_set()
Add a class for float objects that carry their precision digits, use it for the
value of monetary fields in record cache, and serialize them as expected for
the database.
2016-06-23 10:08:57 +02:00
Géry Debongnie 11f88c8cd4 [FIX] web, web_kanban: make qweb default dict configurable
In a previous refactor, qweb configuration was simplified.  However, I
missed the fact that session.js sneakily configure the qweb instance
after the fact. As a result, the kanban view did not have the _s key in
its custom qweb instance default dict.  This commit allow the qweb class
constructor to add default keys to the instance.

Now, kanban view can add _s, and everything is good.
2016-06-23 09:34:49 +02:00
Fabien Pinckaers bb7f933818 [IMP] project: tour americanization of copywriting by jwr 2016-06-22 14:27:59 -07:00
Simon Lejeune 314a680ab4 [FIX] web_editor: save method of RTE is async
So if you include this method without returning the deferred, weird
things happen and i lose a lot of time.
2016-06-22 17:56:22 +02:00
Yannick Tivisse 24d8fe0aef [IMP] project: Add 3 steps in web_tour 2016-06-22 16:04:06 +02:00
qsm-odoo 6227abe355 [FIX] web_tour: anchor events
* Correctly bind "input" (instead of "change") or "mousedown" event
according to the anchor type. Also, only valids left clicks.
* Correctly unbind these events.
2016-06-22 11:52:42 +02:00
qsm-odoo ec6083c0c3 [FIX] web_tour: observe when dom is ready
Start observing the DOM (MutationObserver) only when it's ready.
2016-06-22 11:52:42 +02:00
Christophe Matthieu 8d09a11cea [FIX] web: FieldX2Many must use AbstractManyField is_false method
If the method return false, when a user write require="1" on a x2many field, the content is valid that there have none or a value.

The method was overwrited for a visual change (display the field x2m in readonly mode when they are not value) but is_false is priority use to ensure datas.
2016-06-22 09:25:25 +02:00
Fabien Pinckaers 5fd1f50577 [FIX] expense: when paid by company: marked as paid directly 2016-06-21 17:26:37 -07:00
Fabien Pinckaers b0c9ee669b [FIX] Product view opens as a list view
[IMP] improved planner content
[IMP] Misc usability improvement:
	cost instead of sale price on product form
	improved views and terminologies
	journal entry is RO
2016-06-21 17:23:49 -07:00
Raphael Collet 8be3781501 [REM] ir_actions: remove no-longer-supported field auto_refresh from act_window 2016-06-21 17:56:56 +02:00
Christophe Simonis da53a27a5d [MERGE] forward port of branch saas-11 up to c88c70e 2016-06-21 16:24:38 +02:00
Yannick Tivisse f066b1ec4f [IMP] hr_expense: Onboarding improvement + mail gateway
1/ Modify the no content help message for hr_expense with a dynamic part
   which describe how to create a new expense by mail
2/ Mail gateway mechanism. New customizable email alias expense@domain
   that creates a new expense by sending an email to it. Check several things
   - Check that the email_from is the same than one of the employees or than
     on of the related users to employees. If not, send back an email to say that
     the expense will not be created.
   - If the email address is valid, check if something is between brackets '[]'
     If it is the case, check if it is linked to a product internal reference
     and set it accordingly. If nothing is found, use a default product
     'Fixed Cost'
   - If one/several float(s) are found in the mail subject, take the last
     occurence and set it as the expense total amount.
3/ If a product template is created, to not add taxes on it. We don't expect it
   to have additional taxes
4/ Under Expenses -> Configuration -> Expense Product, use a simplified product
   view with only the needed fields.
5/ When generating the account move lines, use the account defined on the expense
   line, not the sheet
6/ When creating a payment, make a reconciliation on the payable account move lines
   That way, if the total amount on the expense is paid, the expense will be set to
   paid automatically when registering a payment
7/ Add a one-page planner to explain how to use the email alias
8/ The field account_id on the expense sheet was informative. After some tests, it
   seems that it's more confusing than helping. So we removed it
9/ Add a domain on the field 'bank_journal_id' to select journals of
   type 'cash' or 'bank'
10/ If the number of expense lines is equal to 1, the expense summary on the expense
    sheet should be the same name the line. So the process can be done in one click
2016-06-21 14:09:48 +02:00
Christophe Simonis c88c70e900 [MERGE] forward port of branch saas-10 up to d73f0d8 2016-06-21 13:58:24 +02:00
Christophe Simonis d73f0d8063 [MERGE] forward port of branch saas-9 up to 68f5163 2016-06-21 12:42:34 +02:00
Christophe Simonis 68f51630b9 [MERGE] forward port of branch 9.0 up to e8827d0 2016-06-21 12:16:53 +02:00
Christophe Simonis e8827d013f [MERGE] forward port of branch saas-6 up to be94653 2016-06-21 11:59:15 +02:00
Christophe Simonis be94653462 [MERGE] forward port of branch 8.0 up to fe15829 2016-06-21 11:55:55 +02:00
Christophe Simonis 0a2317d303 [FIX] test_new_api,web: tests 9.0 adjustments
Rev e37ba61 forward-ported 8.0 revision f02b230 from PR #12379.
This patch introduces extra tests and views for o2m onchange behavior,
including new fields in the test models.

In 9.0 a new convert_to_onchange() mechanism had been
introduced at 9f81c6d

The combination of both requires some adaptation to the
expected results of the new tests and adaptation of existing tests.

The test models in `test_new_api` have an implicit depencies between
models which cannot be express on ORM:
    messages depends on participants of their discussion.

So, when editing a discussion, the field `participants` should be
processed before field `messages`. This is not always done because
field processing order depends of the iteration order of a `dict` (which
is undefined in python).
The testing tour `widget_x2many` worked by chance until now.
Adapt the tour to save the participants before the messages.
2016-06-21 11:23:18 +02:00
Josse Colpaert fe15829c16 [IMP] stock: when applying a push rule the new move should not be linked to the same procurement anymore 2016-06-21 10:16:07 +02:00
Jérome Maes bd61e9f651 [FIX] google_calendar : rename 'class' field into 'privacy'
Complete the commit dae0157d7b. Thanks to jke ;)
2016-06-21 09:08:16 +02:00
Jérome Maes dae0157d7b [REF] calendar: rename 'class' field on calendar.event
'class' is a reserved name in python. This will cause problem during new API migration.
2016-06-20 16:19:32 +02:00