Commit Graph
106440 Commits
Author SHA1 Message Date
Jérome Maes 6bc14c9142 [MIG] calendar: migration to new API
Migration of all python code, mostly withtout chagnes. And adapting
xml files to guidelines.

On calendar.py, some changes have been perform to make the migration works :
- `_compute` method has been split into `_compute_dates`, `_compute_attendee` and `_compute_display_time`.
- remove unused method `onchange_partner_ids`, `check_partners_email`
- make `compute_rule_string` use a cache record instead of a value
dict to avoid crashes
- remove `new_invitation_token` method, and make it a default value on attendee creation
- add a default value on `day` field, otherwise the "Please select a
proper day of the month" exception is raised during the onchange
2016-07-14 14:04:33 +02:00
Jérome Maes fe42986ee2 [MOV] calendar: split models in multiple files 2016-07-14 14:04:33 +02:00
Jérome Maes b535461e47 [MOV] calendar: reoganize module directory 2016-07-14 14:04:33 +02:00
Denis Ledoux 8d2d741db3 [FIX] mass_mailing: do not inherit a view on a string attribute
A string attribute value can be translated,
and therefore the inherit broken if the term is indeed
translated.

This was the case for this term "Tracked link" in the Dutch
language, the "Tracked link" term of the inherited view has
been translated, and the inherit was therefore broken as
it couldn't find the given node in the base view due to the
fact this term was translated.

opw-683128
2016-07-14 12:25:02 +02:00
Ronald Portier 17a1304285 [FIX] hr_timehseet_sheet: drop view before creation
When the schema of a view change (e.g. drop of column), the "CREATE OR REPLACE"
will not be enough and dropping the view is required.

Fixes #12754
Closes #12756
2016-07-14 11:42:52 +02:00
Yannick Tivisse 2a36b54f14 [MERGE] website_gengo: Migration to new API 2016-07-14 11:37:41 +02:00
Yannick Tivisse c5b1a6ba61 [FIX] base_gengo: pass a translation if '_check_value' raise a ValidationError 2016-07-14 11:01:10 +02:00
Jigar Patel 5f146ac42d [MIG] website_gengo: Migrate into new api 2016-07-14 11:01:09 +02:00
Jigar Patel c9dcc6fa76 [MOV] website_gengo: File name as per new api guideline 2016-07-14 11:01:09 +02:00
Yannick Tivisse fac108b606 [FIX] base_gengo: issue introduced during the migration 2016-07-14 11:01:09 +02:00
Xavier Morel 5bb0933a52 [REVERT] 7930c3f86
Faster is nice, working is better, sale_timesheet, this commit breaks
the tests and the installation of multiple modules.
2016-07-14 09:57:17 +02:00
Goffin Simon 46c3c721fc [FIX] sales_team: _get_default_team_id
The domain term '('member_ids', 'in', False)' should use the '=' or '!=' operator.

sentry:90136545
2016-07-14 09:12:13 +02:00
Goffin Simon e71d136d6f [FIX] sale: making an advance payment in percent
When making an advance payment in percent, the function onchange_advance_payment_method
set the Down Payment Product to False. Then each time an advanced payment in percent
was made, a new down payment product was created and set in sale.config.setting in the field
deposit_product_id_setting.

Now the function onchange_advance_payment_method let the Down Payment Product
even if the payment method is in percent.

opw:683167
2016-07-14 09:01:58 +02:00
Christophe Simonis 9b7bc217a2 [FIX] base: avoid applying inherited view twice
Use the `|=` operator to deduplicate view ids.
2016-07-13 20:42:43 +02:00
Christophe Simonis 7930c3f86e [IMP] base: ir.ui.view inherit search during module update
During module update, we should only consider views of already
loaded modules. This filter is done by searching on xmlids of views.
We should also search for explicit view ids (current module is not yet
marked as loaded)

However, by doing this `OR` condition, the generated query is not
optimal and forbid postgresql to use the composite index
`ir_model_data_model_res_id_index` on `ir_model_data` table.
This is a performance issue for databases with a lot of ir_model_data rows.

Use 2 quicker search() to avoid this problem.

This only affect the module update. Normal view loading is unchanged.
2016-07-13 19:19:11 +02:00
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