Commit Graph
24 Commits
Author SHA1 Message Date
Quentin Wolfs e2f59a6dd1 [IMP] stock: traceability report origin
Add reference of the traceability report's origin (production.lot,
manufacturing order, picking, ...) to the end of the
report.
Change the layout a bit so the data isn't squashed by
the border.

Task-2467686

closes odoo/odoo#74120

Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-08-16 08:14:09 +00:00
Jeremy Kersten 926af37343 [REF] *: remove unused fileToken cookies
This cookies is not more used since 35d452cffb

closes odoo/odoo#72079

Related: odoo/enterprise#18967
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-06-14 07:32:18 +00:00
Simon Lejeune 09f66f4885 [REM] stock: unused controller
This was a remnant of the old old barcode client action.
2019-11-20 08:35:31 +00:00
fja-odoo 424adb63e3 [IMP] gamification, *: remove KarmaError
* = stock, test_website, web, website_forum, website_slides, base

Replace KarmaError with AccessError and remove the related override made
on crash_manager and ir_http.

task-2069890

closes odoo/odoo#36655

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-09-12 13:49:02 +00:00
Raphael Collet b7fd679a6c [FIX] *: sudo() -> with_user() 2019-07-04 11:32:22 +00:00
fja-odoo 0d1407a715 [IMP] base, web, *: make KarmaError an except_orm
* = gamification, test_website, stock

- KarmaError is now handled as a 400 exception.
- test_website has been updated.
- NO_POSTMORTEM is now clean it was referencing duplicates as most the
  exceptions inherit from except_orm.
- serialize_exception from http.py has been moved to ir_http
  to take advantage of the odoo inheritance system. We can then
  extend ir_http serialize_exception method to add the KarmaError
  logic if and only if gamification is installed.
  Places where serialize_exception was previously used are updated.

Part of https://github.com/odoo/odoo/pull/32132
task-1894820
2019-06-28 08:53:53 +00:00
Romain Derie d7cd97a9be [IMP] *: new asset for test files, new debug mode (stored in session)
This commit goal is to encapsulate every tour-test into a separate assets
bundle that would be called only during tests (command line) or by URL
(debug=tests). That way, a lot of .js files would not be loaded anymore
uselessly outside test mode and will speed up the page loads (especially in the
frontend as the backend do not reload the page anyway).

In order to do that, we needed to propagate the `debug` state from page to
page.
Otherwise, every page change during a test would simply lose the debug mode and
the test would stop as the test assets would not be loaded.
As we could not add the `&debug=tests` on every link (either hardcoded or
preprocess during the rendering), it has been decided to store it in session.

Technical summary:
1. `debug` state (currently only stored in URL) will be stored in session.
   Either when adding the `debug` param in URL (handled with _dispatch) or by
   starting Odoo with `test-enable` or `test-file` (handled by session init).
2. Once activated (and so set in session), debug mode will remain activated
   even if not visible in URL (after a page navigation eg).
   To deactivate it, set its value to nothing, `debug=`. That will exit debug mode
   (whatever mode it is: debug, assets, tests).
3. As tour-test files are now in a separate bundle, every layout (when needed)
   should `t-call="web.conditional_assets_tests"`.
   As it would be redundant and verbose, no `t-if` is needed on the t-call to
   load it only in test debug mode. That will be handled by
   `compiled_assets_tests` that will actually do the conditionnal t-call-assets
   to web.assets_tests, if tests debug mode is activated.
4. In addition to separating the tour-tests files in a separate bundle, we also
   moved those files to a specific folder under /static/tests/tours next to
   QUnit tests.
5. Also, tour files will be moved in a specific folder /static/src/js/tours for
   cleanness purpose (those files will still be kept in their 'normal' assets
   as needed outside test mode since it is tours).
   This will be done in the next commit.
6. It is possible to enable multiple debug mode, such as 'tests' and 'assets'
   together. Simply separate debug modes with a comma, eg '?debug=assets,tests'

task-1934445
Comes with https://github.com/odoo/enterprise/pull/4281
Closes #33213
2019-06-05 05:56:33 +00:00
Simon Lejeune fe20747ddc [REF] stock: adapt traceability to new implementation 2017-07-14 17:08:21 +02:00
Pierre Masereel 5fcdb06010 [MOV] stock: move traceability report from mrp_workorder 2017-07-14 17:08:21 +02:00
Yenthe V.G d5a99319b0 [IMP] stock: remove unused logger import
The logger is imported but never used so let us remove it anyway.

Closes #14047
2016-12-05 16:45:35 +01:00
Thibault Delavallée 20223fe920 [MIGR] stock: reports and controllers 2016-04-29 12:18:49 +02:00
Fabien Meghazi dfa4d92eca [IMP] changed barcode start page url to /stock/barcode
As a convention we use the module name as first fragment of the url
2014-07-16 10:25:53 +02:00
Fabien Meghazi c0875efba1 [IMP] Improve stock's barcode start page
remove module_boot() usage
2014-07-15 17:18:47 +02:00
Simon Lejeune 10ce35040b [FIX] point of sale and barcode interface 'mini webclien' initialisation 2014-06-27 17:18:26 +02:00
Fabien Meghazi 863edbaaf2 Seperate assets_common from other bundles 2014-05-20 17:06:25 +02:00
Quentin (OpenERP) a029fb22d0 [FIX] stock: fixed error 'cannot import name html_template'
bzr revid: qdp-launchpad@openerp.com-20140508100856-jbitae0fzsdt7v78
2014-05-08 12:08:56 +02:00
Josse Colpaert d763f43878 [IMP] Correct js assets for barcode scanner
bzr revid: jco@openerp.com-20140505073931-mwikrhmngq1ju402
2014-05-05 09:39:31 +02:00
Cedric Snauwaert fd00c531d5 [FIX]barcode_interface: correct use of url hash in interface
bzr revid: csn@openerp.com-20140324155628-bojwf560y73s9pv7
2014-03-24 16:56:28 +01:00
Cedric Snauwaert 0d24796915 [FIX]barcode interface: take into account location filter when scanning a product
bzr revid: csn@openerp.com-20140324104621-xfah53qqwg06qcqe
2014-03-24 11:46:21 +01:00
Cedric Snauwaert 3e78262bb5 [WIP]barcode interface: add a modal window to change location
bzr revid: csn@openerp.com-20140320154056-137r0ts6umivzcrc
2014-03-20 16:40:56 +01:00
Cedric Snauwaert 05cd763da9 [WIP]add blink on line when scanning with barcode scanner and search is case insensitive
bzr revid: csn@openerp.com-20140319100758-u768tsufdgjig61r
2014-03-19 11:07:58 +01:00
Cedric Snauwaert cf5e42b568 [WIP]barcode interface: minor changes
bzr revid: csn@openerp.com-20140318155143-59lpf2jq7p8ivagb
2014-03-18 16:51:43 +01:00
Cedric Snauwaert fc27f33675 [FIX]barcode interface, redo of menu interface to use kanban view instead of table
bzr revid: csn@openerp.com-20140228105231-2wjgbri012wd4mna
2014-02-28 11:52:31 +01:00
Cedric Snauwaert 8e779fa761 [FIX]stock_barcode_interface: rework of the barcode interface to use bootstrap only
bzr revid: csn@openerp.com-20140226161003-kzgg5xfcrn8ucspx
2014-02-26 17:10:03 +01:00