Commit Graph
117975 Commits
Author SHA1 Message Date
Damien Bouvy 7c2c169906 [FIX] base: mixing ids and records
Browse needed.
2016-07-13 17:27:24 +02:00
Christophe Simonis a039fc509b [MERGE] forward port of branch 8.0 up to 9650249 2016-07-13 17:26:44 +02:00
Damien Bouvy 8cad4ce011 [FIX] web_settings_dashboard: user count consistency
Odoo S.A. invoices only 'non-share' (internal) users; the default
filter on the user list view does the same thing. It makes little
sense for the user counter to count all share users.
2016-07-13 16:58:31 +02:00
Yannick Tivisse 187c3f2fcd [MERGE] base_gengo: Migration to new API 2016-07-13 16:54:51 +02:00
Yannick Tivisse 651caf0f59 [MIG] base_gengo: Migrated to new API 2016-07-13 16:46:29 +02:00
qsm-odoo 9b77d76e71 [FIX] web,website,point_of_sale: session.debug value
Now that the debug URL parameter can be equal to "assets", the session
debug variable has to be updated to not only be true or false. Now, its
value is false if the debug parameter is not specified in the url and
a the URL parameter string value otherwise (or 1 if the value is an
empty string).

Also modify all redirection which kept the debug mode to also keep
=assets. Use the $.param.querystring function.
2016-07-13 16:13:04 +02:00
Yannick Tivisse 9fd3c9e7f0 [MOV] base_gengo: Reorganized File Structure 2016-07-13 15:36:50 +02:00
Simon Lejeune 05a143a416 [REF] hr_timesheet, hr_timesheet_sheet: hr_timesheet is the application
* switch application flag between `hr_timesheet_sheet` and `hr_timesheet`
* renamed `hr_timesheet` application name from "time tracking" to "timesheets"
* move the icon from `hr_timesheet_sheet` to `hr_timesheet`
* removed unused icon from `hr_timesheet`
* renamed `hr_timesheet_sheet` application name from "timesheets" to "timesheets / attendances"
2016-07-13 15:07:56 +02:00
qsm-odoo 60e446351c [FIX] web_tour: update after consume (sometimes no mutation) 2016-07-13 14:46:23 +02:00
qsm-odoo 2a56e8941b [FIX] web_tour: debounce mutation callback instead of throttle 2016-07-13 14:46:23 +02:00
Joren Van Onder 7229a5be95 [IMP] stock: consistent kanban view for pack operations and move lines
This makes the kanban view for pack_operation_product_ids more
consistent with the one for the move lines and also adds the UOM for the
pack operation to the kanban card.
2016-07-13 14:10:57 +02:00
Joren Van Onder c902437247 [FIX] barcodes: allow users to 'click' focused buttons with Return
Return key events don't get redispatched and even if they did, it
wouldn't work because 'fake' keypress events don't trigger native HTML
event handlers.

This should be safe because Return cannot start a valid barcode.
2016-07-13 13:58:50 +02:00
Joren Van Onder 4dc228d01c [FIX] stock: don't show empty Reserved group
We hide the quants_grp if the stock.move is in the draft state. In this
case normally the value of the string_availability_info will be empty
anyway, because the _get_string_qty_information function skips moves in
the draft state.

This is especially useful on small displays, because on there the string
attribute of the field won't be shown, so you just end up with a
Reserved heading with nothing underneath it.
2016-07-13 13:58:50 +02:00
Yannick Tivisse da6ecd39b2 [MERGE] resource: Migration to new API 2016-07-13 12:54:32 +02:00
Yannick Tivisse 6372080621 [FIX] project_issue: new api call to 'get_working_hours' 2016-07-13 12:53:34 +02:00
Yannick Tivisse ee9b64a428 [FIX] hr_holiday: correct call to get_working_hours + typo 2016-07-13 12:53:34 +02:00
Ravi Gohil dc77ed4f90 [MIG] resource: Migrated unittest cases to new api
- Converted yml test cases to python unittest
- now, 'self.calendar' recordset from common.py will carry forward its context
  so no need to pass context explicitely to the methods calling using that recordset.
- removed commented code
- used odoo.fields.Datetime to covert dates instead of python datetime library
2016-07-13 12:53:34 +02:00
Yannick Tivisse 839a4b8316 [FIX] hr_payroll: wrong call to 'working_hours_on_day' 2016-07-13 12:53:34 +02:00
Ravi Gohil 87f8860982 [MIG] stock_calendar: migrate resource.py file + cleaning
90 percents of the file had to be migrated because of the methods
interval_remove_leaves and get_leave_intervals that were migrated in
the module resource
2016-07-13 12:53:34 +02:00
Mansi Gandhi a4e57ea16c [MIG] resource: Migrated to new api. 2016-07-13 12:53:34 +02:00
Ravi Gohil 22ef7c15b5 [MOV] resource: Organized/renamed files as per new api guidelines. 2016-07-13 12:53:34 +02:00
Yannick Tivisse 03856e6e17 [MERGE] base_import_module: migration to new API 2016-07-13 12:49:01 +02:00
Mohammed Shekha 870f2ff893 [MIG] base_import_module: Migrated to new API 2016-07-13 12:46:50 +02:00
Mohammed Shekha fc634557f7 [MOV] base_import_module: Change file name as per migration guidelines 2016-07-13 12:46:50 +02:00
pvy 65a1c0d060 [FIX] account: the period was wrong as it didn't take into account the 'not due' period 2016-07-13 11:23:43 +02:00
qdp-odoo bf999c168a [IMP] account: added 'form' mode in the action returned by clicking on the 'Journal Items' stat button on payments and bank statements, because it was so boring not being able to see the details or open the account.move from that view 2016-07-13 11:22:10 +02:00
Fabien Pinckaers c1e5ab9b13 [IMP] sale: consistency top menu: a sale order is/was a quotation 2016-07-13 10:32:44 +02:00
Fabien Pinckaers 7016f9131b [IMP] website_recruitment: category Website to make it visible from Customize > Install apps 2016-07-13 10:29:48 +02:00
Thibault Delavallée 8d81344d97 [MERGE] stock submodules: migrate to new API
* Move files and reorganize directories according to guidelines
* Lint and clean code, remove dead code
* Migrate code to the new API

