summaryrefslogtreecommitdiff
path: root/doc/_extensions/odoo_ext
AgeCommit message (Collapse)Author
2021-05-04[MOV] doc: move documentation to a dedicated repositoryVictor Feyens
In odoo/documentation-user#945, the developer documentation is merged with the user documentation in a single repository and build config. This commit then removes source files for the developer documentation from the odoo/odoo repository. DOC PR: https://github.com/odoo/documentation-user/pull/945 task-2351938 task-2352371 task-2205684 task-2352544 Co-authored-by: Victor Feyens <vfe@odoo.com> Co-authored-by: Antoine Vandevenne <anv@odoo.com>
2020-11-17[DOC] A doc page for the extract APISébastien Mottet (oms)
This doc page details the extract API and has the following structure: - Service explanation. - Expected successful flow - Description of the 3 routes (request and response structure) - /parse - /get_results - /validate - Hint for integration testing closes odoo/odoo#61051 Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
2020-10-19[FIX] *: update document linksSwapnesh Shah
Before this commit, links to the documentation were referenced the previous version, 13.0, instead of the current one, 14.0. Eventhough there is a redirection done by NGINX of a "versionless" URL to the latest one (e.g. /documentation/user/general/auth/google.html -> /documentation/user/14.0/general/auth/google.html as of today), the goal is to keep links owrking for users that will still be using the 14.0 in three years (and should not endup on the 17.0 doc). closes odoo/odoo#59554 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-06[FIX] doc: correct link for runbotSwapnesh Shah
Following the last summer runbot update, the URLs have changed closes odoo/odoo#59234 X-original-commit: 7eaec4b2693b9aea67cfbde5d19dda152fd9f395 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-22[ADD] doc: port the searchbar from user to dev docsRaf Geens
The developer documentation already has a search functionality via Sphinx if you use the right URL, but it was not exposed in the frontend. This commit ports the search bar from the user documentation. Original commits: 17fc4219bd24e8993fc5ab3c00d9979f87a45e84 (rim) and 52e49eda472963e929ec7b004eae20c514364403 (kts) from https://github.com/odoo/documentation-user/ closes odoo/odoo#58209 X-original-commit: b38059caf59a3fbd67989d89317cfdc9f3be35a3 Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-07-28[FIX] doc: remove <act_window> and <report>Xavier Morel
* remove <report> and <act_window> form the backend tutorial * remove documentation for <report> in the report doc Also various fixes and improvements: * add ACL to the wizard in the tutorial, as transients now require ACLs * fix indentation & spacing in rST * reword a few bits * improve styling of footnote references (and recompile stylesheet with recent lessc which apparently changes its output formatting quite a bit)
2020-04-17[FIX] doc: meta directive supportXavier Morel
The translator defined a `meta` attribute, however: * it was static so couldn't be expanded using the `meta` directive, move to instance attribute, and create an `add_meta` method which adds some indentation (for a cleaner HTML output) * the `meta` directive itself was not supported by the translator * turns out HTMLWriter just removes the first to entries of `meta` as "cleanup", which explains why we had to duplicate it in the template - therefore pad the `meta` list and remove entries from template - move front to linktags, that seems more relevant closes odoo/odoo#49699 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-04-01[REM] *: remove various unused import shimsAdrian Torres
Before this commit, a lot of leftover import shims existed in the codebase for py2-py3 compatibility, these are no longer needed since Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL. With this commit, these shims are dropped, making the code cleaner, easier to read and with one less dependency. Queue -> queue -> py2-py3 compatibility xmlrpclib -> xmlrpc.client -> py2-py3 compatibility ConfigParser -> configparser -> py2-py3 compatibility itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility urllib -> urllib.request -> py2-py3 compatibility __builtins__ -> builtins -> py2-py3 compatibility _winreg -> winreg -> py2-py3 compatibility mock -> unittest.mock -> merged into CPython The debian/fedora packages and requirements.txt have been updated accordingly closes odoo/odoo#44601 Related: odoo/enterprise#8141 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-03-10[FIX] doc: increase requirementfw-bot
Partial cherry pick of e4b75149f7c Sphinx 1.6.7 is the minimum in debian stable and ubuntu LTS X-original-commit: 516e7854fd61c75865bb444e3614cad20283275e
2019-12-12[IMP] doc: restore canonical URLMartin Trigaux
Was added at 958f9106dd3fe but lost during design change closes odoo/odoo#42061 X-original-commit: 560dba5313c5ca5265190dacc3bce7cbe509d30a Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-09[MERGE] forward port branch 13.0 up to f4105eb9c70Christophe Simonis
2019-10-03[FIX] v13 urlsmreficent
Was still pointing to old links closes odoo/odoo#37859 Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
2019-09-11[REF] doc: remove deprecated modulesJulien Castiaux
[PEP 594] is going deprecates the `imp` standard modules in PY3.8 in order to completely remove them in PY3.10. The `imp` module provides the `new_module` function. It returns a new module created solely using its name. The `types.ModuleName` is a drop-in replacement. Task: 2003936 [PEP 594]: https://www.python.org/dev/peps/pep-0594/\#imp closes odoo/odoo#36463 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-07-16[MERGE] Forward port of saas-12.2 to saas-12.3 up to cf8e74a1a7d34Martin Trigaux
closes odoo/odoo#34907 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-16[MERGE] Forward port of 12.0 to saas-12.2 up to 1bd434da34731b546Martin Trigaux
closes odoo/odoo#34901 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-12[FIX] doc: adapt header to the new eLearningMartin Trigaux
closes odoo/odoo#34837 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-05-13[MERGE] forward port branch saas-12.2 up to 243a4ae5cbcChristophe Simonis
2019-05-09[MERGE] forward port branch 12.0 up to e11bacfe512Christophe Simonis
2019-05-06[FIX] doc: Sphinx 2.0 compatibilityXavier Morel
* order of parameters to translator swapped * context['meta'] always set, defaulting to None if the document has no metadata * [3.0 prep] modifying script_files deprecated, use add_javascript / add_js_file * remove deprecated call to l_ (which was useless anyway as the documentation is not translated) Fixes #33107 closes odoo/odoo#33187 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-03-06[REF] doc: promisify doc examplesDavid Monjoie
Also remove a file on async stuff as its content is outdated, and actually not used.
2018-11-29[REF] *: replace deprecated pycompat helpers for builtinsAdrian Torres
This commit replaces calls to pycompat helpers that were intended for python 2 <-> python 3 interoperability for python 3 builtins, as python 2 is no longer officially supported by Odoo. This includes: * calls to imap/izip/ifilter replaced by map/zip/filter * uses of text_type replaced by str * uses of unichr replaced by chr * calls to implements_to_string, implements_iterator removed * string_types and integer_types replaced by str, int respectively * calls to to_native replaced by calls to to_text This is done in preparation to the removal of these deprecated helpers in the following commit.
2018-11-02[MERGE] forward port branch saas-11.4 up to f6ca72b3ce9Christophe Simonis
2018-10-29[MERGE] forward port branch saas-15 up to 953dfe92c24Christophe Simonis
closes odoo/odoo#28255
2018-10-25[FIX] doc: translator under Sphinx 1.5xmo-odoo
In Sphinx 1.5 (fairly specifically), the warner thing takes a `type` kw, and building the doc blows up if that parameter is not provided.
2018-10-23[FIX] doc: backport of 9a07a4599ce to 10.0Martin Trigaux
To be compatible with sphinx >= 1.6
2018-10-09[FIX] v12 urlsmreficent
Was still pointing to old links closes odoo/odoo#27443
2018-08-27[FIX] doc building and warningsXavier Morel
doc: * fix incorrect doc comments (documenting params which don't exist) * correctly quote non-refs * fix role label syntax (backticks must be escaped) * add newline to fix warning JS doc parser: * fix handling of already-resolved objects * fix handling of non-string properties (e.g. foo[0] at module toplevel) * don't blow up if subject of .include call can't be resolved (just ignore) Others: * add translator support for ``problematic`` node (apparently used for some refs by recent Sphinx)
2018-04-17[IMP] doc: specify the API examples are in python2Martin Trigaux
Odoo 11 is python 3 but the xmlrpc interface works with python 2 too. The example should probably be migrated to use python 3. In the meantime specify exactly these examples are python 2 to avoid the confusion. Fixes #24232
2018-03-19[MERGE] forward port branch saas-15 up to 0d552411852Christophe Simonis
2018-03-13[FIX] doc: update footer linksJeremy Kersten
Synchronize footer from odoo.com with the documentation.
2018-02-23[FIX] doc: fix link to our websiteJeremy Kersten
Remove wrong slash trailing Now, in V11, matching of page are done on the exact name. Previously, the error was transparent because we was using a dedicated controller that allow trailing slash. https://github.com/odoo/odoo/blob/11.0/odoo/http.py#L936 https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html http://example.com/foo/ (with trailing slash, conventionally a directory) http://example.com/foo (without trailing slash, conventionally a file) Google treats each URL above separately (and equally) regardless of whether it’s a file or a directory, or it contains a trailing slash or it doesn’t contain a trailing slash. Different content on / and no-/ URLs okay for Google, often less ideal for users Special case for homepage Rest assured that for your root URL specifically, http://example.com is equivalent to http://example.com/ and can’t be redirected even if you’re Chuck Norris.
2017-12-12[FIX] v11 urlsMiquel Raïch
Was still pointing to old links Closes #21590
2017-12-01[IMP] doc: revamp documentation designstefanorigano
A comprehensive theme’s revamp, details: === New features === - Show titles permalink markers on hover - “Scrollspy” effect for the sidebar === Fixes === - Solve an issue causing the sidebar to flicker on scroll - Hide the sidebar if less then two links === Design === - Improve typography vertical rhythm and line height - Visually increase separation between sections - Review alerts and <dl> design - Reduce cover’s size - Reduce overall paddings/margins. Closes #21304
2017-11-02IAP doc: tutorial (#20317)xmo-odoo
* [ADD] doc: iap tutorial Should be easier to approach than the raw APIDoc. contains: - overview of the flow - tutorial (coalroller) with guidelines - technical description of objects/helpers
2017-10-13[FIX] doc: undefined variable toctreeMartin Trigaux
2017-10-12[FIX] doc: variousXavier Morel
* fix Sphinx 1.6 compatibility leading to the "tiles" on the home page not working anymore: 1.6 replaces BuildEnvironment.reolve_toctree by TocTree().resolve(), while the method still exists it's not actually called anymore * rejigger some CSS as the second section went from one big tile to 3 smaller tiles, and got laid out as a row rather than a second 2x2 block. Recode the entire mess with flexbox, remove some stuff which conflicted with boostrap (this screen should probably be de-boostrapped and completely converted to flexbox or grid) * add building CSS from LESS to the makefile, all Odoo devs should have less installed locally (for assets)
2017-10-10[FIX] building documentation with P3Xavier Morel
* fix P3 incompatibilities in doc/_extensions * vendor pyjsdoc, strip out everything we're not using and make what's left P3-compatible (upstream is not P3 compliant) * drop undeclared dependency on attrs as it turns out not to be much used
2017-10-04[ADD] iap: In app purchaseAntony Lesuisse
IAP allow app publishers to charge for ongoing services. In that context, Odoo acts mostly as a payment platform between the service user (client) and the service provider (Odoo App developer).
2017-09-18[ADD] doc: JS document extraction systemXavier Morel
* Fix a bunch of ill-documented/incomplete/incorrect method docs * add start of Sphinx extension to extract & integrate jsdoc into Sphinx documentation: - parse JS files (and don't blow up), uses a fork of pyjsparser as the project currently does not parse comments - extract cross-module dependency information - parse JsDoc comments using pyjsdoc and infer structure from code & jsdoc - ``ast`` CLI printing a simplified AST of the input files - ``dependencies`` creating a dependency graph of either all modules in the provided input files or the modules matching the specified filters (warning: will not work if missing dependencies), generates a .dot file - ``extractor`` generating a plain text module documentation (mix of rst and markdown styles, not anything formal) * sphinx extension with an "automodule" directive taking a module name and generating the documentation for it
2017-08-20[FIX] P3: text model typesXavier Morel
* remove references to basestring & unicode (use relevant pycompat helpers) * remove some str calls (either entirely or replaced by relevant helper, either text or native) * use better API to avoid unnecessary conversions * remove some XML declarations in views
2017-07-03[FIX] doc warningsXavier Morel
* add Sphinx 1.6 compatibility (use app.set_translator when available as in that case programmatically setting html_translator_class is broken) * fix a bunch of code block lexers to avoid warnings & get better coloration * add a few options which were referred to without being actually defined * fix some rST formatting
2017-05-15[FIX] P3: urllib, urllib2 and urlparseXavier Morel
In Python 3, all of these were "consolidated" under urllib(.request, .parse, .errors) which is inconvenient. Since we already have hard dependencies on requests and werkzeug(.urls, which is a backport of Python 3's unicode-aware urllib.parse) migrate *everything* to that. A sticking point is urllib2.URLError, those were (mostly) replaced by the slightly more general IOError which URLError extends.
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2016-12-30[MERGE] foward port of 10.0 up to revision ↵qdp-odoo
84a650e33aadb29661121410813e3de37a5ad3e9
2016-12-19[FIX] doc: v10ificationMartin Trigaux
2016-10-11[FIX] doc: avoid conflict on extenstion and odoo folderMartin Trigaux