Commit Graph

73573 Commits

Author SHA1 Message Date
Olivier Dony 57352367dc [IMP] website: disable translations for example URLs 2014-07-30 13:24:39 +02:00
Olivier Dony 5d72326fac [IMP] website: unused imports 2014-07-30 13:24:39 +02:00
Olivier Dony 999876f8bc [IMP] website: update sample social media accounts 2014-07-30 13:24:39 +02:00
Olivier Dony a1f307b489 [FIX] snippets: avoid orphan full stop (.) 2014-07-30 13:24:39 +02:00
Olivier Dony 7739d9ed84 [FIX] website.menu: url field should not be translated
Pages are made translatable using a dedicated mechanism,
and there is no UI to translate menu URLs anyway.
2014-07-30 13:24:39 +02:00
Olivier Dony d041bd97d6 [IMP] website: disable translation exports for test models
Avoids noise in POT files
2014-07-30 13:24:39 +02:00
Olivier Dony 07571de01b [FIX] google_calendar: cleanup/spellcheck translatable terms 2014-07-30 13:24:39 +02:00
Olivier Dony 57f79f9fa1 [REM] fields: remove fields.Any, temporary artifact for ill-typed fields
This was added in master-apiculture at f1f16a8 to
permit special function fields that return
structured JSON-like data.
This is unnecessary and caused typing problems, for
example for the type field of ir.model.fields, or
when you decide to store them.

It is simpler to explicitly declare these fields
as fields.Char and have them serialize their results
to JSON strings, or to declate them as fields.Binary
and return any opaque data they want.
2014-07-30 13:24:39 +02:00
Cedric Snauwaert 7127d2cdc3 [FIX] web: fix multiple modal closing (e.g. set defaults)
move call trigger('closing') after the modal('hide') call to prevent element being destroyed before we could do that call leaving a backdrop visible
2014-07-30 09:39:03 +02:00
Denis Ledoux 64ed698a58 [FIX] web: return _super deferred in start method
Forget to include the _super method in the deferred returned by the start function of the search view
See previous rev. 70605240a9
2014-07-29 19:43:56 +02:00
Denis Ledoux 70605240a9 [FIX] web: headless search views are ready from start
function start, line 783, filters_ready waits for fields_view_get deferred to be resolved before calling prepare_filters, which prepare the view filters.

The thing is that, at line 416, if this.headless boolean is true, the searchview is marked as ready (by resolving the this.ready deferred), and the fields_view_get deferred will never be resolved, as it is resolved in the else case, where the this.headless boolean is false.

Therefore, in this.headless true case, this prevents the deferred $.when(this._super(), filters_ready) to be resolved, as the deferred filters_ready will never be resolved. Therefore, the deferred returned by the start function is never resolved, and the searchview will never be regarded as ready neither.

In views.js, the ViewManager is marked as ready when the deferred manager_ready = $.when(searchview_loaded, main_view_loaded, this.view_completely_inited) is resolved. In the this.headless true case, as the searchview is never marked as ready, the manager isn't neither.

This leaded to some issues, like the action buttons in form views being disabled on click, and never re-enabled once the action/wizard executed. See opw-610723
2014-07-29 19:38:28 +02:00
Jeremy Kersten a052a72c8a [REF] crm analytics: refactor - lint 2014-07-29 17:10:03 +02:00
Lionel Sausin (Numérigraphe) dd4d72d710 [FIX] stock: partial deliveries switch on delivered picking
Users don't care for the backorder picking precisely because they can't process it, whereas they may have to do some more things on the picking they processed: invoice it, print delivery orders or transportation stickers..
Refresh the browse record after changing the name to avoid the need to rebrowse.
Fixes #1372
2014-07-29 16:15:20 +02:00
Christophe Matthieu 1d76fa0b1c [FIX] product: some fields on the product template readonly when my product doesn't have any variant 2014-07-29 15:20:25 +02:00
Jeremy Kersten 053d32d817 [IMP] crm: Add Campaign source and medium in group by + fix a bug when name_search return a tuple and not only the id. 2014-07-29 14:46:45 +02:00
StefanRijnhart f9da53743f [FIX] mail: reset of default_type in context
When creating a new message, we need to reset the default_type key to avoid context propagation (e.g. invoice menu).
However we used to compare the key in context (char) with the list of selections (tuple) so it was never matching and always reset.
2014-07-29 14:13:01 +02:00
Jeremy Kersten db20a45186 [IMP] website_blog: group the get_discussion in one request(get_discussionS), that will avoid to make one request by paragraph in blog. 2014-07-29 12:05:50 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Denis Ledoux bbb8d8f25a [MERGE] forward port of branch 7.0 up to 767d2ea9a6 2014-07-29 11:35:19 +02:00
Denis Ledoux 6b1a804b29 [MERGE] forward port of branch 7.0 up to b91a75f7ef
Conflicts:
	addons/base_vat/base_vat.py
	openerp/tools/safe_eval.py
