Commit Graph
100 Commits
Author SHA1 Message Date
xmo-odoo 0a02325cd7 [FIX] web_kanban: value not in selection states
Non-required selection fields and incorrectly updated fields (e.g.
changed options but didn't fix existing values) trips KanbanSelection
badly leading to the entire kanban view failing to appear: the rendering
phase does not find the state in its states list and blows up when
trying to access the state's class.

Fix by adding a fallback default state with an empty class.
2016-08-25 14:54:46 +02:00
xmo-odoo 78fa186f88 [FIX] hr_contract: employee form statbutton's icon
The name of the icon on the statbutton was apparently broken during the
new-api migration (commit 095d0174fd),
leading to the icon not appearing on the "Contracts" button of the
Employee form.
2016-07-07 12:17:21 +02:00
xmo-odoo b3feb2358c [IMP] allow group_operator on any field
There's really no reason to limit group_operator to numeric fields and Postgres's flexible aggregate make the ability to aggregate on non-numeric fields (and/or non-numerically)

* moves group_operator to Field
* adds a default value of `sum` on integer, float and monetary fields
* in read_group, filters on fields with a group operator rather than by
  type (also allow id fields, since Id doesn't have a group_operator by
  default it will be ignored anyway) (sequence is still specifically
  excluded for now because they're usually regular Integer fields)

Closes #12372
2016-06-29 17:52:30 +02: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
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
xmo-odoo ef1fb844f5 [IMP] delivery: allow to set delivery price from XML-RPC call
(a method that returns nothing is not callable through XML-RPC)

Backport of dc043cf1bb to 9.0

Fixes #12289 and tinyerp/erppeek#87
2016-06-07 09:36:30 +02:00
xmo-odoo def824682e [FIX] purchase: properly forward defaults in copy override
fixes #12280
2016-06-03 13:01:55 +02:00
xmo-odoo 6d73087d96 [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-05-13 17:28:19 +02:00
xmo-odoo 67dafe33e2 [FIX] stock: no self.env in old-style API methods 2016-03-30 15:35:14 +02:00
xmo-odoo c41661ab83 [FIX] view inheritance tests
Validation error type changed from AttributeError to ValueError.
2016-03-22 13:29:54 +01:00
xmo-odoo c824e50b3f [FIX] scaffold: correctly decode utf8 templates
As its documentation notes[0], Jinja2 only processes unicode template
data (or pure ASCII, which will implicitly decode to unicode).

The scaffolding system would read raw scaffolding data in memory (both
templates and passthrough non-templates), but fail to decode templates
before handing them to Jinja, blowing rendering up if templates
contained non-ascii.

Fix #11331 by always decoding templates from UTF8 before handing them
to jinja. This is backwards-compatible, ascii templates work as they
used to, non-ascii UTF8 templates now work correctly, non-ascii
non-UTF8 templates what are you doing?

[0] http://jinja.pocoo.org/docs/dev/api/#unicode
2016-03-15 11:25:16 +01:00
xmo-odoo 686b039651 [REM] mistaken file addition 2016-02-10 17:38:37 +01:00
xmo-odoo 19a1c18f57 [FIX] make m2m checkbox labels clickable 2016-01-29 16:24:14 +01:00
xmo-odoo edeb5a8c0f [FIX] module finder path parameter should be optional
According to PEP302, the signature of `Finder.find_module` should be 
`find_module(fullname, path=None)`.

Ever since it was introduced in 64ec5f36df the addons import hook 
defines the second parameter as mandatory, which is an issue for
systems relying on the specified behaviour (and not needing to
provide a path) like the stdlib's `pkgutil.find_loader`.

fixes #10670
2016-01-29 10:20:08 +01:00
xmo-odoo 7c0e734785 [FIX] strip group name before calling has_group
user_has_groups is used to check for groups in e.g. view attributes (`@groups`).
When trying to format lists of groups in views, it would break down as it would 
pass e.g. `\n        some.group` to `res.users.has_group`, which would look for 
an xid with the module `\n        some` and (oddly enough) not find it.

Theoretically could also handle that inside res.users.has_group but it seems
ever-so-slightly more risky, and has_group is only used programmatically and 
should thus already be called correctly.

fixes #9797
2015-12-21 10:30:37 +01:00
xmo-odoo 249d0215c6 [FIX] website: saving new menu items
simplejson and the builtin json module apparently differ in how they
decide to optimise decoding JSON strings to str rather than unicode
python strings, so check for basestring rather than one or the other.
This may also depend on the Python version.

Closes #8726
2015-10-02 15:36:13 +02:00
xmo-odoo d2d8d1ca5d [REM] hr_applicant_document: view file reintroduced during forward port
The whole module had previously been removed.
2015-09-09 12:32:22 +02:00
xmo-odoo 134c3b80e7 Merge pull request #8290 from Yenthe666/patch-1
[IMP] hr_jobs: better grammar in demo data
2015-08-31 09:32:51 +02:00
xmo-odoo 8375bb43c3 Merge pull request #8284 from raycarnes/patch-8
[FIX] crm: grammar and spelling in README.md
2015-08-31 09:31:06 +02:00
xmo-odoo 37868748ca [FIX] web: serialize debug_jobs
Otherwise the display in the server log (when spammed by phantomjs) is completely useless
2015-08-12 17:54:00 +02:00
xmo-odoo d4cc447427 Merge pull request #7651 from fhe-odoo/patch-12
Fix typo in install doc
2015-07-17 11:36:34 +02:00
xmo-odoo 78cd97d7b7 [FIX] base_gengo: broken import
There is no openerp.osv.api
2015-07-13 15:12:31 +02:00
xmo-odoo 6de6662ecb Merge pull request #6789 from savoirfairelinux/7.0-fix_account_move_line_exception_translation
[FIX] incorrect translation marking
2015-05-21 10:14:40 +02:00
xmo-odoo 7535eaaedc [IMP] doc: note that accounting memento is US GAAP
So as not to confuse people looking for EU/IFRS accounting.
2015-04-15 10:19:28 +02:00
xmo-odoo 46da7ac326 [ADD] doc: link to functional mementoes 2015-04-07 20:52:40 +02:00
xmo-odoo 48e059d04f [FIX] api doc: typo 2015-04-07 13:02:26 +02:00
xmo-odoo d9c9ac72da [FIX] export: decode Field strings before comparisons
Allows exporting fields whose string is a non-ascii *byte*string (rather than unicode).

backport of 7286f4e424 fixing #773 to branch 7.0 by request of @flotho
2015-03-06 13:12:50 +01:00
xmo-odoo 3956210a8b [IMP] qweb doc: debugging directives
fixes #4547
2015-03-03 17:02:33 +01:00
xmo-odoo d87aedb731 [FIX] doc: missing self params in examples 2015-02-04 14:34:13 +01:00
xmo-odoo b94e5f7a8d Merge pull request #4964 from odoo-dev/master-cli-remove-unused-options-xmo
Removes unused CLI options and the underlying code bits
2015-01-29 13:25:19 +01:00
xmo-odoo b270e4f77f Merge pull request #4427 from savoirfairelinux/7.0-fix-issue-4424-duplicate-db
[FIX] Issue #4424
2015-01-12 16:37:11 +01:00
xmo-odoo d80f2a716b [IMP] doc: try to clarify what $as is in qweb doc 2014-11-18 13:53:20 +01:00
xmo-odoo 7c8c6a77c7 Merge pull request #2375 from odoo-dev/8.0-webclient-doc-xmo
Port web client tutorial fully (-ish), improve JS doc.
2014-10-07 10:50:59 +02:00
xmo-odoo 1a29c81703 Merge pull request #2269 from odoo-dev/8.0-qweb-doc-and-fixes-xmo
QWeb documentation, fixes and improvements
2014-10-07 09:53:57 +02:00
xmo-odoo 2e31aa4bf8 [FIX] doc: branch name in configuration
The branch name is used in the version switcher, so the master branch should have a version of "master".

Maybe the release could be the revision hash? Not sure how to extract it from the repo.
2014-10-01 15:21:47 +02:00
xmo-odoo e7422b2f3a [REVERT] typo 2014-10-01 15:19:20 +02:00
xmo-odoo a1eacb9054 [FIX] doc: branch name in configuration
The branch name is used in the version switcher, so the master branch should have a version of "master".

Maybe the release could be the revision hash? Not sure how to extract it from the repo.
2014-10-01 15:02:20 +02:00
xmo-odoo 2796604b49 Merge pull request #2796 from gurneyalex/8.0-improve_report_not_found_exception
[FIX] lookup_report: exception message when the report is not found
2014-09-30 12:54:32 +02:00
xmo-odoo 85109a2fbb Merge pull request #2789 from erwin-bas-solutions/translation-timesheet-alert
[Fix] hr_timesheet: Make alert translatable
2014-09-30 10:30:39 +02:00
xmo-odoo 77a0ca6864 Merge pull request #2620 from savoirfairelinux/8.0-http-unicode
Fix two possible UnicodeDecodeError when an exception occurs
2014-09-29 15:24:22 +02:00
xmo-odoo c85547477c [FIX] doc readme: the list of versions uses commas
it's not space-separated
2014-09-29 13:40:10 +02:00
xmo-odoo 7ae756fab2 Merge pull request #2766 from Nick-OpusVL/patch-1
Fix spelling error of Human Resources
2014-09-29 13:37:55 +02:00
xmo-odoo 9a3b48de0f Merge pull request #2173 from pedrobaeza/8.0-module_icon_field_size
[FIX] Size for icon field of ir_module_module table in base.sql

fixes #2095
2014-09-04 09:38:23 +02:00
xmo-odoo b4b40a47c1 Merge pull request #1343 from vice/master
[FIX] data dir when home is not a directory
2014-09-02 08:22:04 +02:00
xmo-odoo 9c2f093611 Merge pull request #2113 from yvaucher/8.0-fix-ir_model-undefined-xml_id
fix typo on undeclared variable xml_id
2014-09-02 07:56:27 +02:00
xmo-odoo 53c88c7ee0 Merge pull request #2058 from andreparames/patch-1
[FIX] translations loading for selection fields in website
2014-08-29 09:34:58 +02:00
xmo-odoo 53c13c91bf Merge pull request #1945 from MadeleineHero/master
[FIX] typo
2014-08-25 09:05:19 +02:00
xmo-odoo b8b947ffa4 [IMP] catch & warn about any TTFontFile exception
It turns out TTFontFile can throw not only TTFError (generic) and KeyError, but also ValueError (unknown cmap) and maybe others.

Just catch Exception, warn that the font couldn't be loaded and report why.
2014-08-21 03:51:20 +12:00
xmo-odoo 6a544d0eb9 Merge pull request #1875 from ma78nee/patch-1
Little description mistake
2014-08-20 11:01:06 +02:00
xmo-odoo c544a906b8 Merge pull request #1391 from savoirfairelinux/7.0-translate-trans_generate_debug_print
[FIX] translate: Fix debug print when parse path list to translate.
2014-07-29 13:51:48 +02:00
xmo-odoo c291a049ba Merge pull request #1306 from gde-odoo/patch-1
Update stock.rst
2014-07-22 13:35:08 +02:00
xmo-odoo ec89c9cead Merge pull request #1169 from xmo-odoo/8.0-remove-async-db-create-xmo
Remove asynchronous XML-RPC database creation function
2014-07-16 10:29:21 +02:00
xmo-odoo 3385666632 Merge pull request #1166 from xmo-odoo/8.0-jobs-list-geo-xmo
8.0 jobs list geo xmo
2014-07-16 10:29:12 +02:00
xmo-odoo 16d67445da Merge pull request #1076 from xmo-odoo/8.0-shop-fix-xmo
Fix access rights issues in new API for the shop home page
2014-07-16 10:28:51 +02:00
xmo-odoo 511efddd02 Merge pull request #1160 from xmo-odoo/8.0-custom-models-xmo
Handling of custom models initialisation
2014-07-15 12:40:35 +02:00
xmo-odoo 4acee39f80 Merge pull request #1144 from flh/dashboard_translate
Add missing _t() calls to enable translation in dashboard.js
2014-07-14 12:27:02 +02:00
xmo-odoo f5fb6613d6 Merge pull request #998 from xmo-odoo/8.0-module-descriptions-xmo
Don't include xml declaration when compiling rST module descriptions to HTML
2014-07-08 15:31:38 +02:00
xmo-odoo 957c0cca1c Merge pull request #970 from xmo-odoo/8.0-remove-unnecessary-listifications-xmo
Remove redundant calls to list()
2014-07-07 16:15:23 +02:00
xmo-odoo 48c16e4b26 Merge pull request #969 from xmo-odoo/8.0-fix-weakset-listification-xmo
Unsafe listification of weakref in Python < 2.7.4
2014-07-07 16:15:02 +02:00
xmo-odoo cd7e9a98d4 Merge pull request #967 from xmo-odoo/master-id-type-xmo
Raise exception when a DB request fetches ids it was not asked for
2014-07-07 13:23:50 +02:00
xmo-odoo 7f9d1f42bf Merge pull request #893 from nafex/patch-1
[FIX] missing quotation mark in ir.model.access.csv
2014-07-07 12:04:45 +02:00
xmo-odoo fbdfc0065c Merge pull request #947 from chrispetsos/odoo-807
Changed follower's e-mail to reference Odoo instead of OpenERP, fixes #807
2014-07-07 10:37:23 +02:00
xmo-odoo 74de2461a1 Merge pull request #926 from xmo-odoo/master-cleanup-gauge-xmo
Fix implicit globals in kanban_gauge JS
2014-07-07 09:50:48 +02:00
xmo-odoo 2c23b0020b Merge pull request #881 from xmo-odoo/master-qweb-lxml-xmo
Convert qweb (Python) to use lxml
2014-07-02 19:28:24 +02:00
xmo-odoo 003e910e61 Merge pull request #662 from xmo-odoo/master-simplify-bit-xmo
Simplify bit of code
2014-06-20 09:28:41 +02:00
xmo-odoo 578c8832f6 Merge pull request #663 from xmo-odoo/master-remove-pg1cursor-xmo
Remove psycopg1.cursor usage
2014-06-20 08:53:15 +02:00
xmo-odoo cdf87a2063 Merge pull request #648 from odoo-dev/7.0-fix-searchbar-navigation-ged
[FIX] fixes searchbar navigation (web client)
2014-06-19 13:31:41 +02:00
xmo-odoo 697a055db7 Merge pull request #643 from xmo-odoo/fix-svg-in-rte
Ignore SVG elements when looking for edition events
2014-06-19 12:09:39 +02:00
xmo-odoo ab43946d21 Merge pull request #639 from tfossoul/patch-2
Record values should not be passed by keyword to "Model.create": there
is no requirement or guarantee that overriding methods call the
parameter "vals".
2014-06-19 09:58:53 +02:00
xmo-odoo 81c174b740 Merge pull request #630 from xmo-odoo/master-website-save-datetime-xmo
website: missing timezone conversion back to UTC on save
2014-06-18 17:18:14 +02:00
xmo-odoo 3160eb74c4 Merge pull request #584 from xmo-odoo/master-qweb-groups-xmo
`@groups` attribute in qweb views
2014-06-18 09:37:02 +02:00
xmo-odoo 8482632c9b Merge pull request #354 from xmo-odoo/editor-xmlid
[IMP] add XID to view name in Ace editor dropdown
2014-06-17 16:24:04 +02:00
xmo-odoo 02677579d2 Merge pull request #590 from xmo-odoo/master-public-binary-xmo
Make attachment data available under public by default
2014-06-17 15:56:53 +02:00
xmo-odoo c949509b5e Merge pull request #463 from xmo-odoo/qweb-foreach
Qweb foreach
2014-06-17 15:56:09 +02:00
xmo-odoo 0f72f6517d Merge pull request #525 from xmo-odoo/master-fix-website-postprocess-xmo
Fix postprocessing of request arguments in website
2014-06-17 15:55:55 +02:00
xmo-odoo aa0e831626 Merge pull request #157 from odoo-dev/master-improve-import-ypa
Add div tag and oe_padding class to display the question
2014-06-06 13:40:21 +02:00
xmo-odoo 929ca342e2 Merge pull request #394 from nbessi/restore-setup.py
Move setup.py in previous root in order not to break community tools based on it.
2014-06-06 12:47:25 +02:00
xmo-odoo 24141a64b7 Merge pull request #338 from savoirfairelinux/scaffold-pep8
[FIX] pep8 errors generated by odoo.py scaffold
2014-06-06 11:52:41 +02:00
xmo-odoo 81da5a9016 Merge pull request #408 from sergeifilippov/patch-1
Update README.md
2014-06-06 11:51:00 +02:00
xmo-odoo e583fccf44 Merge pull request #353 from xmo-odoo/unrestrict-view-write
[IMP] views: don't prevent always -> disabled writes
2014-06-06 11:48:09 +02:00
xmo-odoo 254c65b0c4 Merge pull request #352 from xmo-odoo/command-shebang
[FIX] shebang on odoo.py
2014-06-05 15:53:49 +02:00
xmo-odoo 14fb733ab2 Merge pull request #183 from odoo-dev/urlencodify
Improve handling of website image fields
2014-05-23 15:13:13 +02:00
xmo-odoo 576b00a196 Merge pull request #174 from odoo-dev/tnx-remains
Various ex-module remains
2014-05-23 12:21:33 +02:00
xmo-odoo b27a3351af Merge pull request #54 from driou/master
Error (dupe) in a command of the readme
2014-05-19 15:45:31 +02:00
xmo-odoo be77d7a128 Merge pull request #51 from katyukha/oe-fix-1
Fixed bug in 'oe' script when passing no arguments
2014-05-19 14:12:57 +02:00
xmo-odoo 7d00167dbb Merge pull request #48 from xmo-odoo/doc-fixes
[FIX] indentation and formatting of various rst snippets
2014-05-19 14:00:58 +02:00
xmo-odoo f1a1c6e988 Merge pull request #46 from katyukha/setup-py-scripts-fix
Added openerp-gevent and oe to 'scripts' section in setup.py
2014-05-19 12:30:31 +02:00
xmo-odoo 201701f38c Merge pull request #38 from cysnake4713/master
[FIX] report set_html_image error
2014-05-19 11:40:53 +02:00
xmo-odoo 072485799c Merge pull request #27 from lyinfo/master-ck-match
Dereferencing of nones could lose error messages during import
2014-05-19 10:18:27 +02:00
xmo-odoo 59101be73b Merge pull request #44 from xmo-odoo/master-gitignore
[FIX] missing gitignore server rules
2014-05-19 10:16:44 +02:00
xmo-odoo 3571a3dcc3 Merge pull request #43 from xmo-odoo/website-tutorial
First howto: tutorial to basic website features (dev-wise)
2014-05-19 09:55:22 +02:00
xmo-odoo 5313714530 [FIX] replace a few more references to trunk with master 2014-05-19 09:48:28 +02:00
xmo-odoo 24d594ab94 [FIX] mainline branch is called master in git 2014-05-19 09:32:53 +02:00
xmo-odoo 707366313c [FIX] small typo in readme
fixes #39
2014-05-18 17:24:22 +02:00
xmo-odoo e7e4f8cefa [IMP] remove setting of color.ui
After further considering PR #21's arguments, the setup script should
not go around setting `color.ui`:

* it shouldn't be needed for recent gits with default compile
  settings[0]
* it may override advanced users's own colour configuration/
  customisations (or disabling)
* it forces default colours on users for which it may be useless
  (colour- blind) or even detrimental (other vision impairments)
* some linux distributions apparently default to idiotic pagers which
  can't handle ANSI colour codes by default and spew garbage to the
  terminal

[0] https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.4.txt#L178-L180
2014-05-17 16:02:15 +02:00
xmo-odoo 59354d5bf3 [IMP] remove setting of color.ui
After further considering PR #21's arguments, the setup script should
not go around setting `color.ui`:

* it shouldn't be needed for recent gits with default compile
  settings[0]
* it may override advanced users's own colour configuration/
  customisations (or disabling)
* it forces default colours on users for which it may be useless
  (colour- blind) or even detrimental (other vision impairments)
* some linux distributions apparently default to idiotic pagers which
  can't handle ANSI colour codes by default and spew garbage to the
  terminal

[0] https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.4.txt#L178-L180
2014-05-17 11:44:09 +02:00
xmo-odoo 31e89ca6d0 [FIX] Turns out process substitution is not POSIX
A pipe does not work because the script asks questions, and required
parameters would miss the point.
2014-05-16 19:01:09 +02:00
xmo-odoo dcf326ab61 Merge pull request #9 from xmo-odoo/gitignore
[ADD] convert bzrignore to gitignore
2014-05-16 16:10:13 +02:00
xmo-odoo 8cdcf0bdca [IMP] simplify color configuration
* don't set globally
* set for ui, not each command individually
2014-05-16 15:11:40 +02:00
xmo-odoo 067469f8db [FIX] quick-setup command
Prompts don't work with curl | sh as the stdin gets filled with the nothing out of curl
2014-05-16 11:34:43 +02:00