Applied to stock submodules: stock_account, stock_calendar,
stock_landed_costs.

The following modules were already in new API, but cleaned and reorganized:
stock_dropshipping, stock_picking_wave, sale_stock

Two fixes from saas-12 in yaml_import have been included in this branch
because originally developped when fixing issues related to the new API
migration.
2016-07-13 10:00:45 +02:00
qdp-odoo 2d91575b11 [FIX] account: cancelling a bank statement line linked to a payment SEPA or batch deposit should set it back to 'sent' state, not 'posted'. 2016-07-13 10:00:07 +02:00
Jairo Llopis 0529a7f9ba [FIX] tools: extract terms in correct folder
If two addons path have a common part in the folder name (e.g. `/home/alice/dev`
and `/home/alice/devodoo`), the `get_module_from_path` method may match the
wrong folder.
A file `/home/alice/devodoo/bob/models.py` would wrongly match `/home/alice/dev`
path (due to the lack of separator) and the returned module would be `odoo`
(`"odoo/bob/models.py".split('/')[0]`).

In such scenario, the translations of files (code, static folder, report) would
not be included in the exported translation file.

Force the module path to ends with a folder separator to avoid wrong matching.

Closes #12757
2016-07-13 09:43:38 +02:00
Thibault Delavallée 7ad15c3827 [IMP] sale_stock: small code improvements
This module is already migrated. However some code could easily be improved
or cleaned.
2016-07-12 17:53:49 +02:00
Thibault Delavallée d94df45501 [FIX] sale_stock: indentation issue 2016-07-12 17:53:49 +02:00
Thibault Delavallée d56ccae9f1 [CLN] sale_stock: cleaning and linting 2016-07-12 17:53:49 +02:00
Thibault Delavallée 3bf3d15fc5 [REM] sale_stock: unused demo file 2016-07-12 17:53:11 +02:00
Thibault Delavallée b755ee80a5 [MOV] sale_stock: reorganize module 2016-07-12 17:53:10 +02:00
Mansi Trivedi 5beec98ef8 [MIG] stock_calendar: test from yml to unit tests 2016-07-12 17:53:10 +02:00
Thibault Delavallée 4cb0965365 [MIG] stock_calendar: new API 2016-07-12 17:53:10 +02:00
Thibault Delavallée 3f7a950ccb [REF] purchase, stock_calendar: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Removed api.v7 methods for two methods defined in purchase and overriden
  in stock_calendar, now used only in a true multi-style (old and new API)
* Moved methods having orderpoint as primary object on the orderpoint model
* Removed unused next_day field on resource.calendar model; it was
  introduced with hacks of resource.calendar, and never used.

The whole override of resource models should be cleaned but will be done
after migration of resource and stock.calendar.
2016-07-12 17:53:10 +02:00
Mansi Trivedi 61039df4b9 [MOV] stock_calendar: reorganize module 2016-07-12 17:53:09 +02:00
Divyesh Makwana 1919945770 [MIG] stock_account: new API 2016-07-12 17:53:07 +02:00
Thibault Delavallée 288e0acca1 [REF] stock_account: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Dead code on product.template model: existing method on product.product
  has to be used
* ``_get_accounting_data_for_valuation`` and ``_prepare_account_move_line``
  methods moved on the stock.move model as their primary object is a
  stock move
* Simplified implementation and call parameters of ``_get_price`` of
  account.invoice.line to ease code understanding
2016-07-12 17:52:29 +02:00
mdi-odoo 6a824e4a5e [MOV] stock_account: reorganize module 2016-07-12 17:52:29 +02:00
Thibault Delavallée 8f1e11ab52 [CLN] stock_picking_wave: cleaning and linting 2016-07-12 17:52:29 +02:00
Thibault Delavallée 7a15c6fe8f [CLN] stock_dropshipping: cleaning and linting 2016-07-12 17:52:28 +02:00
Thibault Delavallée 9a84193f9d [MOV] stock_dropshipping: reorganize module 2016-07-12 17:52:28 +02:00
Jainik Patel 904f14120c [MIG] stock_landed_costs: new API 2016-07-12 17:52:28 +02:00
Thibault Delavallée 2ff5d2a650 [REF] stock_landed_costs: pre migration cleaning
* All methods are converted into an api.multi style (using ids instead of
  a browse record or an id)
* Two methods on stock.landed.cost model that work actually on stock.move
  records are moved to the stock.move model
* Unnecessary parameters removed from get_valuation_lines to ease the code
  understanding
2016-07-12 17:52:28 +02:00
Thibault Delavallée 368c2346b6 [MOV] stock_landed_cost: reorganize module 2016-07-12 17:52:27 +02:00
Thibault Delavallée 168807a255 [IMP] product: get_history_price multi to ease migration
This method is used only in stock_account that is about to be migrated
into the new API. To ease the migration the method is converted into
a multi method, using a decorator.
2016-07-12 17:51:28 +02:00