Commit Graph

91826 Commits

Author SHA1 Message Date
Géry Debongnie cd1eaabe11 [FIX] fix wrong filter in opportunity view (crm)
There was two problems:
* it was filtering on the probability of the opportunity, not on the
probability of the stage
* the filters were not prefixed with '&', which means that they gave
weird results when combined in the searchview (in a filter group, filters
are combined with '|', but it breaks when the filters are defined by
an implicit '&')
2014-11-20 13:23:04 +01:00
Christophe Simonis f51d4ea6d0 [MERGE] forward port of branch saas-3 up to 6c13c8d 2014-11-20 11:37:23 +01:00
Denis Ledoux 6cb2c9edc6 [FIX] base: copy access rights on group duplication 2014-11-19 19:09:57 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Xavier Morel 35a257dbfd [REM] duplicated package in requirements, sort 2014-11-19 17:07:28 +01:00
Henri-Maxime Ducoulombier 53bfc709e7 [IMP] doc: incorrect value documented
closes #3761
2014-11-19 16:50:56 +01:00
Christophe Simonis 6bbc21b906 [FIX] graph.py: correct Node() creation.
Fixes #3730
2014-11-19 15:14:14 +01:00
Denis Ledoux 6c13c8d966 [MERGE] forward port of branch 7.0 up to 529e920 2014-11-19 14:06:48 +01:00
Denis Ledoux 529e920b2c [FIX] mrp: perform location chaining for kit exploded moves
This rev. 7307227 ensured to not (re-)set the state 'confirmed' to exploded moves with a more advanced state (for instance, 'assigned')
Nevertheless, the location chaining is performed on the move confirmation, through the action_confirm method of the stock.move model. Besides, the resulting moves of the _action_explode method had the state 'confirmed' on creation, the 'confirmed' state wasn't set by the method 'action_confirm', meaning that the moves were confirmed without having the location chaining done. Allowing moves to go through the action_confirm method even if the state was 'confirmed' or further triggered the location chaining.

Preventing already confirmed moves to go through the action_confirm method prevented the location chaining, thus.

We now create the resulting moves with the 'draft' state, and then confirm them through the procurement workflow signal 'button_confirm'. Thus, the resulting moves are confirmed by going through the action_confirm method, writing the confirmed state and triggering the location chaining at the same time. We then write the 'assigned' state if necessary.

opw-617235
2014-11-19 14:04:05 +01:00
Olivier Dony c87b9c6539 [FIX] decimal_precision: avoid refreshing float precisions at each cache invalidation
Changing the decimal precision of float fields is a rare
operation, while cache clearing occurs fairly frequently.
Signaling a full registry change when the decimal precision
is changed (instead of a mere cache change) is therefore
a better trade-off, and more semantically correct as well.
This way we avoid the decimal precision refresh for each
invalidation.

Registry invalidation implies cache invalidation.
2014-11-19 12:53:58 +01:00
Martin Trigaux 8ce89736e9 [FIX] web: force company logo refresh per db
The company_logo is cached and was not refreshed when switching between database, still showing the logo of the company of the previous database
Fixes #2738
2014-11-19 12:50:27 +01:00
Leonardo Pistone 56d1461905 [REM] python-stdnum from requirements
It is never used in the code, and causes problems with wheels: related
to pypa/pip#2105

closes #3744
2014-11-19 12:38:36 +01:00
Julien Legros aecb24ad6b [FIX] website_sale: don't carry over tx details on SO duplication
opw-617319
2014-11-19 11:43:02 +01:00
Antony Lesuisse fb9794835b [FIX] windows ctrl-c from cmd as a non admin
return False when calling is_running_as_nt_service from a non adminstrator
account.
2014-11-18 23:27:48 +01:00
Antony Lesuisse aa9eec3497 [FIX] server.py traceback on ctrl-c from windows cmd
Define a shim signal.SIGHUP on windows to avoid an ifdef in the threaded server
loop.
2014-11-18 23:04:21 +01:00
Frederic van der Essen 7999965af6 [FIX] requirements.txt: add info about optional python requirements used for the point of sale receipt printing 2014-11-18 19:06:21 +01:00
Frederic van der Essen 6111cf9873 [FIX] hw_escpos: use logger instead of prints to avoid corrupting the odoo.py command line interface. 2014-11-18 19:03:20 +01:00
Martin Trigaux 0b2ee16885 [FIX] project: access rights and followers
For privacy_visibility 'followers' or 'portal', the user should be follower of the project (not the task).
Remove public access to portal task
Fixes #2372

If no project on the task (or other rule), an employee (not a portal) can access if is follower of the task.
Follower rule is not enough as a user creating a rule will subscribe to the rule but to subscribe to record, the user should have access to it in the first place.
To make sure the snake does not bit its tail, fallback to give access on task where the user is reponsible (user_id = user.id).
Fixes #139

Adapted the tests to the new behaviour (removed not relevant and added some on creation)
2014-11-18 18:52:46 +01:00
Martin Trigaux 0afa4c7f52 [IMP] point_of_sale: make the sequence field configurable 2014-11-18 18:52:46 +01:00
Frederic van der Essen bb7a9dea8b [FIX] point_of_sale: fix point of sale sequence declaration, github issue #3218 2014-11-18 18:04:30 +01:00
Christophe Simonis bec407dd3a [FIX] website_forum: load js files in the right order. 2014-11-18 17:42:13 +01:00
Josse Colpaert 506c52bcd1 [FIX] Avoid access error on XML id in browse when choosing picking type for manual purchase order. As they are ordered by sequence, just take the first you can find. 2014-11-18 17:22:32 +01:00
Denis Ledoux 02270bd0fd [FIX] account: do not duplicate analytic lines on analytic journal duplicate 2014-11-18 16:27:57 +01:00
Jeremy Kersten c41109f2f0 [FIX] website_forum:
Remove useless document ready
   Add select2 to frontend to allow public user to use tags
