Commit Graph

91717 Commits

Author SHA1 Message Date
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
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
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
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
Josse Colpaert 2f5ca4380a Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit b213438176.
2014-11-17 09:44:10 +01:00
Josse Colpaert b213438176 [IMP] Remove unnecessary refresh statements because of new api 2014-11-17 09:24:06 +01:00
Denis Ledoux c7d8e9726b [MERGE] forward port of branch saas-3 up to c571413 2014-11-14 18:02:02 +01:00
Denis Ledoux c5714135c2 [MERGE] forward port of branch 7.0 up to 922a52d 2014-11-14 17:59:00 +01:00
Denis Ledoux 922a52dcde [FIX] web: date autocompletion should not harcode 'date'
But should use date or datetime according to the widget type

This fix is related to 69d60465ee
2014-11-14 17:57:10 +01:00
Martin Trigaux 0a7633c11e [FIX] purchase: keep PO currency on picking
The delivery of a purchase order was not keeping the currency and cost price
from the purchase order for the reception. This was problematic for orders where
the invoice was generated from the picking (Invoicing Control: Based on incoming
shipments). The currency of the purchase order was kept while the cost was the
one in the company's currency.
It's better to keep the currency of the purchase order to make the invoice as
it's usually the one expected (and not convert everything to the currency of the
company). opw 615555
2014-11-14 17:29:40 +01:00
Denis Ledoux d9e48bae42 [MERGE] forward port of branch saas-3 up to 7ab4137 2014-11-14 16:58:24 +01:00
Jeremy Kersten eb2e53276a [FIX] layout - use company name for attribut alt of company logo 2014-11-14 16:19:33 +01:00