2014-07-29 10:42:50 +02:00
Denis Ledoux 23436ca259 [FIX] website_event: display unconfirmed events too 2014-07-28 19:34:12 +02:00
Denis Ledoux 767d2ea9a6 [FIX] web: on refresh, do search_read with fields passed 2014-07-28 19:02:11 +02:00
Olivier Dony 7b4846afd7 [FIX] wek_kanban_gauge: use field raw_value to avoid thousands separator etc. 2014-07-28 18:50:55 +02:00
Christophe Simonis 120a2c1ec1 [FIX] {base_action_rule,calendar,hr,mail,project_issue}: decorate the method `message_post` to specify signature 2014-07-28 18:07:17 +02:00
Ravi Gohil b91a75f7ef [IMP] base_vat: differenciate VIES and classical VAT error
Display a different error message so that users are aware if the test failed with VIES enabled or not (opw 609823)
2014-07-28 16:56:14 +02:00
Martin Trigaux 6dc94f0c4e Forward port of branch saas-5 up to eda2f06 2014-07-28 16:37:56 +02:00
Jeremy Kersten d63ef168a8 [IMP] website_crm: allow to specify a view_from and view_callback for a form. That will allow to redirect the user on another thanks page depending form the form. We add also a preRenderThanks method with allow to updates the values used by the thanks page rendering. 2014-07-28 14:41:48 +02:00
Humberto Arocha 3fe508f200 [FIX] account: no journal items on consolidation accounts
As for the view accounts, the consolidation accounts should not allow to create journal items.
Fixes #1090
2014-07-28 12:55:58 +02:00
Martin Trigaux eda2f064cf [FIX] stock: backport of rev 0a6d63b 2014-07-28 09:35:25 +02:00
Richard Mathot 5e1221b339 [FIX] survey: display comments in results 2014-07-25 14:48:57 +02:00
Denis Ledoux ced5852144 [FIX] hr_holidays: do not allow reduce remaining leaves
In the Employee form, a remaining legal leaves field is available, which shows remaining validated leaves from allocation requests
As this is not allowed to delete a validated allocation requets, it shouldn't be possible to reduce the validated remaining leaves of an employee.
To reduce the remaining leaves of an employee, the user should cancel and remove the allocation request
2014-07-25 14:45:48 +02:00
Olivier Dony 48140f113a [IMP] account.invoice: add extra @id on `smart button` to make inheritance easier 2014-07-25 14:18:03 +02:00
Martin Trigaux f138aa2608 [FIX] models: display_name and name_get mismatch
- display_name uses name_get and not the other way around:
name_get should not call _compute_display_name, _compute_display_name should call name_get.
The previous behaviour was not backward-compatible with the old api.
All the models redefining name_get would have 2 different behaviors between name_get and display_name.

- Do not set an inverse function to display_name:
In most cases, writing on display_name writes on _rec_name (if any, not mandatory).
If the display_name computation is redefined, we need to redefine as well the inverse method to avoid unexpected behaviour
This required to also modify tests in base_import as readonly fields are avoided.

