Fabien Pinckaers [Tue, 12 Aug 2014 06:52:14 +0000 (08:52 +0200)]
[IMP] Update Readme, business apps
Frédéric Van der Essen [Mon, 11 Aug 2014 16:12:01 +0000 (18:12 +0200)]
Merge pull request #1731 from hmen89/8.0-pos-dom-cache-fix
[FIX] point_of_sale: DOM Cache Error
Frederic van der Essen [Mon, 11 Aug 2014 16:01:49 +0000 (18:01 +0200)]
[FIX] point_of_sale: #1558 The partner was not correctly identified on the bank statement line, creating open balances on the partner account
Grover Menacho [Mon, 11 Aug 2014 15:58:15 +0000 (11:58 -0400)]
[FIX] point_of_sale: DOM Cache Error
Christophe Simonis [Mon, 11 Aug 2014 15:37:46 +0000 (17:37 +0200)]
[FIX] ir_cron: typo introduced in commit a3d6b3a
Frederic van der Essen [Mon, 11 Aug 2014 14:56:01 +0000 (16:56 +0200)]
[FIX] point_of_sale: support for variants in the pos, one simply needed to use the display_name which contains the product variant info.
Conflicts:
addons/point_of_sale/static/src/js/models.js
Frederic van der Essen [Mon, 11 Aug 2014 11:39:39 +0000 (13:39 +0200)]
[IMP] point_of_sale: make the confirm action color less frightening & longer delay
Frederic van der Essen [Fri, 8 Aug 2014 13:27:06 +0000 (15:27 +0200)]
[FIX] point_of_sale: it was too easy to accidentally hit the close button on ipads, made it double click only
Frederic van der Essen [Fri, 8 Aug 2014 14:52:22 +0000 (16:52 +0200)]
[FIX] point_of_sale: order sequence number should take into account offline generated orders
Frederic van der Essen [Fri, 8 Aug 2014 14:03:38 +0000 (16:03 +0200)]
[FIX] point_of_sale: partners should be searchable by phone or mobile number
Frederic van der Essen [Fri, 8 Aug 2014 12:43:19 +0000 (14:43 +0200)]
[FIX] point_of_sale: order buttons were too big to be used on tablets
Richard Mathot [Mon, 11 Aug 2014 14:51:42 +0000 (16:51 +0200)]
[FIX] ir_cron: typo introduced in fwdport
ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93
Olivier Dony [Mon, 11 Aug 2014 14:02:08 +0000 (16:02 +0200)]
[IMP] mail.mail: simplify: no default for `headers` field
This avoids storing useless "{}" values
in the database when there are no headers,
and avoids having to update all existing
entries when this column is added.
Just requires simple tests before evaluating
the headers contents.
Olivier Dony [Mon, 11 Aug 2014 13:56:06 +0000 (15:56 +0200)]
[IMP] mail.mail: unused `import re`
Denis Ledoux [Mon, 11 Aug 2014 14:03:41 +0000 (16:03 +0200)]
[FIX] ir_cron: forgotten conflict from forward port
ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93
Denis Ledoux [Mon, 11 Aug 2014 13:52:15 +0000 (15:52 +0200)]
[MERGE] forward port of branch saas-5 up to 0739bc4
Thibault Delavallée [Tue, 5 Aug 2014 10:54:03 +0000 (12:54 +0200)]
[FIX] mail: fixed bounce email recognition + invite email headers + mass mailing statistics not lost anymore
- [FIX] bounce regex: too many emails were considered as bounce and therefore
not displayed in the chatter and lost for the communication history. The regex
was not correctly looking for the bounce alias in the email_to.
- [FIX] invite email: replying to the invitation email (invitation as new
follower) now replies to the user sending the invitation.
- [FIX] mass_mailing: added a column to store the id of the original email
in addition to the many2one column. The many2one is set to null when deleting
the original email. As the information is necessary, it is saved on another
field. The many2one is necessary for indexes purpose as the inverse of
a one2many.
Denis Ledoux [Mon, 11 Aug 2014 13:31:04 +0000 (15:31 +0200)]
[MERGE] forward port of branch saas-4 up to 7ecaab9
Denis Ledoux [Mon, 11 Aug 2014 13:30:37 +0000 (15:30 +0200)]
[MERGE] forward port of branch saas-3 up to 2f4be42
Denis Ledoux [Mon, 11 Aug 2014 13:28:54 +0000 (15:28 +0200)]
[MERGE] forward port of branch 7.0 up to 3632949
qdp-odoo [Mon, 11 Aug 2014 13:23:05 +0000 (15:23 +0200)]
[FIX] account_followup: total in foreign currency displayed in the right currency instead of company currency
Denis Ledoux [Mon, 11 Aug 2014 12:39:50 +0000 (14:39 +0200)]
[FIX] web: image fields re-render on next/previous
By default, on binary images read, the server returns the binary size
This is possible that two images have the exact same size
Therefore we trigger the change in case the image value hasn't changed
So the image is re-rendered correctly
Cedric Snauwaert [Fri, 8 Aug 2014 12:09:44 +0000 (14:09 +0200)]
[FIX] css: add display table rule to oe_popup_form class
To correct the display of the "add contact" wizard in modal (buttons not well placed)
Nicolas Seinlet [Thu, 7 Aug 2014 06:57:48 +0000 (08:57 +0200)]
[ADD] wms: add option to select package type in WMS barcode interface
qdp-odoo [Mon, 11 Aug 2014 11:18:17 +0000 (13:18 +0200)]
[FIX] account, point_of_sale: fixed the feature to put money in or take money out of a cash register. Fix #1416
Olivier Dony [Mon, 11 Aug 2014 10:37:44 +0000 (12:37 +0200)]
[IMP] fields.boolean: simplify symbol_set, cast to bool
In combination with f28be81, this should help speed up
initialization of new boolean columns. psycopg2 handles
bool parameters values just fine inside cr.mogrify()
Denis Ledoux [Mon, 11 Aug 2014 09:50:58 +0000 (11:50 +0200)]
[FIX] account_bank_statement_extensions: inadvertence error during cbe2dbb
Inadvertence error during the convertion to the new API.
line_ids is already a list, no need to set it again in a list.
Olivier Dony [Mon, 11 Aug 2014 09:11:03 +0000 (11:11 +0200)]
[IMP] models._auto_init: avoid writing `False` default for boolean fields
Boolean fields always default to False in 8.0,
even when they do not have explicit default values.
This causes extra queries in the form:
UPDATE <table> SET <bool_field> = false
WHERE <bool_field> IS NULL;
Those are not necessary as the ORM automatically
folds NULL booleans to False, and can be very
expensive on tables with several million rows,
as the whole table may sometimes need to be
rewritten (can take dozens of minutes)
Denis Ledoux [Mon, 11 Aug 2014 09:11:36 +0000 (11:11 +0200)]
[FIX] yaml tests: Set on_change keys not in view logger as debug instead of warning
This is related to commit
d31faceb67fd87acaca00365dcfc28925b08a37f
(This is to avoid the runbot being yellow if on_change methods have extra keys in the returned value, this is not wrong, the web client will simply ignore them).
Jérome Maes [Mon, 11 Aug 2014 09:00:31 +0000 (11:00 +0200)]
[FIX] web_kanban : resequence column and content by drag and dropping
Thibault Delavallée [Fri, 8 Aug 2014 14:59:48 +0000 (16:59 +0200)]
[FIX] web: form view: priority and kanban widgets cleaning, now more like classic form widgets (edit mode: use set_value, view mode: perform a write)
Denis Ledoux [Mon, 11 Aug 2014 08:32:08 +0000 (10:32 +0200)]
[FIX] website: seo, url encode params, + handle connection breaks
Jeremy Kersten [Mon, 4 Aug 2014 10:25:59 +0000 (12:25 +0200)]
[FIX] website: use internal route for SEO suggest keyword, old server is down
watermelonjuice [Sun, 10 Aug 2014 04:47:17 +0000 (00:47 -0400)]
[FIX] website_forum: Minor grammar error
Samus CTO [Fri, 8 Aug 2014 09:46:41 +0000 (11:46 +0200)]
[FIX] Calculate date interval using super user time zone
When you set the date of a cron the July 1st at midnight, if the user
time zone has a positive offset, then the converted UTC date is the
June 30th and adding 1 month will end up on July 30th translating to
July 31th instead of September 1st.
To solve this issue we use the super user time zone for the date
calculation.
Denis Ledoux [Fri, 8 Aug 2014 15:27:29 +0000 (17:27 +0200)]
[MERGE] forward port of branch saas-4 up to 0a1e4a0
Richard Mathot [Fri, 8 Aug 2014 15:04:47 +0000 (17:04 +0200)]
[FIX] survey: regressions introduced in forward-port
fd4fd35e3239c771ab9d692f47f61770ae882965
Denis Ledoux [Fri, 8 Aug 2014 15:06:39 +0000 (17:06 +0200)]
[MERGE] forward port of branch saas-3 up to 81a902a
Thibault Delavallée [Fri, 8 Aug 2014 09:38:57 +0000 (11:38 +0200)]
[FIX] sale_stock: product_id_change_with_wh should not call another method (product_id_change) using super, but self. Otherwise some overrides are lost, leading to issues with event-related products.
Olivier Dony [Fri, 8 Aug 2014 14:56:44 +0000 (16:56 +0200)]
[FIX] website_mail: mail.message.check_access_rule: no check for super-user
Denis Ledoux [Fri, 8 Aug 2014 14:18:35 +0000 (16:18 +0200)]
[MERGE] forward port of branch 7.0 up to 5f696ba
Denis Ledoux [Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)]
[FIX] pos: display cashier name on receipt, not the user
Jeremy Kersten [Fri, 8 Aug 2014 13:51:35 +0000 (15:51 +0200)]
[FIX] wesbite: update google analytics snippet according to google recommandation
Christophe Simonis [Thu, 7 Aug 2014 14:56:40 +0000 (16:56 +0200)]
[FIX] survey: use relative urls for url actions
Raphael Collet [Fri, 8 Aug 2014 12:04:40 +0000 (14:04 +0200)]
[FIX] fields: generalize inverse_field to a list of inverse fields
Some many2one fields happen to have several corresponding one2many fields,
typically with different domains. It is also the case for the field 'res_id' of
mail.message, where each model inheriting from mail.thread defines a one2many
based on that field. The fix ensures that when a relational field is updated,
all its inverse fields are invalidated.
Olivier Dony [Fri, 8 Aug 2014 11:49:10 +0000 (13:49 +0200)]
[IMP] sale_stock: do not verify inventory for non-stockable products (sale.order.line onchange)
Raphael Collet [Fri, 8 Aug 2014 12:34:29 +0000 (14:34 +0200)]
[IMP] api: improve documentation of decorators constrains, depends, onchange
Olivier Dony [Fri, 8 Aug 2014 12:17:37 +0000 (14:17 +0200)]
[FIX] base: tests: move test menu under correct root
Raphael Collet [Fri, 8 Aug 2014 09:04:07 +0000 (11:04 +0200)]
[FIX] models: default_get() used to miss values
The default values are computed by evaluating fields on a new record. The fix
retrieves values from the cache earlier, because in some cases, the evaluation
of a field invalidates a formerly evaluated field.
Raphael Collet [Fri, 8 Aug 2014 08:45:17 +0000 (10:45 +0200)]
[IMP] refactoring: move function topological_sort to openerp.tools
Martin Trigaux [Fri, 8 Aug 2014 10:29:47 +0000 (12:29 +0200)]
[FIX] account_anglo_savon: round prices according to account precision to avoid getting unbalanced move
The standard move_line_get from account.invoice returns prices rounded (price_subtotal field as account precision) while the anglo-saxon module could return dict with non-rounded prices.
With amounts with bigger precision, we could get a difference of a few cents when comparing the debit/credits and then not be able to balance the invoice (opw 597208).
Frederic van der Essen [Fri, 8 Aug 2014 11:48:33 +0000 (13:48 +0200)]
[FIX] point_of_sale: show_popup('name','comment') should display the comment in the popup
Thibault Delavallée [Fri, 8 Aug 2014 07:43:43 +0000 (09:43 +0200)]
[FIX] ir_actions in website: allow to compute website_path even when creating a new server action (avoid crash then)
Denis Ledoux [Fri, 8 Aug 2014 09:40:30 +0000 (11:40 +0200)]
[FIX] yaml tests: extra key in on_change result isn't that bad.
In the return result of an on_change, having keys which are not ine the view is not that bad, it is not an actual problem.
Display warning instead of asserting all the keys are in the views.
qdp-odoo [Fri, 8 Aug 2014 08:58:14 +0000 (10:58 +0200)]
[FIX] stock_landed_costs: fixed several issues related to the computation and the accounting entries creation. Added a yaml test to cover the different split methods
Richard Mathot [Fri, 8 Aug 2014 08:53:39 +0000 (10:53 +0200)]
[FIX] read_group cannot aggregate non-stored field
Christophe Matthieu [Fri, 8 Aug 2014 08:36:44 +0000 (10:36 +0200)]
Merge pull request #1649 from odoo-dev/8.0-fix-website_quote-scrollspy-chm
[FIX] website_quote: Must remove id created by the javascript of scroll spy.
Hardik Ansodariya [Tue, 15 Jul 2014 06:03:49 +0000 (11:33 +0530)]
[FIX] account_analytic_plan: correctly check context
The id of the journal is passed in the context. Avoid trying to browse on jounral_id=False
Fixes #821
watermelonjuice [Thu, 7 Aug 2014 19:47:27 +0000 (15:47 -0400)]
[FIX] Wrong apt url in README.md
Christophe Matthieu [Wed, 6 Aug 2014 14:47:11 +0000 (16:47 +0200)]
[FIX] website_quote: scroll spy is crazy if the user change quote template. Must remove id created by the javascript of scroll spy.
dhr-odoo [Fri, 18 Jul 2014 10:44:28 +0000 (16:14 +0530)]
[FIX] project_timesheet: test used fields added not in dependencies
The fields procure_method and supply_method are not present if we just install project_timesheet which makes the tests fail (opw 610590).
Olivier Dony [Thu, 7 Aug 2014 10:56:13 +0000 (12:56 +0200)]
[IMP] fields.Date[Time]: convert_to_cache: avoid costly parsing when not validating
The extra parsing check is not necessary when we're
not validating inputs, because in that case the
values come from the database and are valid.
The validation is quite expensive due to calls
to strptime() + strftime().
Denis Ledoux [Thu, 7 Aug 2014 16:20:13 +0000 (18:20 +0200)]
[MERGE] forward port of branch 7.0 up to a86dfb8
Martin Trigaux [Thu, 7 Aug 2014 14:51:46 +0000 (16:51 +0200)]
[FIX] mail: avoid duplication followers when merging partners
Martin Trigaux [Thu, 7 Aug 2014 14:50:38 +0000 (16:50 +0200)]
[IMP] crm: clean after partner merge
When trying to merge partners, an sql error may be violated (e.g. unique constraints).
In this case, catch the error and delete the problematic record as it will no longer be relevant with the old partner and left unconsistant data in the database.
Martin Trigaux [Thu, 7 Aug 2014 16:15:37 +0000 (18:15 +0200)]
[FIX] website_sale: avoid displaying inactive products in shops
The domains in the form ('o2m_field', operator, False) do not use the orm but convert the domain to ('id', 'invert operator', [list of ids]). This means that the orm is not used and implicit filter (active=True) or access rights are not checked.
A proper fix in master should be done to use the orm instead of an SQL query.
This patch force a search to be made on product.product and then exclude the products where active=False (opw 607602).
Denis Ledoux [Thu, 7 Aug 2014 16:04:13 +0000 (18:04 +0200)]
[FIX] web_kanban: in non-grouped kanban, on switch to form, display first record
in view_form.js, in do_show method, if the dataset index is not set, the on_button_new method is triggered, opening a new record
In regular kanbans (non-grouped kanban), the dataset index wasn't set, and, therefore, when switching to the view mode, it opened a form for a new record instead of opening the first record of the list, like this is the case for the view list and the grouped kanban
Olivier Dony [Thu, 7 Aug 2014 10:50:13 +0000 (12:50 +0200)]
[IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field
This can give a performance boost on large databases
and should not be a concern in terms of access control
as the inheritance already grants access to the parent
records.
Olivier Dony [Thu, 7 Aug 2014 10:41:33 +0000 (12:41 +0200)]
[IMP] orm.Field: doc for @copy attribute
Olivier Dony [Tue, 5 Aug 2014 15:49:47 +0000 (17:49 +0200)]
[IMP] calendar.event: _compute should be done in batch + consistent @multi attributes
Olivier Dony [Tue, 5 Aug 2014 15:40:22 +0000 (17:40 +0200)]
[FIX] calendar.read: do not re-compute `display_time` for virtual calendar ID if not requested
Olivier Dony [Tue, 5 Aug 2014 15:22:56 +0000 (17:22 +0200)]
[IMP] calendar: simplify/optimize `rrule` computed field
Avoid reading one record at a time, leading to multiple
calls to read() which is special-cased and even slower
than a normal one.
Olivier Dony [Tue, 5 Aug 2014 15:19:36 +0000 (17:19 +0200)]
[IMP] ir.qweb: avoid repeatedly searching the registry for nonexistant widget models
Jeremy Kersten [Thu, 7 Aug 2014 15:38:01 +0000 (17:38 +0200)]
[IMP] email_template: add a lambda function to allow a user to format a date from a template mail into a specific timezone, and/or in a specific format.
Eg: ${format_tz(object.name, object.employee_id.address_id.tz,'%m/%d/%Y %H:%M')}
Somesh Khare [Thu, 7 Aug 2014 14:57:23 +0000 (16:57 +0200)]
[FIX] account_voucher: fix typo in journal_id type
Thibault Delavallée [Thu, 7 Aug 2014 12:43:21 +0000 (14:43 +0200)]
[FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
management to access documents in notification emails, as well as for the
'view quotation' link in portal_sale module.
models: added a get_access_action method: basically, returns the action to
access a document. It uses the get_formview_action by default (form view
of the document). However for some documents we want to directly go to the
website, leading to an act_url action for some documents. This method allows
this behavior.
portal_sale: get_signup_url now uses the mail.action_mail_redirect method
instead of directly redirecting towards a portal menu. This allows to fall
back on a standard behavior.
portal_sale: get_formview_action updated, to match actions tailored for
portal users.
website_quote: get_access_action of sale order updated. If the sale order
has a template defined, the returned action is an act_url (website view
of the quotation), not the form action anymore.
mail: fixed signature + company signature in notification emails. Even without
user signature, the company signature + access link should be correct.
portal: signup url in notification emali was not using the mail redirection
as action. It is now the case.
Thibault Delavallée [Thu, 7 Aug 2014 12:34:58 +0000 (14:34 +0200)]
[FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore.
Thibault Delavallée [Thu, 7 Aug 2014 09:21:41 +0000 (11:21 +0200)]
[FIX] tools: html_sanitize: keep mako tags (<% ... %>), required for example in the portal sale quotation email.
Jérome Maes [Thu, 7 Aug 2014 14:00:19 +0000 (16:00 +0200)]
[FIX] web_graph : display the correct label for Selection fields in view graph
Christophe Simonis [Thu, 7 Aug 2014 13:17:43 +0000 (15:17 +0200)]
[MERGE] pos improvements
manual fix of fp-style merge
Frederic van der Essen [Thu, 7 Aug 2014 12:59:26 +0000 (14:59 +0200)]
Merge branch '8.0' into 8.0-pos-imps2-fva
Denis Ledoux [Thu, 7 Aug 2014 12:50:14 +0000 (14:50 +0200)]
[FIX] report: allow using 0 decimal precision in rml reports
Frederic van der Essen [Thu, 7 Aug 2014 12:05:30 +0000 (14:05 +0200)]
[IMP] pos_restaurant: update some paths due to module name change
Christophe Simonis [Thu, 7 Aug 2014 11:50:27 +0000 (13:50 +0200)]
[FIX] fields.py: correct copy/paste error, use the right attribute
Frederic van der Essen [Thu, 7 Aug 2014 11:27:51 +0000 (13:27 +0200)]
[IMP] restaurant: renamed to pos_restaurant
Christophe Simonis [Thu, 7 Aug 2014 11:04:26 +0000 (13:04 +0200)]
[FIX] fields.py: handle "change_default" and "deprecated" attributes in new fields
Jeremy Kersten [Thu, 7 Aug 2014 11:02:59 +0000 (13:02 +0200)]
[FIX] calendar/crm: Add active_id (if in model partner_id) in defaults values from partner_ids when we creates a new meeting.
Bug was that when you click on meeting button from a res_partner form (Customers in menu), the button overwrites the context to use the active partner as a default in the calendar meeting. By consequence, the context overwritte the default partner who are the creator. Now the context could be removed from action and that is in get_default for partner_ids (from model calendar_event) that we add the creator AND the active_id if from a model res_partner.
Christophe Simonis [Thu, 7 Aug 2014 11:01:03 +0000 (13:01 +0200)]
[FIX] fields.py: fix old field to new field convertion
Denis Ledoux [Thu, 7 Aug 2014 09:54:30 +0000 (11:54 +0200)]
[FIX] payment_paypal: SUPERUSER_ID removed by inadvertence in
1826f6d4eca499754a1f4bbe7179987eab473a55
Denis Ledoux [Thu, 7 Aug 2014 09:41:18 +0000 (11:41 +0200)]
[FIX] payment_paypal: use the validate url according to the acquirer env
fka-odoo [Wed, 23 Jul 2014 11:57:25 +0000 (17:27 +0530)]
[FIX] account: child_of operator in invoice analysis report
When displaying invoice analysis of a company, include the invoices of the members of this company (opw 611084)
Richard Mathot [Thu, 7 Aug 2014 07:50:16 +0000 (09:50 +0200)]
[FIX] website_sale_option: make options work
Thibault Delavallée [Wed, 6 Aug 2014 12:29:48 +0000 (14:29 +0200)]
[FIX] mail: compose wizard: fixed default_get overrides not correctly managing the received field_list + improved custom call to default_get to correctly manage its in and out values.
Thibault Delavallée [Wed, 6 Aug 2014 11:00:06 +0000 (13:00 +0200)]
[FIX] crm: fixed day_open and day_close computation (conditional store + be sure that date_open and date_closed fields are set)
Thibault Delavallée [Wed, 6 Aug 2014 09:36:54 +0000 (11:36 +0200)]
[FIX] project_issue, resource: fixed computation of hours / days to open (assign) or close an issue. Those fields now have a conditional store, because they were not recomputed even when changing date_open and date_closed. Changing the stage now correctly changes the date_closed. Also added some fixes in resource module, the date was not correctly taken into account when computing the number of working hours between two dates.
Denis Ledoux [Wed, 6 Aug 2014 17:00:01 +0000 (19:00 +0200)]
[FIX] account: payment_ids should list payments of same account than the invoice account
Olivier Dony [Wed, 6 Aug 2014 16:48:35 +0000 (18:48 +0200)]
[FIX] orm: _compute_related: ensure prefetch is done in batch
Due to the use of a sudo env, the records
were being added to the sudo cache one by
one instead of all at once. This meant the
prefetching was not able to load all
records at once, leading to prohibitive
times when processing thousands of
records.
Humberto Arocha [Thu, 10 Jul 2014 05:53:51 +0000 (01:23 -0430)]
[FIX] Account: Consolidation Account should not be carried to next fiscalyear
Christophe Simonis [Wed, 6 Aug 2014 15:27:27 +0000 (17:27 +0200)]
[FIX] web: make search by `id` possible.
+ correct tests
Stéphane Bidoul (ACSONE) [Thu, 17 Jul 2014 15:43:02 +0000 (17:43 +0200)]
[FIX] l10n_be: spelling error in financial reports