2014-11-18 16:20:58 +01:00
Frederic van der Essen 60faccdcc3 [FIX] point_of_sale: remove a confusing partial implementation of UoS 2014-11-18 15:38:18 +01:00
Jeremy Kersten 3288f07eaa [FIX] website_forum:
Use if_dom_contains to check if we need to load js
   Fix bug where _tag_to_write_vals was called like old API but model converter was new api
   Move IsKarmaValid and Load CKE only in website_forum context
2014-11-18 14:31:36 +01:00
xmo-odoo d80f2a716b [IMP] doc: try to clarify what $as is in qweb doc 2014-11-18 13:53:20 +01:00
Stéphane Bidoul d247f6c9e2 [IMP] account_payment: remove dead voucher code and extension hook
Since bank statement do not use vouchers anymore in 8.0,
it's not necessary to create the voucher anymore.

Additionally, I add an extension point to let modules adapt
the statement line.
2014-11-18 13:32:47 +01:00
qdp-odoo ab640d2704 [FIX] account_payment: fixed the view of payment order to display the amount of transactions 2014-11-18 13:32:46 +01:00
Simon Lejeune f06c9aee36 [ADD] account_budget: theoretical amount: tests 2014-11-18 12:32:58 +01:00
Simon Lejeune 4bdf04578d [FIX] account_budget: theoretical amount: ignore future and use datetime 2014-11-18 12:32:58 +01:00
Denis Ledoux 1561a528a5 [FIX] website_sale: product website description must be translatable 2014-11-18 11:41:27 +01:00
Jeremy Kersten fc329b6eeb [FIX] website_forum: use common method to compute tags for orm 2014-11-18 11:27:09 +01:00
Tymoteusz Motylewski f0c024a6f7 [FIX] doc: incorrect class access in new api guide
When creating a class with the new API, we should use models.Model
instead of just Model.

closes #3713
2014-11-18 11:18:37 +01:00
Xavier Morel f90dd77fff [FIX] doc: double period in footer 2014-11-18 11:18:14 +01:00
Xavier Morel 5ed0739e73 [FIX] doc: latex building
* add latex support for exercise admonition
* latex freezes/crashes on {HEAVY WIDE-HEADED RIGHTWARDS ARROW} so
  replace them by more manual arrows
* add some preamble configuration, may not even be necessary
* generate WS setup code only in HTML output. WS doc in latex still
  isn't great as it displays all 4 languages one after the other,
  ideally they should be tagged or something, so only one language at a
  time is generated in non-HTML outputs
2014-11-17 17:43:26 +01:00
Jeremy Kersten 86a6619dc8 [FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install... 2014-11-17 16:50:52 +01:00
Jeremy Kersten 90b88e33cb [FIX] website_forum - replace texttext by select2 for the tags fields 2014-11-17 16:50:34 +01:00
Xavier Morel c92e70b929 [IMP] doc: improve index, WS page 2014-11-17 16:25:34 +01:00
Xavier Morel a4d2f04564 [IMP] doc: have ws page take whole page width
Doc pages used container() which is width-limited, works acceptably for
single-column content but WS page takes 2 columns with code, having as
much space as possible is a much better idea.

Mayhaps it should even use lg-column(2) instead of md-column(3)?
2014-11-17 16:20:43 +01:00
Xavier Morel a8f261b49c [IMP] doc: wording of method-calling introduction 2014-11-17 16:17:07 +01:00
Xavier Morel 8f784edce1 [IMP] doc: rename WS page, lift to top-level 2014-11-17 16:10:50 +01:00
Raphael Collet 86ba01976e [FIX] tests: make self.assertRaises() return the expected object 2014-11-17 15:39:14 +01:00
Xavier Morel 95c8250992 [IMP] doc: try to make some bits of the porting guide less confusing 2014-11-17 15:18:14 +01:00
Xavier Morel 1338f3af35 [IMP] doc: move old API sections to orm toplevel
also move porting checklist/doc/thing to bottom of document, it's mostly
for seasoned or internal developers
2014-11-17 15:14:22 +01:00
Xavier Morel c65ed4df76 [IMP] doc: more indexy index 2014-11-17 15:10:34 +01:00
Raphael Collet 908252ec88 [FIX] tests: make sure that a failed tests does not leave the environment dirty
When a failure occurs, or when exiting an assertRaises(), the environment
should not contain fields to recompute.
2014-11-17 14:07:42 +01:00
Xavier Morel f302c123ea [IMP] doc: indexify index
* opt-in toc navification
* unhide index toctree, it's now back to a list of documents
* remove text thing
2014-11-17 14:07:36 +01:00
Raphael Collet 2052c16d21 [FIX] ir_model: on a custom model, _rec_name should be 'x_name' if it exists 2014-11-17 12:05:37 +01:00
hiekmann 956bb08433 [fix] portal: typo in description
closes #3685
2014-11-17 11:31:27 +01:00