Commit Graph
103218 Commits
Author SHA1 Message Date
Yannick Tivisse c4a1e90891 [IMP] product: Traceback on product_variant_easy_edit_view loading 2015-09-16 12:01:37 +02:00
Raphael Collet bd092e9ce7 [IMP] models: optimize recomputations by saving values in record batches
The recomputation of a field `name` on `recs` is done roughly like this:

    for rec in recs:
	rec._write({name: rec[name]})

The effect of this patch is to group records by value `rec[name]`, and to
update records in batches like:

    recs.write({name: val})             # rec[name] == val for all rec in recs

As a consequence, less queries are issued to the database for updating records.
This improvement is very effective in the case of migrations!
2015-09-16 11:56:44 +02:00
Raphael Collet 5805b87005 [IMP] api: in todo list, group records to recompute by environment
The effect of this change is to trigger the recomputation of fields on larger
recordsets.  This takes advantage of batch computations within compute methods.
2015-09-16 11:56:44 +02:00
Shivam Dudhat 9d36fe5c52 [IMP] payment: error message and style 2015-09-16 11:30:55 +02:00
rmu-odoo 36483a1f2f [IMP] website_sale: add button 'Configure Transfer Details' to configure the payment provider details. 2015-09-16 11:30:50 +02:00
Rashik kalathiya 897ac590b2 [IMP] lunch: usability improvement
View improved, remove warning message and improve search modal
2015-09-16 11:28:51 +02:00
Josse Colpaert 0f89721cda [IMP] procurement: Integrate procurement_jit in other modules and change to sale_auto_reserve
As procurement_jit has been optimized (by running multiple procurements at once),
it does not make sense to still have a module that without it, does not generate Pick > Pack > Ship
automatically, but only Ship.  We can do it anyways.

That way, the procurement_jit module can become clearer in its functionality to the user: when
a sale order is confirmed, it will automatically reserve the picking from the stock location (in case of MTS)
and people who don't want that functionality can still immediately have the Pick > Pack > Ship.

Make sure also push_apply works with manually created pickings.
2015-09-16 11:04:33 +02:00
Olivier Laurent 5ffb09a5df [FIX] account_voucher: use 'voucher' instead of 'self' in _compute_total
Using 'self' triggers a ValueError: Expected singleton
2015-09-16 10:31:05 +02:00
Yannick Tivisse 03d0cac7cc [IMP] hr_equipment: Hide category_id, as it's the same as the stages 2015-09-16 10:07:55 +02:00
Yannick Tivisse e176b4a22e [IMP] Purchase: Add a group in res_config to display 'Vendors Pricelists' menuitem 2015-09-16 10:07:55 +02:00
Yannick Tivisse 0d68a012d0 [FIX] product: product_tmpl_id was displayed on the product_product form view 2015-09-16 10:07:55 +02:00
Xavier Morel 1e2e38b96a [FIX] translate docstrings
rst literals are double-quoted
2015-09-16 10:02:37 +02:00
Goffin Simon 10bd5f797a [FIX] website_version: dependence
The module website_version depends of mail because the model "website_version.experiment"
inherits of 'mail.thread'.
2015-09-16 09:27:04 +02:00
David Monjoie 2a4784431c [IMP] website_form: disambiguate module name wrt website_form_editor 2015-09-16 09:25:56 +02:00
Alexis de Lattre 1d6c92a8c6 [FIX] hr_expense: journal_id domain typo 2015-09-16 00:31:06 +02:00
Olivier Dony 2b1cdd551f [FIX] fields.float: avoid non-deterministic side-effects on other cursors
In 5efac22043 and
1cf5723835 the computation
of the decimal precision of float fields was modified to
reuse a random cursor from the request environments.
Environment.envs is a WeakSet, subject to unpredictable
garbage collections.

This could cause hard-to-diagnose problems by executing
a SELECT query in a cursor that is supposed to be
otherwise idle and untouched.

As an example, this could cause a transaction start in a
cursor that was just committed/rolled back,
and was waiting for another operation to complete.

One such case happened semi-randomly during a module
installation triggered from the web client, where the request
cursor is committed and waiting for the registry
initialization done with a different cursor,
in the middle of _button_immediate_function()