- Remove search method on display_name:
For the same reason as for the first point, it could be good that searching on display_name use name_search (and not the other way around).
However doing this would be very inefficiant (need to do the search, without limit, extract the ids of the name_get result just to generate
a subdomain ('id', 'in', [...]). As in most cases it would anyway mean to search on the _rec_name it's better to directly do so.

- Changing label to avoid mismatch:
In view displaying the list of fields or when a match is made on the label of a field (e.g. when importing csv file,
matching is made on both label and technical name), the fact that display_name field has '
Calling it 'Display Name' will avoid most errors.

- remove display_name definition from website_forum_doc,ir_model:
These fields are doing the same thing as the display_name of the new api, we can remove them.
We need to keep the one for res.partner as it's a stored field.
2014-07-25 13:58:59 +02:00
Richard Mathot eadd1b3907 [FIX] survey: correct counting of finished answers 2014-07-25 13:47:42 +02:00
Richard Mathot f0b6beac29 [FIX] survey: comments are properly recorded now 2014-07-25 13:47:42 +02:00
Richard Mathot 7ac86cff07 [DOC] survey: retroengineering
A bit of commenting in order to help future debugging and unf**king of
the survey reporting tool.
2014-07-25 13:47:42 +02:00
Richard Mathot 2a02d644a2 [FIX] survey: remove duplicate browse record
The `prepare_result` dict shouldn't keep a browse record of a survey, as it
is explicitely passed to the template by the controller
`survey_reporting`
2014-07-25 13:47:42 +02:00
Richard Mathot b7e62ae3dc [FIX] survey: minor view fixes 2014-07-25 13:47:42 +02:00
Ravish 98ddec4fb8 [ADD] sale: validity date in sale order report 2014-07-25 13:23:11 +02:00
Olivier Dony bcd9456db5 [REVERT] 8b41906: disabled all on_change on new record form
This reverts commit 8b41906bf8.
2014-07-25 12:45:21 +02:00
dsabrinarg 93127099c9 [ADD] base_vat: add VAT validation for Peruvian localization. 2014-07-25 11:35:20 +02:00
Olivier Dony 13fb4f2e62 [FIX] website: more robust inherit between footer_custom and footer_default 2014-07-25 10:59:49 +02:00
Martin Trigaux 10fce02eb0 [FIX] website_membership: access rules fixes
When searching on memberships, we use domain clauses in the format 'partner.x = y' where partner is a many2one to res.partner. The object res.partner has strict security rules for public users and this search will return zero result if not done with SUPERUSER_ID.
In addition, we need to access the list of products (membership_ids) in the domain to be sure we will retrieve only published membership (otherwise it would crash in the sort below).
2014-07-25 10:57:30 +02:00
Martin Trigaux e467946785 [FIX] website: iframe to google maps need the trailing slash, otherwise the path and the id are not separated (e.g.: '/members42') 2014-07-25 09:47:13 +02:00
Denis Ledoux a5531c1d29 [FIX] stock: do not set user_id on prepare_invoice_group
The user_id is already set by the prepare_invoice method, which is called before the prepare_invoice_group (the user_id is already set, thus)
Besides, _prepare_invoice is overriden in sale_stock, to set the picking sale order salesman as user_id, and, without this correct, grouping invoicse by partner re-set the user_id to uid, which is wrong.
2014-07-24 20:42:21 +02:00
Denis Ledoux de34d66860 [FIX] project: remove state field from task analys
The state has been replaced by stage_id in the view, so the state is no longer used
Moreover, when doing an advanced search, the field state is visible and if used -> Traceback (because not available in the report sql table)
opw-609984
2014-07-24 19:41:15 +02:00
Jeremy Kersten 89e8626ab0 [FIX] website: catch exception on destroy of ckeditor to allow the modifications to be saved anyway 2014-07-24 18:12:32 +02:00
Yannick Vaucher 951a51df3f [IMP] account: do not offer closed analytic accounts on invoices
lp:1223922, opw 609656
2014-07-24 16:23:49 +02:00
Richard Mathot ee7a9c7621 [REF] Odooification 2014-07-24 16:22:52 +02:00
Vidhin Mehta eb08c12b09 [FIX] web: wrong tooltip display for long menus
Due to the switch to Bootstrap 3.2 in this version, tooltip auto placement works erroneously (see https://github.com/twbs/bootstrap/issues/13897).
This is a workaround, waiting for a fix in Bootstrap assets.

(Closes #1341)
2014-07-24 15:21:32 +02:00
Martin Trigaux 8b41906bf8 [FIX] web: avoid trying to access to deleted record message when change password
The onchange call can be made with empty ids list (which would fail). opw 610810
2014-07-24 12:12:33 +02:00
Jeremy Kersten 451d2de355 [FIX] website_sale: fix error in tracking_last_order which was using the field is_delivery from module delivery 2014-07-24 11:07:46 +02:00
Ravi Gohil 1acf76bfc2 [FIX] purchase_analytic_plans: keep reference to analytic distribution
Purchase orders created with invoice policy 'Based on incoming shipments' were not keeping the reference to the account analytic distribution when invoiced. opw 607577
2014-07-24 11:04:02 +02:00
Christophe Matthieu 79a3711168 Merge pull request #1340 from odoo-dev/saas-3-fix-website-snippet-button-css-chm
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
2014-07-24 09:35:04 +02:00
Christophe Matthieu d0f259ee02 Merge pull request #1338 from odoo-dev/8.0-fix-website-snippet-button-css-chm
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
2014-07-24 09:32:41 +02:00
Martin Trigaux 3d53306ccc [FIX] gamification: why is there a button here ? do you need a button ? I don't think so... 2014-07-24 08:50:48 +02:00
Olivier Dony a09dadd253 [FIX] share: reduce risk of slowdowns during res.groups changes
Databases with thousands of users would experience
poor performance during any change to a group during
an update/install, caused by the prefetching of
all database users when the browse cache contains
most of the groups in the system.
2014-07-23 23:32:13 +02:00
Jeremy Kersten 335e4a8cc3 [FIX] website_blog: Add sanitize=False on content of blog to allow writer/author to insert some tricky code like form or JS 2014-07-23 17:10:02 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Christophe Matthieu 330808b2cf [FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes 2014-07-23 16:38:09 +02:00
Martin Trigaux b5918cb55c [MERGE] forward port of branch 7.0 up to 67cca3f 2014-07-23 16:23:22 +02:00
Christophe Matthieu 0a13d8f1db [FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes 2014-07-23 16:21:53 +02:00
Jeremy Kersten 5ae0b900f7 [IMP] website_crm - add kwargs into create_lead function. That allow to get some fields which will be already join in the description from values to custom the behavior from create_lead function 2014-07-23 15:43:59 +02:00
Christophe Matthieu f478e0557b [FIX] account: the 'Customer taxes' field on the product is readonly when my product doesn't have any variant 2014-07-23 15:37:15 +02:00
Sandy Carter 67cca3f1e5 [FIX] mail: display translated model name at record creation
When a record is created, if it inherits from mail.thread, a message 'OBJECT created' is posted. 'created' is translated but the name of the model wasn't.
This fix uses the name of the linked ir.model which is already a translatable field.
lp:1262000, opw 611043
2014-07-23 15:35:41 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Martin Trigaux f9d43e83c6 [FIX] web: correct rev 680f955
Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported
2014-07-23 12:31:25 +02:00
Denis Ledoux 5739aebfb1 [MERGE] forward port of branch saas-3 up to 474eae9a43 2014-07-23 12:14:14 +02:00
Denis Ledoux 474eae9a43 [FIX] website_sale: translated terms payment status
Payment status (website_sale confirmation page) inject a status message, which was not set to be translatable. It should be the case.
2014-07-23 12:00:09 +02:00
Daniel Dico 42f3575bb3 [FIX] account: Bank Statement reconcilation with different currency
When generating reconciled moves in bank statement, use the amount_currency field instead of amount for currency conversion.
Otherwise we would endup with moves with an amount of 0.
2014-07-23 11:19:41 +02:00
Jeremy Kersten a0ebd2c88e [IMP] website_crm: allow creation of the lead to be overrided. That avoid people to rewrite all the routine of the form if they want to change the default behavior at lead creation when form is submitted. 2014-07-23 11:15:07 +02:00
qdp-odoo e7780ac97a [FIX] stock: wrong target table and function for lot_ids in stock.move 2014-07-23 10:28:26 +02:00
qdp-odoo e9c92b57b9 [FIX] account: fixed the copy of a bank statement 2014-07-23 10:15:29 +02:00
Hardik Ansodariya 9a20018166 [FIX] stock: allow same serial number for different products
Bug lp:1222289, opw 597639
2014-07-23 10:03:40 +02:00
qdp-odoo 09b77ca11d [FIX] stock: wrong target table and function for lot_ids in stock.move 2014-07-23 09:48:05 +02:00
Denis Ledoux 586b0e2f5d [FIX] website_sale: _rec_name product.attribute.line
Set the _rec_name for product.attribute.line model, as its column name wasn't defined, and therefore search on it wasn't possible (For instance, do an advanced search on product.product with "Product Attributes" "Contains" "Something" wasn't possible).
2014-07-23 08:56:36 +02:00
Christophe Combelles 299246e2ae [FIX] account: using wizard methods instead of invoice methods
Typo during port of account.invoice to new API.

(Rebase of 02a36b6 for #1052)
2014-07-22 22:23:54 +02:00
Denis Ledoux d9339e1e2d [FIX] sale, crm_claim, crm_helpdesk: report menus
crm claims and helpdesk reports should be in Sales Report menu, not in project
The sales report menu is now defined in sales_team, which is a common dependance between crm and sales, instead of redefining this menu in each modules
2014-07-22 19:13:13 +02:00
Lionel Sausin (Numérigraphe) 57ad75b08d [IMP] sale_stock Show the button 'view delivery order' as soon as a picking exists
The button should appear no matter the state of the sale order, to be consistent with the rest of the application.
This makes it much faster for the sales person to find out about orders in shipping exceptions or already processed.
Fixes #256
2014-07-22 17:46:46 +02:00
Martin Trigaux 36fcfc66c4 [FIX] website_sale_delivery: avoid selecting unavailable delivery method
If somebody selects a delivery method not matching any criteria, the server would crash (500 for the user). This is due to error raised in get_price_from_picking which is triggered by the function field 'price' on the 'delivery.carrier' object.
To avoid this, add field 'available' on the carrier that will be False when no delivery gird is found or when the error is raised. In this case, the delivery choice is disabled. opw 610210
2014-07-22 17:03:02 +02:00
Martin Trigaux f7dfcd5d98 [FIX] delivery: use unit of measure and not unit of stock to compute price of delivery
The computation expects uom and it was wrongly passing uos qunatities.
2014-07-22 16:38:52 +02:00
Martin Trigaux 1f878f152a [MERGE] forward port of branch 7.0 up to 680f955 2014-07-22 13:39:15 +02:00
Anaël Closson 680f9554b4 [FIX] web: reload after wizard when record has been removed cause exception
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883)
This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
2014-07-22 13:18:00 +02:00
Dhs-odoo 8320f01fef [FIX] project : do not show canceled projects in task
fixes #938, opw 610318
2014-07-22 11:29:33 +02:00
Richard Mathot 005282014a [FIX] hr_attendance: typo introduced at rev 1c9e8ba077 2014-07-22 10:03:16 +02:00
Denis Ledoux ae678d9e05 [FIX] sale: only propose services for pay advances
When creating an invoice from a sale order, if the user choose to invoice a fixed price (deposit), he has the possibility to choose an advance product. As described in the help message, this product should be a service product. Therefore, we add a domain so only services are displayed in the dropdown list
2014-07-18 17:26:48 +02:00
Martin Trigaux c58bf1e3bc [FIX] account: better error message when regenarating opening entries (opw 606923)
If we try to generate twice entries on the same fiscal year, we can get completly unrelated errors ("You can only reconcile journal items with the same partner").
With this, we make sure people will first cancel the entries before regeneraing the entries.
2014-07-18 16:53:01 +02:00
Denis Ledoux 6801a3f505 [FIX] sale: do not propagate context on send email
Otherwise, active_id, active_ids, active_model params are propagated, and it leads to inconsistencies.
For instances, go to Sales > Customers, choose a customer which has quotations.
On the form, hit the "Quotations and sales" Button
Choose a quotation. Hit the "send by email" button.
The template preview should be displayed correctly. Now send the email, than
 - Either, you have no traceback: The email sent is the email of another quotation, the quotation having as id the id of the partner you chose
 - Either, you have a traceback: There is no quotation having as id the id of the partner you chose.
2014-07-18 16:49:45 +02:00
Denis Ledoux 22bbfdaab1 [FIX] procurement: avoid to run multiple scheduler
Avoid to run the procurement scheduler multiple times in the same time, otherwise, they tend to interfere with each others
2014-07-18 13:56:42 +02:00
Jérome Maes 738270557f [FIX] crm : propagate the lead_id when scheldule other phone calls 2014-07-18 13:02:07 +02:00
qdp-odoo cc7bc21a9d [FIX] purchase: set the commitment date as the max of scheduled dates when creating a picking from a PO, instead of leaving it at the current time (validation) which just doesn't make sense 2014-07-18 12:17:54 +02:00
qdp-odoo 954ab3eefb Merge pull request #1268 from odoo-dev/8.0-pos-fixes-qdp
[FIX] point_of_sale: fixed errors that avoid closing a pos session + [IM...
2014-07-22 08:58:02 +02:00
Jérome Maes 869b647c02 [FIX] im_chat : css style z-index to make it good with ecommerce and calendar 2014-07-18 16:41:15 +02:00
Christophe Matthieu 2182797d93 Merge pull request #1262 from odoo-dev/8.0-fix-product-lst_price-chm
[FIX] product: user who don't use product variant can't edit the price of the product in product view. This behavior is not understandable. Add a function inverse to set the value (remove the variante price before change the list_price of the template)
2014-07-18 16:04:28 +02:00
qdp-odoo 5ae60d8a2d [FIX] point_of_sale: fixed errors that avoid closing a pos session + [IMP] account: added back the account_id field on statement.line obj to ease the reconciliation process when importing statements (or creating them through pos.orders). Fix #932 2014-07-18 15:43:20 +02:00
Xavier Morel 1b546a3cd5 [FIX] website_hr_recruitment: typo during new API conversion
re fixes #1148
2014-07-18 15:07:59 +02:00
Richard Mathot 6f1b820d33 [REF] OpenERP --> Odoo in various UI texts (2)
Some things missed by commit 8b67a7202d
2014-07-18 14:59:38 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Christophe Simonis 1f5d135e44 [FIX] web_linkedin: link (in) the config_parameter with the correct group 2014-07-18 13:19:02 +02:00
Oliver Laurent 1c9e8ba077 [FIX] hr_timesheet: handle case when has never signed in
The search may return zero results if an employee has never signed in. In this case the browse would have failed.
2014-07-18 11:53:19 +02:00
Christophe Matthieu 380a7e97f5 [FIX] product: user who don't use product variant can't edit the price of the product in product view. This behavior is not understandable. Add a function inverse to set the value (remove the variante price before change the list_price of the template) 2014-07-18 11:33:09 +02:00
TheCloneMaster ed58bcf26b [FIX] hr_timesheet: missing '&' in domain clause
To search the contracts for payroll, the domain is constructed with three clauses. Each of these clauses needs to start with a '&' to make sure they are correctly combined with the OR clause'
2014-07-18 10:56:56 +02:00
mdi-odoo 6e15fb060a [FIX] fleet: prevent crash when no cost_ids 2014-07-18 10:33:31 +02:00
Bhumi Patel a5efa93b93 [FIX] website_forum: prevent crash when no country
Closes #1171
2014-07-18 09:38:39 +02:00
Olivier Dony 15174e9a70 [IMP] base, mail: cache user.has_group() + ir.ui.menu.load*()
Loading the menus is the most expensive
operation for an average page load, and
the result does not change often.
The menu filtering already uses a separate
cache based on groups, but the rest of the
loading includes reading actions and
translating menu names, which is also
expensive.

Added a cache keyed on user + user
lang, plus relevant cache invalidation
when any of the following are touched:
access rights, user data including
groups and language, menus or mail.group
subscriptions.

The menu filtering cache is still
useful in parallel has it is invalidated
under different conditions.

User.has_group() is cheap but still
called very often, so it is an easy
win as well, and also frequently
used when rendering page templates.
2014-07-17 18:46:10 +02:00
Olivier Dony 68aa292f0a [IMP] mail: speed up filtering of mail.group menus
Replacing the browse+search speeds up
the filtering 50x, which is significant
for a method that may be called on most
page loads as soon as the user is
logged in.
2014-07-17 18:46:10 +02:00
qdp-odoo d35d47165e Merge pull request #1124 from odoo-dev/master-wmsstaging4-jco
fixes related to WMS, product variants and templates... from Josse
2014-07-17 18:18:16 +02:00
Josse Colpaert 5f21eeb1d2 [IMP] We should not have lost this decorator 2014-07-17 17:52:10 +02:00
Denis Ledoux 49c203d6b9 [FIX] website_sale: do not set t-field in option
t-field in option input (select > option) is not supported
2014-07-17 17:22:43 +02:00
Martin Trigaux f9170a04fb [FIX] website_sale: make the 'Ship to a different address' always available
In the backend the option 'Allow a different address for delivery and invoicing' will set the group sale.group_delivery_invoice_address to employees. However the public user is not an employee (and we don't want to change that) so does not get this group. As we don't have similar group mechanism for public user, we have no other choice than always displaying the option to have different address. opw 610118
2014-07-17 16:09:52 +02:00
Olivier Dony a7d3735915 [IMP] mail.group: set special header to disable OOF replies from MS Exchange 2014-07-17 12:33:55 +02:00
Olivier Dony 817b60de1a [FIX] website_mail_group: slufigy group link + spellchecking 2014-07-17 01:04:25 +02:00
Olivier Dony 562d8129f2 [FIX] mail: less confusing To: header for mailing-list posts
Many mail clients will replace the name in the To:
header with Me if the To: email matches the email
of the user. These users will see To: Me instead of
"Followers of ..." and usually believe this was a
private email from the sender to them.
But when replying they would reply to the whole list.

Fix this by explicitly forcing the To: to be the
mailing list address.
2014-07-17 00:16:12 +02:00
Olivier Dony 6ac1deccf6 [FIX] mail, website_mail: specific mailing-list footer + better unsubscribe option
- remove the default footer for mail.group messages,
  replace with specific footer with archive and unsubscribe
  link
- remove the automatic addition of user signature in
  mail.group messages, as many of them will be posted
  via the mail gateway and already contain a user signature.
- make it easier to unsubscribe even when not logged in,
  as followers who have not signed up will have no
  way to login short of signing up.
- remove tests looking for user signature in mail.group posts
2014-07-16 23:21:30 +02:00
Jeremy Kersten fd0c52550a base_gengo: [FIX] change http status code for gengo_callback because status 100 make response very slow
[FIX] Cron for gengo was always in mode 'do missed' what we don't want, replace 0 by False
[FIX] Remove unused regexp to find view_id from js which was breaking the count words
2014-07-16 14:59:22 +02:00
Xavier Morel 7286f4e424 [FIX] ensure Field strings are decoded before comparing them to one another
fixes #773
2014-07-16 14:07:43 +02:00
Josse Colpaert 28ad04a4de [IMP] Only show number of variants when more than one + bug cursor Compute Minimum Stock Rules 2014-07-16 13:50:56 +02:00
Josse Colpaert 0aad6b0498 [IMP] Check other comments on pull request: xmlid, no split in context + continue improve receipts instead of receptions 2014-07-16 11:58:22 +02:00
Christophe Matthieu f8d8179a92 [FIX] website_sale: add shop/pricelist controller 2014-07-16 10:51:02 +02:00
Thibault Delavallée 9955624029 website_forum: fixed issue when voting. The method should work in batch. Previously to this implementation having one post with a vote bypassed the other posts without vote when called with several ids. 2014-07-16 10:39:38 +02:00
xmo-odoo 3385666632 Merge pull request #1166 from xmo-odoo/8.0-jobs-list-geo-xmo
8.0 jobs list geo xmo
2014-07-16 10:29:12 +02:00
xmo-odoo 16d67445da Merge pull request #1076 from xmo-odoo/8.0-shop-fix-xmo
Fix access rights issues in new API for the shop home page
2014-07-16 10:28:51 +02:00
Josse Colpaert db715f99f4 [IMP] Change reception to receipt 2014-07-16 10:23:57 +02:00
Josse Colpaert e23a36c1a5 [FIX] Make sure that when cancelling a move the linked procurements are checked the right way 2014-07-16 10:06:15 +02:00
Jérome Maes bff521b23f [FIX] bus, im_chat, website_livechat :fix date in js, bus cr.commit and access rules for portal 2014-07-16 09:43:33 +02:00
Josse Colpaert 3b636a5df0 [WIP] Simplify procurement check and sales order workflow and that way phantom boms will work 2014-07-15 18:38:06 +02:00
Denis Ledoux c363451f95 [FIX] sale: no warn onchange pricelist and no line
The popup warning that changing the pricelist will not update the existing order lines should not be diplayed it there is no order line set.

It was the case until 8.0. The change of behavior of on changes has broken this feature: Now, the on change return [(6, 0, [])] for an empy order line list, instead of just [].
2014-07-15 16:30:38 +02:00
Thibault Delavallée d4b923aec9 [FIX] project_mrp: prevent crash during installation if stock is not installed; use default view for product coming from the product module that is indeed in the dependencies. 2014-07-15 14:48:45 +02:00
Xavier Morel 3f8fd0dad6 [IMP] website_hr_recruitment: new API 2014-07-15 13:56:19 +02:00
Thibault Delavallée c959f49179 [FIX] website_forum: fixed controller creating a new forum tha was crashing. 2014-07-15 12:13:06 +02:00
Christophe Simonis a5419ca800 [MERGE] forward port of branch saas-5 up to e0759c1 2014-07-15 11:21:59 +02:00
Xavier Morel fcfa5a56ef [FIX] website_hr_recruitment: various warnings 2014-07-15 10:55:41 +02:00
Xavier Morel 03977a29e6 [FIX] expected browse_record can be an integer
If no filter is specified, the geoip library is installed and the user's
address can be geolocated, ``country`` is assigned an integer (the id of the
matching country) whereas the filtering code expects a browse.

fixes #1148
2014-07-15 10:50:49 +02:00
Christophe Simonis e0759c1350 [MERGE] forward port of branch saas-4 up to de696f1 2014-07-15 10:39:08 +02:00
Christophe Simonis de696f14f8 [MERGE] forward port of branch saas-3 up to 24484c8 2014-07-15 10:38:14 +02:00
Christophe Simonis 24484c8bcd [MERGE] forward port of branch 7.0 up to 7a928b1 2014-07-15 10:36:54 +02:00
Thibault Delavallée c33863ed75 [FIX] crm: fixed fields defind in crm_lead_report_view for group_by. Some of them were incorrect. 2014-07-15 10:24:34 +02:00
Martin Trigaux 3bdb00eaf7 [FIX] project: default_groups_ref expects the format module.xml_id (opw 610098) 2014-07-14 16:39:13 +02:00
Xavier Morel a1de79b875 [FIX] calendar: invalidate cache to avoid (pre)fetching invalid virtual IDs
Because the new API basically browses everything, the virtual IDs used by
calendar.event are added to the cache and prefetching tries to get them from
the database resulting in conversion errors. These ids have to be forcibly
evicted to avoid the error.
2014-07-14 15:41:40 +02:00
sle-odoo 736c5dd87e Merge pull request #1097 from odoo-dev/8.0-fix-view-editor-sle
[FIX] view_form: use the reference of menu from the instance, not from t...
2014-07-14 13:51:46 +02:00
Xavier Morel 7c540bc4ee [FIX] exception rendering with pretty printed XML
had not been migrated to lxml
2014-07-14 13:44:37 +02:00
Nhomar - Vauxoo 8472ee9f45 [FIX] project: inappropriate signature in project.task.work.unlink() 2014-07-14 13:38:41 +02:00
Florian Hatat eb486ae127 [FIX] board: add missing _t() calls to enable translation in dashboard.js
Fixes LP bug https://bugs.launchpad.net/openobject-addons/+bug/1205798
2014-07-14 12:23:44 +02:00
Christophe Matthieu 9b8e307eb1 Merge pull request #1143 from odoo-dev/8.0-fix-website_sale-chm
[FIX] website_sale: fiscal_position is undefined; website: add user into the tour logs
2014-07-14 12:10:03 +02:00
qdp-odoo 67133320b5 [FIX] account, usability: set the journal as readonly in bank statement form view when some entries have already been created. Fixed issue #1117 2014-07-14 11:44:12 +02:00
Stéphane Bidoul 5df99ce622 [FIX] account: add `sequence` on account.tax.code.template
Relying on the ordering by tax code is not sufficient,
as some tax declarations such as the Luxemburg one,
show tax case codes not ordered numerically

Original fix courtesy of Stefan Rijnhart (Therp)

Fixes: lp:1168948
Rebase of: PR #759
2014-07-14 11:33:05 +02:00
Josse Colpaert 739a1d0051 [IMP] Add buttons product and product templates for analytic rules 2014-07-13 09:56:43 +02:00
Josse Colpaert 32dd003d60 [MERGE] Resolve conflicts 8.0 2014-07-13 09:27:20 +02:00
Josse Colpaert 5f5e18f9bb Merge branch '8.0' of https://github.com/odoo/odoo into odoo/8.0 2014-07-13 08:26:48 +02:00
qdp-odoo f61339b82c [FIX] account, bank statement reconciliation: fixed huge bugs when using tax with several children or when debit/credit are 0 but some amounts have to be put in a tax code + improved usability by adding domains where needed 2014-07-11 17:15:34 +02:00
Martin Trigaux 0a6d63b82c [FIX] product: unfuck templates and products in views
product.product reuses most of the product.template views however some parts need to be excluded or replaced.
Instead of adding template only parts in base view and removing it for product, split the views in 'common' (product_template_form_view), 'template only' (product_template_only_form_view) and 'product only' (product_normal_form_view) where the first is inherited by the other two. The attribute mode='primary' on both second views allows to make sure that future inheritance of product_template_form_view and product_template_only_form_view will work with the full rendered product_template_form_view view.
This allows us to have valid buttons in crm for bill of material (filters based on active_id).
Also cleaning the mess with circular dependencies.
2014-07-11 17:03:04 +02:00
Thibault Delavallée 59320c4ab6 [FIX] website_forum: fixed karma computation, on first vote the karma was wrongly calculated (when creating a vote, not when updating it). 2014-07-11 16:46:39 +02:00
Stéphane Bidoul 50b48e0d13 [FIX] l10n_lu: wrong mapping of accounts to P&L financial report
Account 655 and its child 6554 were both mapped.
Fixed by unmapping 655 and mapping all its direct children.

(Manual rebase of PR #733)
2014-07-11 15:50:10 +02:00
Stéphane Bidoul be82c99b23 [FIX] l10n_lu: taxes (amont/aval)
The accounts "TVA en amont" were not used by the l10n_lu chart of accounts.

Instead the accounts "TVA en aval" were used for all taxes both sale and purchase taxes.

(Manual rebase of PR #735)
2014-07-11 15:47:45 +02:00
Christophe Matthieu 5f25cb9244 [FIX] website_sale: install website_event_sale click on event to make a registration, error because fiscal_position is undefined 2014-07-11 15:29:22 +02:00
Christophe Matthieu 6139887f5a [FIX] Tour.js: add user name into the log 2014-07-11 14:37:37 +02:00
Christophe Matthieu bd11d32694 [FIX] website: banner is broken if more than one on a banner page 2014-07-11 14:06:33 +02:00
Martin Trigaux ec01e0789b [FIX] web_calendar: Revert d9e6a7a as was fixed differently at rev e220136
Fixing calendar view errors, opw 609989
2014-07-11 13:58:26 +02:00
Christophe Matthieu cab80a0252 Merge pull request #1074 from odoo-dev/8.0-website-link-chm
[FIX] web: update bootstrap to version 3.2.0.
[FIX] website.seo can't edit title and description; website.editor change link for internal page
[IMP] website editor: remove button style from cke and insert into the link dialog box.
2014-07-11 13:41:21 +02:00
Christophe Matthieu a72bdcca90 [FIX] website: add forgotten button type (btn-success) for link editor 2014-07-11 13:38:57 +02:00
Xavier Morel 6014d44b2b [IMP] add read access to all users for product.pricelist.type
In new API, selection field value is checked (against the selection's possible
values) at both read and write. For pricelist.type this requires read access
to product.pricelist.type.
2014-07-11 13:32:46 +02:00
Olivier Dony 924e4b1a08 [MERGE] Fwd-port saas-4 up to e31fd6a 2014-07-11 12:00:42 +02:00
Olivier Dony e31fd6a1e1 [MERGE] Fwd-port saas-3 up to a9d2b65 2014-07-11 11:53:07 +02:00
Simon Lejeune 239144d519 [FIX] view_form: use the reference of menu from the instance, not from the widget ancestors
Fixes #1024: when using a formview on a non trivial way, the reference of the menu using the widget ancestors may be wrong
2014-07-11 11:51:54 +02:00
Olivier Dony a9d2b65da5 [MERGE] Fwd-port 7.0 up to 783b9e1 2014-07-11 11:51:06 +02:00
Olivier Dony 783b9e1c89 [FIX] event_sale: reset event-related fields on SO line when switching products 2014-07-11 11:45:38 +02:00
Richard Mathot 117a26babe [FIX] hr: call hr_employee super's when unlinking
Also fixes some weird inheritance bugs in upper versions
2014-07-11 11:41:17 +02:00
Christophe Matthieu aca1865654 [FIX] website.seo: regexp doesn't match the object and object id 2014-07-11 11:33:18 +02:00
Christophe Matthieu 1eee1d2c51 [IMP] website: replace the select box into dropdown for link editor to have a preview 2014-07-11 11:09:24 +02:00
Thibault Delavallée 67f1fd8a53 Merge pull request #724 from odoo-dev/7.0-mail_issues-fix-adh
[FIX] mail: misc bug fixing
- avoid deleting the Whole Company mail group if still present, because it is required for some module installation. In 7.0 installing some modules may crash if this group is not present.
- fixed an issue when computing possible recipients in the Chatter
- small fix in html2plaintext about blank lines
2014-07-10 22:50:53 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Christophe Simonis 73d39a0c8c [MERGE] forward port of branch saas-4 up to a361947 2014-07-10 22:12:16 +02:00
Christophe Simonis a361947143 [MERGE] forward port of branch saas-3 up to a35aec2 2014-07-10 22:02:58 +02:00
Christophe Simonis a35aec2a0b [MERGE] forward port of branch 7.0 up to 6e96ffd 2014-07-10 22:02:01 +02:00
Richard Mathot 4d6b89105b [TYPO] in website_partner 2014-07-10 20:28:21 +02:00
Loïc Bellier 6e96ffd44c [FIX] stock: remove permission to create locations for partner managers
There's a big risk of mistake with the fast-create
feature and they don't need it

(Rebase of PR #1073)
2014-07-10 19:16:41 +02:00
Josse Colpaert 6191ed33a0 [IMP] default priority if no moves in picking 2014-07-10 19:03:33 +02:00
qdp-odoo 82bb9b0880 [FIX] purchase_requisition: converting the date into datetime using the timezone of the requisition's responsible 2014-07-10 19:03:07 +02:00
Christophe Matthieu 67e15d8d86 [FIX] web: update bootstrap to version 3.2.0; add bootstrap less files 2014-07-10 16:59:31 +02:00
Thibault Delavallée e4cb5619fe Merge pull request #1067 from odoo-dev/saas-5-forum-answer-order-fix-htr
[FIX] website_forum: fix answers display order (correct, then votes, then write_date)
2014-07-10 16:54:43 +02:00
Anand-Dharampuriya 5cbc611361 [FIX] Solve some mail issues which are currently present in 7.0 2014-07-10 16:29:54 +02:00
qdp-odoo 42bd6e5240 [FIX] purchase_requisition: use fields.date.date_to_datetime() to convert date into datetime... which simply makre sense 2014-07-10 16:24:04 +02:00
parthiv patel 7177f83da9 [ADD] l10n_sg: Chart of accounts and chart of taxes for Singapore
(Rebase of PR #1057)
2014-07-10 16:12:35 +02:00
Christophe Matthieu 886d6101ac [IMP] website editor: change link editor modal layout 2014-07-10 15:25:44 +02:00
Richard Mathot f6bf77c2b5 [FIX] mail: bad display of aliases on user forms
(Partial backport of commit 1f86156991)

Closes #800.
2014-07-10 15:22:03 +02:00
Christophe Matthieu 0effbe3ca6 [FIX] website: enumarate page raise an exception if query_string is not null; Can't create a page with the modal link editor 2014-07-10 14:30:15 +02:00
Richard Mathot a0a17fa46e [TYPO] in event, event_sale 2014-07-10 14:11:01 +02:00
Christophe Matthieu c2c0fdc916 [IMP] website editor: remove button style from cke and insert into the link dialog box. Fix the dialog box label value when the user create a link. 2014-07-10 13:34:02 +02:00
FalcoBolger e6b6392f3a FIX email_template: Update help from lang field leading to confusion while creating a template 2014-07-10 11:28:33 +02:00
FalcoBolger 44bf56c77c [FIX] event_sale: do not crash when empty field product in ticket types lines 2014-07-10 11:26:19 +02:00
Christophe Matthieu caa534e503 Merge pull request #1039 from odoo-dev/8.0-fix-sitemap-chm
[FIX] website: error for rendering of the sitemap template. qweb can't render the xmlns attribute.
2014-07-10 11:05:01 +02:00
qdp-odoo 7b82d79932 Merge pull request #1000 from odoo-dev/8.0-po-as-datetime-qdp
Changed fields.date_order on purchase.order from date to datetime
2014-07-10 09:18:34 +02:00
Thibault Delavallée abbe4ef76c [FIX] website_forum: fixed issue with user vote badly taken into account when upvoting / downvoting + crash due to wrong field name. Backport of Leonardo Donelli PR for master. 2014-07-10 09:03:53 +02:00
Fabien Pinckaers b333457ca3 CSS Fix: /shop 2014-07-09 18:51:07 +02:00
Fabien Pinckaers ac7f1d9e0e CSS Fix for Products in /shop 2014-07-09 18:48:25 +02:00
Jeremy Kersten 8eb97cc082 [IMP] website_sale: Add google analytics on checkout process 2014-07-09 17:45:40 +02:00
Martin Trigaux fa44bdb486 [FIX] mass_mailing: load images in emails
The emails containing emails generated with the image widget have absolute path (src='/website/static/...'), adding <base> tag allows the mail client to load it correctly.
2014-07-09 16:42:22 +02:00
Christophe Matthieu 928f4fbf76 merge from 8.0 2014-07-09 16:10:08 +02:00
Christophe Matthieu e851c36a0f [FIX] website: error for rendering of the sitemap template. qweb can't render the xmlns attribute. 2014-07-09 16:03:54 +02:00
Christophe Matthieu f5de19a700 Merge pull request #1036 from odoo-dev/8.0-fix-log-error-tour-chm
[FIX] tour.js: display a wrong error message when an error is detected with phantomjs test tour
2014-07-09 15:57:15 +02:00