Commit Graph

89655 Commits

Author SHA1 Message Date
xmo-odoo 957c0cca1c Merge pull request #970 from xmo-odoo/8.0-remove-unnecessary-listifications-xmo
Remove redundant calls to list()
2014-07-07 16:15:23 +02:00
xmo-odoo 48c16e4b26 Merge pull request #969 from xmo-odoo/8.0-fix-weakset-listification-xmo
Unsafe listification of weakref in Python < 2.7.4
2014-07-07 16:15:02 +02:00
Christophe Simonis e5b0933743 [FIX] data-dir management
- sessions are now shared between series.
- use site data dir instead of user data dir if user has no home dir.
- in http and module handling, `data-dir` was used before being
initialized, using the default value instead of user input

(fixes #308, #904)
2014-07-07 15:49:24 +02:00
Olivier Dony 139d868c94 [REL] 8.0 RC1 2014-07-07 15:25:42 +02:00
Raphael Collet 130f890215 Merge pull request #964 from odoo-dev/8.0-remove-getattr-rco
[REM] models: remove the magic methods signal_XXX()
2014-07-07 14:49:49 +02:00
jkei 47dd44be43 [FIX] account: typo in get_fiscal_position()
Fixes #971:

File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position
    return part.property_account_position.id
NameError: global name 'part' is not defined
2014-07-07 14:48:20 +02:00
Cédric Snauwaert 93a6880c19 Merge pull request #972 from odoo-dev/8.0-menubar-cosmetics-csn
[FIX]menu bar: clean up css and few cosmetics
2014-07-07 14:46:56 +02:00
krnkris ccc211fa51 [I18N] base: fix Hungarian translations
(Manual rebase of #956, pending update in Launchpad translations)
2014-07-07 14:36:55 +02:00
Cedric Snauwaert 94d65557fc [FIX]menu bar: clean up css and few cosmetics 2014-07-07 14:13:41 +02:00
Xavier Morel efe910569a [REM] unecessary calls to list()
* Either further operations don't really care (e.g. ``str.join`` takes any
  iterable)
* Or they do their own seq (``browse`` calls ``tuple()`` on iterable params)
2014-07-07 14:01:07 +02:00
Xavier Morel ac282e0294 [FIX] unsafe listification of weakref in Python < 2.7.4
Fixes #966

* As a preallocation optimization, ``list()`` calls ``__len__`` on its
  parameter if it's available
* Before Python 2.7.4, WeakSet has a bug[0] where ``len()`` is unsafe: it is
  done by iteration and weakrefs may be removed from the underlying set during
  the iteration

As a result, the safety feature of listifying a WeakSet to ensure we have
strong refs on all items during iteration may blow up.

Wrapping the weakset in a ``iter()`` makes ``__len__()`` invisible and ensures
we're within the IterationGuard[1].

Which now that I think about it means we *should* be able to safely iterate
weaksets in the first place and may not have needed to listify them...

[0] http://bugs.python.org/issue14159
[1] http://hg.python.org/cpython/file/b6acfbe2bdbe/Lib/_weakrefset.py#l58
2014-07-07 13:51:53 +02:00
xmo-odoo cd7e9a98d4 Merge pull request #967 from xmo-odoo/master-id-type-xmo
Raise exception when a DB request fetches ids it was not asked for
2014-07-07 13:23:50 +02:00
hugosdsantos 831b85778c [I18N] sale: fix pt translations
"Ordem de Vendas" changed to "Ordem de Venda"

(Rebase of PR #883)
2014-07-07 13:16:31 +02:00
Raphael Collet 630580df7f [FIX] signal_XXX -> signal_workflow: forgot quotes around signal name 2014-07-07 13:12:37 +02:00
Raphael Collet 33eb3dffb2 [REM] models: remove the magic methods signal_XXX() 2014-07-07 11:50:30 +02:00
Xavier Morel 798ce97df4 [IMP] raise exception when a DB request fetches ids it was not asked for
Likely caused by a type incoherence e.g. providing an id as string when the
table uses integer ids. Postgres performs an implicit conversion from string
to integer[0], this wasn't much of an issue in the old API, whatever cache was
there would simply not be used, but because the new API's cache is part of its
behavior it has a semantic impact and can lead to infinite recursion.

[0] more precisely from quoted value, which is untyped
2014-07-07 09:59:05 +02:00
xmo-odoo 74de2461a1 Merge pull request #926 from xmo-odoo/master-cleanup-gauge-xmo
Fix implicit globals in kanban_gauge JS
2014-07-07 09:50:48 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Raphaël Valyi d78192c489 [IMP] account: add context in invoice onchange_partner_id method
(Manual rebase of PR #915)
2014-07-05 02:47:28 +02:00
Raphaël Valyi 7cc95f1671 [IMP] purchase: add context in PO onchange_partner_id and onchange_dest_address_id
(Manual rebase of PR #913)
2014-07-05 02:30:44 +02:00
Olivier Dony e7665864be [FIX] website_sale_delivery: bundlify JS file inclusion 2014-07-05 02:24:43 +02:00
Olivier Dony 34bfa1b44f [MERGE] Forward-port saas-5 up to d9cda97 2014-07-05 01:45:45 +02:00
Olivier Dony d9cda97cf4 [MERGE] Forward-port saas-4 up to 5ceded9 2014-07-05 01:28:19 +02:00
Olivier Dony 5ceded9d69 [MERGE] Forward-port saas-3 up to 4fa30f5 2014-07-05 01:04:19 +02:00
Olivier Dony 4fa30f5569 [FIX] mass_mailing: avoid mutable values for dict.fromkeys(), simplify with RIGHT JOIN 2014-07-04 23:56:22 +02:00
Olivier Dony d32fc5c597 [FIX] mass_mailing: wrong copy-paste of statistics computation code
Mixes the mass_mailing_id and mass_mailing_campaign_id
between the two models. Introduced by 9fc4ad9, PR #472
2014-07-04 23:15:22 +02:00
Olivier Dony f3880a8a09 [MERGE] Forward-port of 7.0 up to 64ac1b0 2014-07-04 17:07:53 +02:00
Olivier Dony 64ac1b0f46 [FIX] document: replace raw SQL constraint with bad parameter passing with builtin check_recursion
This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.
2014-07-04 16:53:26 +02:00
Olivier Dony 1279ca0334 [FIX] hr_holidays: proper parameter passing syntax for raw SQL
This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.
2014-07-04 16:45:41 +02:00
Thibault Delavallée 27fa618882 [REV] Partial revert of search view changes: indeed the graph view is not already capable of handling group_by on any field, declaring them is still necessary. 2014-07-04 16:44:55 +02:00
Raphaël Valyi f20c7a3055 [FIX] purchase: order dest_address_id field is present twice in form view
Fixes issue #911
2014-07-04 15:59:29 +02:00
qdp-odoo 13b52c3fb7 [IMP] account: added a button on bank statements to see the journal items created as soon as some are created 2014-07-04 14:45:50 +02:00
Thibault Delavallée f0ef8ac446 [FIX] web_kanban_sparkline, sales_team, stock: use char function field to transmit sparkline data; the data is now correctly dumped into json, and parsed in the widget. 2014-07-04 14:42:38 +02:00
Fabien Pinckaers 66a4f65599 Merge pull request #925 from xmo-odoo/master-concat-itertools-xmo
Replace NIH concat function
2014-07-04 14:05:09 +02:00
Martin Trigaux cdf517d178 [FIX] l10n_multilang: reduce dependencies of l10n_multilang
The installation of a multilang localisation (e.g. Belgium) used to install as well account_accountant (and then account_voucher) for no technical reason and was considered as the full accounting package.
2014-07-04 14:02:04 +02:00
Martin Trigaux bce9219488 [FIX] views: when loading an action, the active_* parameters should overwrite previous context 2014-07-04 12:20:51 +02:00
qdp-odoo 9a4784fcbe [IMP] account, account_cancel: added the possibility to cancel a single statement line when it has already been through the reconciliation process 2014-07-04 11:07:23 +02:00
Xavier Morel 13c03caea8 [FIX] web_kanban_gauge: bunch of implicit globals in JS code 2014-07-04 11:03:31 +02:00
Xavier Morel 40f7175172 [IMP] replace a manual & eager concat by chain.from_iterable(iter) -> iter 2014-07-04 10:58:41 +02:00
Thibault Delavallée 83dbbbc26f Merge pull request #638 from odoo-dev/master-improve-configuration-warnings-ssh
[IMP] account, account_voucher, google_drive, hr_timesheet, users: use redirectwarning instead of some warnings to ease the configuration process. Also fixed some css and js issues in the display of the redirect warning.
2014-07-04 09:28:55 +02:00
Thibault Delavallée 81a305a018 [FIX] sale: sales_team: fixed use_quotations field named 'opportunities' instead of 'quotations', copy and paste error probably 2014-07-04 08:02:54 +02:00
JKE-be 670bf32143 Merge pull request #909 from odoo-dev/saas-5-contactus-jke
[IMP] website_crm - cherry pick from 29ad0216e37fd23e33b75ee8d24b095f181...
2014-07-03 23:13:44 +02:00
JKE-be f43e04e945 Merge pull request #906 from odoo-dev/saas-3-contactus-jke
[IMP] website_crm - cherry pick from 29ad0216e37fd23e33b75ee8d24b095f181...
2014-07-03 22:56:06 +02:00
JKE-be e19256b062 Merge pull request #907 from odoo-dev/saas-4-contactus-jke
[IMP] website_crm - cherry pick from 29ad0216e37fd23e33b75ee8d24b095f181...
2014-07-03 22:55:32 +02:00
Jeremy Kersten b647795d73 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 22:49:34 +02:00
Jeremy Kersten 72678c6551 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 21:39:19 +02:00
Jeremy Kersten 3214dde029 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 21:33:53 +02:00
qdp-odoo fd38163a38 Merge pull request #840 from Bubbles-IT/fix-expected-list-statement-proposition
Problem during reconcilement of bank statement with an exact match.

Thanks Niels
2014-07-03 13:33:48 +02:00
Thibault Delavallée 3c429b8951 [FIX] marketing_campaign: reporting: use the menu already define in marketing module instead of re-adding a new menu. 2014-07-03 13:19:13 +02:00
ssh-odoo 6cc4bd4312 [Imp]:Improve configuration warning msg
[imp]:remove space

[rem]:remove code

[imp]:remove changes

[imp]:remove changes

[rem]:remove unused changes
2014-07-03 16:11:15 +05:30