After the registry initialization, the request cursor is
used again to determine the next action (ir.actions.todo),
and this could cause a TransactionRollbackError if the
request cursor was used during the initialization.

Using a new cursor every time is much safer, simpler,
and will not cause any significant performance hit,
because it will usually grab an available connection
from the connection pool, rather than create a new one.

Fixes opw-649151
2015-09-15 19:38:19 +02:00
Christophe Simonis f29d81d372 [FIX] product: correct function fields triggers.
The function field `volume` and `weight` on product.template were not
recomputed correctly.
The function field `standard_price` should not be stored as it's based
on a property field. Add a search function on it.
2015-09-15 19:24:29 +02:00
Simon Lejeune a693a60082 [FIX] planner: correct tooltip text changes
and only init the tooltip once
2015-09-15 18:09:18 +02:00
odoo-tac c033826492 [FIX] portal : Fixed portal wizard view and traceback that occured when giving portal access to a user. (Thx to RCO for the view fix) 2015-09-15 17:10:06 +02:00
qsm-odoo 9e6f9b4cc7 [IMP] sale: remove useless kanban field contexts
These are not evaluated, kanban fields in creation mode will use the
contexts defined in the form arch defined above.
2015-09-15 17:05:21 +02:00
qsm-odoo 037ee039d1 Revert "[FIX] bug when creating a SO line in mobile view"
This reverts commit 1c81d601c9.

This fix was not useful anymore since the previous commit fixed
the problem for context forwarding for:
formview -> m2m_kanban -> record creation (formview dialog)
2015-09-15 17:05:21 +02:00
qsm-odoo 14162c5e6e [FIX] web_kanban: ctx eval in record creation from m2m_kanban
Contexts in formview which contained parent.[some_field] were not able
to be evaluated when creating a record from a many2many_kanban because
the parent view was not given to the creation dialog.
2015-09-15 17:05:21 +02:00
qsm-odoo 439c996219 [IMP] project_issue: issue form view
Issue form view had still some misaligned and wrong template parts.
(Uniformization with task form view)
2015-09-15 17:05:21 +02:00
Simon Lejeune 3e878f561f [FIX] project: planner: layout and default values of kanban stages 2015-09-15 17:03:10 +02:00
sha-odoo ade332d40a [FIX] hr_payroll: fixed the form view mess in salary rule category 2015-09-15 16:42:46 +02:00
Jérome Maes b3e7629566 [FIX] website_event_track : menu items generation
When uncheck 'show tracks on website' or 'tracks proposal' the menu of event page (on website) was not modified.
2015-09-15 16:42:38 +02:00
Dharmraj Jhala ae23c92e1b [IMP] website_links: Improved descriptor file of website_links module
Improved name attribute of descriptor file for this module to avoid confusion with same name of link_tracker
2015-09-15 16:41:10 +02:00
vbh-odoo 0975c71689 [FIX] web : FormView wrong records count in pager
Using breadcrumb to open and close form view, the page counter increase each time with the number of record in the list view or kanban view
2015-09-15 16:40:46 +02:00
Christophe Simonis cc47baf763 [FIX] models: auto convert monetary fields 2015-09-15 16:23:07 +02:00
Xavier Morel a139d81c46 [FIX] doc: odoo theme so it's compatible with Sphinx 1.3
Sphinx.set_translator is a Sphinx 1.3 API, and we only require Sphinx
1.2 at this point. Replace the use of set_translator with explicitly
setting the ``html_translator_class`` config setting.
2015-09-15 16:06:13 +02:00
Martin Trigaux 743adfe875 [IMP] sale: better field label 2015-09-15 15:40:13 +02:00
Olivier Laurent 883390863a [FIX] doc: upgrade_api: slight fix
small fix in example for creating a request
DB_SOURCE was not defined. FILENAME was to be used.

Also reordered the fields so as to have the most important ones at the
beginning.
2015-09-15 14:58:23 +02:00
Cedric Snauwaert adb17252cb [FIX] account_voucher: add oldname on price_unit towards amount 2015-09-15 14:39:35 +02:00
Xavier Morel 2474a91bc9 [IMP] doc: recommend not using @api.one
* alter docstring of @api.one to mark it as deprecated for 9.0,
  recommend using @api.multi instead
  - deprecation notes were not correctly styled, add styling
    matching "warning" alerts
* move @api.one down the doc page to deemphasize it
* fix "backend" tutorial to remove all instances of ``@api.one``

closes #8527
2015-09-15 14:38:45 +02:00
pvy 3f5ee0db8c [ADD] add menuitems for the reports of each l10n 2015-09-15 14:36:11 +02:00
Nicolas Martinelli 800aedee22 [IMP] sale, purchase: better tooltip for "Set to Done" 2015-09-15 14:35:20 +02:00
Nicolas Martinelli d504ff7714 [IMP] sale: automatically create deposit product
If a default deposit product is not selected in the configuration, it is
now created automatically with the appropriate values.
2015-09-15 14:35:20 +02:00
Nicolas Martinelli 3d8ec1fa4d [FIX] sale: search for refunds 2015-09-15 14:35:20 +02:00
Raphael Collet 84ade6a861 [IMP] web_planner: optimize method render of web.planner
This method generates many queries on:
 - `ir.module.module`, to known whether a given module is installed;
 - `ir.actions.act_window`, to know whether a given action exists.

Add a cache for both cases.  The number of queries is reduced by 90%.
2015-09-15 14:34:31 +02:00
Adrien Dieudonne 45d53ec465 [FIX] sale_stock: onchange warning for packaging 2015-09-15 14:20:19 +02:00
David Monjoie d210744ef0 [IMP] website_form: various improvements
- Fixed the module name and category in manifest
- Fixed website_form_blacklisted being ignored
- Unauthorized readonly and magic fields
- Reset the form on successfull submit
- Added missing date field
- Added date and datetime validation
2015-09-15 14:00:36 +02:00
Olivier Laurent 0902554953 [FIX] account: use 'journal' instead of 'self' in _methods_compute
Using 'self' triggers a ValueError: Expected singleton
2015-09-15 13:55:16 +02:00
Olivier Laurent e9ff413d45 [FIX] account: move AccountTaxGroup class above AccountTax class
During the upgrade, the 'tax_group_id' field on 'account.tax' model cannot
be created because it needs the 'account_tax_group' table which is not
yet created.

Moving this class above the AccountTax class solves this problem.
2015-09-15 13:55:16 +02:00
Olivier Dony 493ea0256d [FIX] mail: no needaction counter if request user has no partner
This is a temporary fix while tracking down the
root cause for the missing partner_id.
2015-09-15 13:36:37 +02:00
Arthur Maniet 769e58d186 [FIX] barcodes: don't require suffix for scans
Users don't have to configure their scanner. As stated in the docs/planner,
either wait 50ms between 2 scans or use a suffix.
2015-09-15 13:22:16 +02:00
qsm-odoo e29745cc47 [FIX] web,project: kanban_selection widget position
Move the project kanban_selection widget out of h1 and make it as
direct child of form sheet. This allows to put it on the right of
oe_title no matter what (+ enterprise compatibility).
2015-09-15 13:17:43 +02:00
qsm-odoo f22686fb4d [FIX] website: published/unpublished button + useless code
For some strange reason, two CSS rules had different priorities between
firefox and chrome (which forced chrome to always display published and
unpublished at the same time).

The chosen solution is to change the value of the button in published/
unpublished instead of toggling and relying on CSS classes (with this
method, the DOM looks better too).

There was also duplicated code in website for assets_backend.
2015-09-15 13:17:43 +02:00
Martin Geubelle 2337f074bc [IMP] crm, sales_team: correct actions in sales_team dashboard
* When you click on activities from today, this week or overdue, you now get the correct filters in search view.
* Put emphasis on the whole cell when the target is reached
2015-09-15 12:07:58 +02:00
Martin Geubelle 70c0c99112 [FIX] web: m2m tags glitch on some resolutions 2015-09-15 11:50:06 +02:00
Arthur Maniet 6f70ea2fd7 [REM] stock: mentions to the old barcode scanning UI 2015-09-15 10:09:27 +02:00