odoo/odoo.git
9 years ago[MERGE] forward port of branch saas-3 up to 3d80dc2
Christophe Simonis [Thu, 4 Sep 2014 15:51:42 +0000 (17:51 +0200)]
[MERGE] forward port of branch saas-3 up to 3d80dc2

9 years ago[MERGE] forward port of branch 7.0 up to 59b76ee
Christophe Simonis [Thu, 4 Sep 2014 15:46:51 +0000 (17:46 +0200)]
[MERGE] forward port of branch 7.0 up to 59b76ee

9 years ago[FIX] sale: keep page when confirming a sale order
Your Name [Thu, 21 Aug 2014 12:55:49 +0000 (18:25 +0530)]
[FIX] sale: keep page when confirming a sale order

To keep the pager and view changer after confirmation of a sale order, do not reload the view (quotation and sale order view are the same anyway)
Fixes #250

9 years ago[FIX] document: display Attachment(s) menu only on form view
Somesh Khare [Tue, 26 Aug 2014 06:25:23 +0000 (11:55 +0530)]
[FIX] document: display Attachment(s) menu only on form view

The attachment menu (list and add) has no effect in tree view (not supporting multi-items upload and display), the menu should then only be displayed in these view (opw 612534)

9 years ago[MERGE] forward port of branch 7.0 up to 5872c24
Denis Ledoux [Thu, 4 Sep 2014 10:31:14 +0000 (12:31 +0200)]
[MERGE] forward port of branch 7.0 up to 5872c24

9 years ago[FIX] stock: on partial picking, do no open a new window action if not needed
Denis Ledoux [Thu, 4 Sep 2014 10:28:16 +0000 (12:28 +0200)]
[FIX] stock: on partial picking, do no open a new window action if not needed

This is related to rev. dd4d72d

Not opening a new window action allows to keep the current list of stock picking being threated, and to use the next an previous arrow of the forom view of the web client.

9 years ago[IMP] crm_partner_assign: remove inexistant onchange
Martin Trigaux [Thu, 4 Sep 2014 08:17:18 +0000 (10:17 +0200)]
[IMP] crm_partner_assign: remove inexistant onchange

This field is readonly so a onchange is useless anyway (opw 612593)

9 years ago[MERGE] forward port of branch 7.0 up to 7307227
Denis Ledoux [Wed, 3 Sep 2014 16:26:53 +0000 (18:26 +0200)]
[MERGE] forward port of branch 7.0 up to 7307227

9 years ago[FIX] mrp: do not reset back stock moves to confirm
Denis Ledoux [Wed, 3 Sep 2014 16:25:19 +0000 (18:25 +0200)]
[FIX] mrp: do not reset back stock moves to confirm

For instance, setting a BOM Phantom with:
Finished product: stockable, MTO Manufacture
Components: stockable, MTS, Buy. Inventory set to 1000
Stock moves of components are directly set to assigned once the procurement confirmed thanks to JIT
The stock moves should not be set back to confirmed after they have been assigned

9 years ago[FIX] website_forum_doc: forum.documentation.stage readable by all
Denis Ledoux [Wed, 3 Sep 2014 13:56:04 +0000 (15:56 +0200)]
[FIX] website_forum_doc: forum.documentation.stage readable by all

9 years ago[FIX] payment_paypal: avoid json decode error
Denis Ledoux [Wed, 3 Sep 2014 13:19:26 +0000 (15:19 +0200)]
[FIX] payment_paypal: avoid json decode error

with post.pop('custom', '{}'), if the key 'custom' is not there, it will return '{}', but if the key is there, but the value is equivalent to False, the json decode will fail.

9 years ago[IMP] web: extra comments to explain commit 57b4860
Olivier Dony [Tue, 2 Sep 2014 17:42:24 +0000 (19:42 +0200)]
[IMP] web: extra comments to explain commit 57b4860

Added some cryptic comments so we remember a bit
why we have a complicated dance with on_close.
Basically we do not want to reload the
original form view until the last popup is closed,
in the case where several wizard (steps) are opened
one after the other.

9 years ago[FIX] account_payment: lin2bank correct fallback condition
Denis Ledoux [Tue, 2 Sep 2014 16:43:22 +0000 (18:43 +0200)]
[FIX] account_payment: lin2bank correct fallback condition

9 years ago[IMP] Optimize the schedulers of the calendar, fetchmail and base_action_rules modules
Stéphane Wirtel [Thu, 12 Jun 2014 13:08:33 +0000 (15:08 +0200)]
[IMP] Optimize the schedulers of the calendar, fetchmail and base_action_rules modules

Disable the the crons when they'd have nothing to do, re-enable them when a
task is (probably) introduced

9 years ago[FIX] web: chain close action on wizard confirm
Denis Ledoux [Tue, 2 Sep 2014 15:32:37 +0000 (17:32 +0200)]
[FIX] web: chain close action on wizard confirm

If a wizard has several steps, or laucnh a second wizard, the view from where has been loaded the initial wizard is finally reloaded

9 years agoForward port of branch saas-3 up to c3f5289
Martin Trigaux [Tue, 2 Sep 2014 11:59:55 +0000 (13:59 +0200)]
Forward port of branch saas-3 up to c3f5289

9 years ago[IMP] gamification: improve 40e8437 to make only one global request
Martin Trigaux [Tue, 2 Sep 2014 09:25:02 +0000 (11:25 +0200)]
[IMP] gamification: improve 40e8437 to make only one global request

9 years ago[FIX] gamification: performance improvement
Martin Trigaux [Mon, 1 Sep 2014 15:40:47 +0000 (17:40 +0200)]
[FIX] gamification: performance improvement

On a large database, thousands of badges may have been granted. This code used to prefetch all fields of the users and badge users. This was highly inefficient. Replace this code by SQL query.

9 years ago[FIX] web: no_create, if loose focus do not open quick_create
Denis Ledoux [Mon, 1 Sep 2014 14:10:40 +0000 (16:10 +0200)]
[FIX] web: no_create, if loose focus do not open quick_create

9 years ago[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)
Anael Closson [Wed, 18 Jun 2014 12:33:35 +0000 (14:33 +0200)]
[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)

When parsing incoming messages, ignore white-space around
In-Reply-To headers, and extract message-id items inside
the References header using a regex.
This actually serves as a workaround for broken MTAs
mangling References (such as outlook.com nesting past ones
with commas, violating RFC2822).

Closes #516 as a manual rebase.

9 years ago[MERGE] forward port of branch 7.0 up to 18d365c
Denis Ledoux [Fri, 29 Aug 2014 18:54:15 +0000 (20:54 +0200)]
[MERGE] forward port of branch 7.0 up to 18d365c

9 years ago"[REVERT][FIX] point_of_sale: field date of report.pos.order should be a datetime"
Denis Ledoux [Fri, 29 Aug 2014 18:40:31 +0000 (20:40 +0200)]
"[REVERT][FIX] point_of_sale: field date of report.pos.order should be a datetime"

This reverts commit 97d097a2af8c3992d5108bd75b82fa8479d196cc.

As explained in the commit comments (on Github), this patch leads to an infinite loop in 7.0, the filter of the pos orders report using the '=' operator in its domain, which is not available for datetime fields, but is for date fields.

This should not be forward ported to newer release (saas-3)

9 years ago[FIX] stock: display product variant name in the slip
Denis Ledoux [Fri, 29 Aug 2014 14:29:17 +0000 (16:29 +0200)]
[FIX] stock: display product variant name in the slip

9 years ago[FIX] l10n_ma: proper chart of account name
Denis Ledoux [Fri, 29 Aug 2014 13:46:36 +0000 (15:46 +0200)]
[FIX] l10n_ma: proper chart of account name

9 years ago[FIX] website_hr: give public group the right to read resource.resource records
Christophe Simonis [Fri, 29 Aug 2014 09:12:25 +0000 (11:12 +0200)]
[FIX] website_hr: give public group the right to read resource.resource records

9 years ago[MERGE] forward port of branch saas-3 up to c914893
Christophe Simonis [Thu, 28 Aug 2014 17:25:08 +0000 (19:25 +0200)]
[MERGE] forward port of branch saas-3 up to c914893

9 years ago[MERGE] forward port of branch 7.0 up to 15ee4d8
Christophe Simonis [Thu, 28 Aug 2014 17:07:11 +0000 (19:07 +0200)]
[MERGE] forward port of branch 7.0 up to 15ee4d8

9 years ago[FIX] email_template: remove group restriction on field mail.compose.message.template_id
Christophe Simonis [Thu, 28 Aug 2014 17:04:14 +0000 (19:04 +0200)]
[FIX] email_template: remove group restriction on field mail.compose.message.template_id

This was added as a security check, but access to this field is need by the wizard itself.
As non employee users can't read/create email templates, this will not be problematic

9 years ago[FIX] mail: read ir.config_parameter with SUPERUSER_ID
Christophe Simonis [Thu, 28 Aug 2014 16:32:11 +0000 (18:32 +0200)]
[FIX] mail: read ir.config_parameter with SUPERUSER_ID

9 years ago[MERGE] forward port of branch 7.0 up to f65c913
Christophe Simonis [Thu, 28 Aug 2014 16:15:10 +0000 (18:15 +0200)]
[MERGE] forward port of branch 7.0 up to f65c913

9 years ago[FIX] base: security: employee must have access to res.groups
Christophe Simonis [Thu, 28 Aug 2014 16:14:08 +0000 (18:14 +0200)]
[FIX] base: security: employee must have access to res.groups

9 years ago[FIX] account: use method has_group() instead of browsing the group directly.
Christophe Simonis [Thu, 28 Aug 2014 15:21:54 +0000 (17:21 +0200)]
[FIX] account: use method has_group() instead of browsing the group directly.

9 years ago[FIX] hr_holidays: remove now invalid xml attribute "model" (introduced by last forwa...
Christophe Simonis [Thu, 28 Aug 2014 15:17:10 +0000 (17:17 +0200)]
[FIX] hr_holidays: remove now invalid xml attribute "model" (introduced by last forward-port)

9 years ago[MERGE] forward port of branch saas-3 up to ada9724
Christophe Simonis [Thu, 28 Aug 2014 14:21:27 +0000 (16:21 +0200)]
[MERGE] forward port of branch saas-3 up to ada9724

9 years ago[MERGE] forward port of branch 7.0 up to 3509e15
Christophe Simonis [Thu, 28 Aug 2014 14:12:55 +0000 (16:12 +0200)]
[MERGE] forward port of branch 7.0 up to 3509e15

9 years ago[MERGE] last forward port of branch saas-4 up to a65a95f
Christophe Simonis [Thu, 28 Aug 2014 13:22:29 +0000 (15:22 +0200)]
[MERGE] last forward port of branch saas-4 up to a65a95f

9 years ago[FIX] website_blog: controllers blog expects a date, not a datetime
Denis Ledoux [Wed, 27 Aug 2014 16:13:53 +0000 (18:13 +0200)]
[FIX] website_blog: controllers blog expects a date, not a datetime

9 years ago[FIX] stock: missing quantity parameter from get_price_from_picking
Max Mumford [Wed, 27 Aug 2014 15:13:14 +0000 (17:13 +0200)]
[FIX] stock: missing quantity parameter from get_price_from_picking

9 years ago[IMP] report_sxw: missing parameter without_company for display_address
Leonardo Donelli [Fri, 27 Jun 2014 15:30:16 +0000 (17:30 +0200)]
[IMP] report_sxw: missing parameter without_company for display_address

Fixes #811

9 years ago[FIX] account: avoid date and cache issues
Ravi Gohil [Wed, 6 Aug 2014 22:37:09 +0000 (04:07 +0530)]
[FIX] account: avoid date and cache issues

Explicitely refresh invoice browse_record(...) in order to have correct 'date' in account.move.
Use context_today() date instead of time.strftime() for date_invoice. (opw 611210)

9 years ago[IMP] stock: filter for procurement.type view
Antoine Huvelle [Wed, 27 Aug 2014 12:25:32 +0000 (14:25 +0200)]
[IMP] stock: filter for procurement.type view

Shouldn't allow to select view in the location field. Otherwise you'll end having pickings composed of stock moves using view stock locations.

9 years ago[FIX] sale: on create, set taxes if product_id_change called
Nicolas Seinlet [Wed, 27 Aug 2014 09:48:40 +0000 (11:48 +0200)]
[FIX] sale: on create, set taxes if product_id_change called

9 years ago[FIX] resource: security, resource not readable by externals
Denis Ledoux [Tue, 26 Aug 2014 16:10:14 +0000 (18:10 +0200)]
[FIX] resource: security, resource not readable by externals

9 years ago[FIX] email_template: security, email_template no rights for externals
Denis Ledoux [Tue, 26 Aug 2014 15:32:04 +0000 (17:32 +0200)]
[FIX] email_template: security, email_template no rights for externals

9 years ago[FIX] security: disallow read on ir.sequence for externals
Denis Ledoux [Tue, 26 Aug 2014 14:17:24 +0000 (16:17 +0200)]
[FIX] security: disallow read on ir.sequence for externals

9 years ago[FIX] security: remove read access on company critical fields
Denis Ledoux [Tue, 26 Aug 2014 13:35:47 +0000 (15:35 +0200)]
[FIX] security: remove read access on company critical fields

9 years ago[FIX] security: res.groups should be readable by admins only
Denis Ledoux [Tue, 26 Aug 2014 11:31:41 +0000 (13:31 +0200)]
[FIX] security: res.groups should be readable by admins only

9 years ago[FIX] security: externals should be able to read attachements
Denis Ledoux [Tue, 26 Aug 2014 10:55:48 +0000 (12:55 +0200)]
[FIX] security: externals should be able to read attachements

without having the rights to read ir.config_parameter

9 years ago[FIX] security: ir.config_parameter should not be readable by externals
Denis Ledoux [Tue, 26 Aug 2014 10:50:04 +0000 (12:50 +0200)]
[FIX] security: ir.config_parameter should not be readable by externals

9 years ago[FIX] web: fix blur problem in FieldMany2One widget when clicking on autocomplete...
Cedric Snauwaert [Tue, 26 Aug 2014 09:26:28 +0000 (11:26 +0200)]
[FIX] web: fix blur problem in FieldMany2One widget when clicking on autocomplete option inside a wizard

9 years agoRevert "[FIX] web: grid headers should be aligned properly"
Denis Ledoux [Tue, 26 Aug 2014 08:56:44 +0000 (10:56 +0200)]
Revert "[FIX] web: grid headers should be aligned properly"

This reverts commit 4c335588a1f5d6d1f03e17aa20e37ffe4197447c.
It leads to table widths inconsistencies: The tables take more width then before, and overflow much more than before. This can be seen in "Accounting" > "Journal Entries", in the list of the form view

9 years ago[FIX] hw_escpos: Replaced "tab" by space
TheCloneMaster [Mon, 25 Aug 2014 07:16:45 +0000 (01:16 -0600)]
[FIX] hw_escpos:  Replaced "tab" by space

call to self.open() had a tab instead of spaces

9 years ago[FIX] sale_order_line: use order date to compute currency instead of current date
Daniel Dico [Mon, 25 Aug 2014 15:16:35 +0000 (11:16 -0400)]
[FIX] sale_order_line: use order date to compute currency instead of current date

9 years ago[FIX] product_visible_discount: use order date to compute currency instead of current...
Daniel Dico [Mon, 25 Aug 2014 15:19:43 +0000 (11:19 -0400)]
[FIX] product_visible_discount: use order date to compute currency instead of current date

9 years ago[FIX] website_sale: pager in product list
Martin Trigaux [Mon, 25 Aug 2014 14:19:29 +0000 (16:19 +0200)]
[FIX] website_sale: pager in product list

Keep the reference to category and search view in pager.
Update the search template to include form and keep correct reference to the category (as a slug and not a parameter).
Fixes #688

9 years ago[FIX] hr_holidays: employees cannot approve their holidays
Denis Ledoux [Mon, 25 Aug 2014 12:51:03 +0000 (14:51 +0200)]
[FIX] hr_holidays: employees cannot approve their holidays

Nor modify once approved

It wasn't possible for employees to approve their holidays themself, thanks to the GUI, but this was possible through xmlrpc calls, or when altering the html directly in the browser.
Besides, this was also possible to edit the holiday through the same trick once the holiday validated

9 years ago[FIX] board: Do not offer to create dashboard when there is no action
Ravish Murari [Thu, 7 Aug 2014 12:34:42 +0000 (18:04 +0530)]
[FIX] board: Do not offer to create dashboard when there is no action

In case we have no defined action (e.g. redirection by python code), adding a dashboard should not be possible as the rendering based on the action.
This patch hides the 'Add to Dashboard' button in search view (opw 611288)

9 years ago[IMP] stock: stock incoterm converted to uppercase
Fekete Mihai [Fri, 22 Aug 2014 13:34:11 +0000 (16:34 +0300)]
[IMP] stock: stock incoterm converted to uppercase

9 years ago[FIX] point_of_sale: generate bank statement with commerical partner
Martin Trigaux [Fri, 22 Aug 2014 13:29:23 +0000 (15:29 +0200)]
[FIX] point_of_sale: generate bank statement with commerical partner

When a pos session is closed & confirmed, the account.move were generated with the commercial partner except for the bank statement which prevented automatic reconciliation.
This patch uses the commercial partner also for bank statement.
Fixes #1558, #1764

9 years ago[FIX] fetchmail: do not delete a failing email when using POP
Martin Trigaux [Fri, 22 Aug 2014 10:49:39 +0000 (12:49 +0200)]
[FIX] fetchmail: do not delete a failing email when using POP

In case of IMAP, the email is simply set as read but in case of POP, the email is deleted. To avoid loosing data (e.g. misconfiguration of server), the email is kept for POP.
Bug lp:1296724, opw 605667

9 years ago[FIX] web: grid headers should be aligned properly
Bhavik Bagdiya [Tue, 19 Aug 2014 05:07:54 +0000 (10:37 +0530)]
[FIX] web: grid headers should be aligned properly

9 years agoForward port of branch saas-4 up to rev 15a3a2a
Martin Trigaux [Thu, 21 Aug 2014 16:17:35 +0000 (18:17 +0200)]
Forward port of branch saas-4 up to rev 15a3a2a

9 years agoForward port of branch saas-3 up to 7bcefaf
Martin Trigaux [Thu, 21 Aug 2014 16:14:22 +0000 (18:14 +0200)]
Forward port of branch saas-3 up to 7bcefaf

9 years agoForward port of branch 7.0 up to 0ab88f5
Martin Trigaux [Thu, 21 Aug 2014 15:57:57 +0000 (17:57 +0200)]
Forward port of branch 7.0 up to 0ab88f5

9 years ago[FIX] ir_model: invalidate cache when adding new fields
Martin Trigaux [Thu, 21 Aug 2014 13:27:31 +0000 (15:27 +0200)]
[FIX] ir_model: invalidate cache when adding new fields

When a new ir.model.field is created, add the new field in the fields_by_model (cache of custom fields). This is required as the __init__ method would not retrieve the new field if fields_by_model is already set.
Otherwise, the _columns would not contain the new fields and we could not access it without restarting the server (e.g. the installation of a module adds ir.model.fields and use it in the a view.

9 years ago[FIX] note: small bugs
Desai Binjal [Wed, 6 Aug 2014 12:16:46 +0000 (17:46 +0530)]
[FIX] note: small bugs

9 years ago[FIX] base: wrong model change check
Martin Trigaux [Thu, 21 Aug 2014 12:30:10 +0000 (14:30 +0200)]
[FIX] base: wrong model change check

Comparing an id and a browse record will always fail so the exception would have always been raised when changing a model (e.g. updating a module with custom fields).

9 years ago[IMP] account_budget: added date filter in print budget report
fka-odoo [Wed, 6 Aug 2014 12:12:30 +0000 (17:42 +0530)]
[IMP] account_budget: added date filter in print budget report

Fixes #1743, opw 611307

9 years ago[FIX] point_of_sale: report, product_id of line is product_product
Denis Ledoux [Thu, 21 Aug 2014 09:17:29 +0000 (11:17 +0200)]
[FIX] point_of_sale: report, product_id of line is product_product

product_id column of pos_order_line is a product_product
the left join of l.product_id was done on product_template, instead of product_product

It worked as long as the ids product_product were the same as product_template. Meaning that, if you used variants, this report view was screwed.

9 years ago[FIX] base: correct view branding tests after c013210
Christophe Simonis [Wed, 20 Aug 2014 16:23:12 +0000 (18:23 +0200)]
[FIX] base: correct view branding tests after c013210

9 years ago[MERGE] forward port of branch saas-4 up to ddef2dd
Christophe Simonis [Wed, 20 Aug 2014 15:57:22 +0000 (17:57 +0200)]
[MERGE] forward port of branch saas-4 up to ddef2dd

9 years ago[MERGE] forward port of branch saas-3 up to 8f13e83
Christophe Simonis [Wed, 20 Aug 2014 15:51:20 +0000 (17:51 +0200)]
[MERGE] forward port of branch saas-3 up to 8f13e83

9 years ago[MERGE] forward port of branch 7.0 up to d0a0b7d
Christophe Simonis [Wed, 20 Aug 2014 15:45:05 +0000 (17:45 +0200)]
[MERGE] forward port of branch 7.0 up to d0a0b7d

9 years ago[FIX] web: correct /web/proxy/load to set correct base_url
Christophe Simonis [Wed, 20 Aug 2014 15:33:27 +0000 (17:33 +0200)]
[FIX] web: correct /web/proxy/load to set correct base_url

9 years ago[FIX] website translation bug
Fabien Meghazi [Wed, 20 Aug 2014 15:16:29 +0000 (17:16 +0200)]
[FIX] website translation bug

Sometimes a node can't be translated using the website Translate
mode. The translation is added to the Application term list but
the id of the view is not correct.

This happen when a translatable node is a children of a inherited
node whose branding could not be kept. data-oe-source-id was left
over because it was not registered in MOVABLE_BRANDING

9 years ago[FIX] website_forum: portal user are allowed to delete forum post
Denis Ledoux [Wed, 20 Aug 2014 14:12:25 +0000 (16:12 +0200)]
[FIX] website_forum: portal user are allowed to delete forum post

If a portal user has engouh karma, this is possible for him, at least graphically, to delete forum posts, even if is not the author of it.
So, he should be allowed to delete forum posts in the ACL

9 years ago[FIX] purchase: skip move if not linked to a purchase order
Guewen Baconnier [Wed, 9 Jul 2014 11:56:24 +0000 (13:56 +0200)]
[FIX] purchase: skip move if not linked to a purchase order

When this situation happens. the 'cost' is None and the web interface cannot handle this value, provoking a JS error. Thus, prefer to fallback on the standard way to get the cost: based on the current standard price of the product.
Fixes #1032

9 years ago[IMP] product: filter and group by category_id on product.template
Hardik Ansodariya [Tue, 12 Aug 2014 10:19:15 +0000 (15:49 +0530)]
[IMP] product: filter and group by category_id on product.template

Was removed (for unknown reason) during refactoring of product and template (opw 611699)

9 years ago[FIX] base: python 2.6 incompatibility for dictionary comprehension
Martin Ambroz [Wed, 20 Aug 2014 04:42:19 +0000 (08:42 +0400)]
[FIX] base: python 2.6 incompatibility for dictionary comprehension

9 years ago[IMP] auth_oauth: set default 'zocial' css_class
Sandy Carter [Mon, 11 Aug 2014 17:21:29 +0000 (13:21 -0400)]
[IMP] auth_oauth: set default 'zocial' css_class

The buttons for new providers needs at least the zocial css class to be seen as button. As the field css_class is not in the default form view, add it by default.

9 years ago[FIX] account_anglo_saxon: variable 'standard_price' referenced before assignment
Daniel Dico [Sat, 16 Aug 2014 04:59:27 +0000 (00:59 -0400)]
[FIX] account_anglo_saxon: variable 'standard_price' referenced before assignment

Due to forward-port, the variable standard_price was reintroduced instead of valuation_price_unit
Move the change of currency after the fifo/lifo computation.
Fixes #1801

9 years ago[FIX] web: ignored readonly attribute on image widget
Sébastien BEAU [Sat, 16 Aug 2014 23:44:12 +0000 (01:44 +0200)]
[FIX] web: ignored readonly attribute on image widget

9 years ago[FIX] web: rendering issue in mail composer on Firefox
fka-odoo [Wed, 13 Aug 2014 07:13:34 +0000 (12:43 +0530)]
[FIX] web: rendering issue in mail composer on Firefox

The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700).
Replaced by auto, the default value adviced by CLEditor.

9 years ago[IMP] product: specify a view for 'Variant Values' action
kevin wang [Tue, 19 Aug 2014 02:54:01 +0000 (10:54 +0800)]
[IMP] product: specify a view for 'Variant Values' action

9 years ago[FIX] account_voucher: wrong type in context
David Arnold [Tue, 19 Aug 2014 06:43:47 +0000 (01:43 -0500)]
[FIX] account_voucher: wrong type in context

The type 'general' no longer exists on a account.voucher. As in general context, removed the default value on this menu.
Fixes #1261, it produces a traceback in 8.0 where the selection fields are less fault-tolerant.

9 years ago[FIX] sale: define sale_note field before using it as a default value for sale.order
Denis Ledoux [Tue, 19 Aug 2014 07:48:05 +0000 (09:48 +0200)]
[FIX] sale: define sale_note field before using it as a default value for sale.order

When uninstalling/installing sale module, this can be problematic

9 years ago[IMP] account_voucher: make the field tax_amount always readonly
Martin Trigaux [Mon, 18 Aug 2014 15:59:17 +0000 (17:59 +0200)]
[IMP] account_voucher: make the field tax_amount always readonly

The field tax_amount is fieled with onchanges and the compute_tax method. Setting a different value than the one computed by the system may lead to unbalanced move (which is obviously wrong).
In the future, handeling these operations by setting the correct value to the tax accounts would be better.

9 years ago[FIX] account_voucher: avoid error if no partner
Martin Trigaux [Mon, 18 Aug 2014 15:50:32 +0000 (17:50 +0200)]
[FIX] account_voucher: avoid error if no partner

The field partner_id is not required on an account.voucher but the validation was failing if none was set (opw 611663).
This patch makes a fallback on the account of the voucher if neither a partner nor a writeoff account is specified.

9 years ago[FIX] account_analytic_analysis: quantity overdue on quantity exceeded, not reached
Denis Ledoux [Mon, 18 Aug 2014 12:05:41 +0000 (14:05 +0200)]
[FIX] account_analytic_analysis: quantity overdue on quantity exceeded, not reached

9 years ago[FIX] website_twitter: IE does not accept twitter date format
Denis Ledoux [Mon, 18 Aug 2014 11:13:56 +0000 (13:13 +0200)]
[FIX] website_twitter: IE does not accept twitter date format

Datetime like Tue Jul 13 23:18:36 +0000 2010 is not accepted by IE and return "Invalid date".
Therefore, We parse the date to a format known by IE (and other browsers)
Trick took from http://stackoverflow.com/questions/3243546/problem-with-javascript-date-function-in-ie-7-returns-nan

9 years ago[FIX] website_customer: the extra / for url pager is not need in saas-4
JKE-be [Mon, 18 Aug 2014 09:39:33 +0000 (11:39 +0200)]
[FIX] website_customer: the extra / for url pager is not need in saas-4

9 years ago[FIX] product: make sure unlinked product still exists
Thomas Groutars [Thu, 14 Aug 2014 14:47:01 +0000 (16:47 +0200)]
[FIX] product: make sure unlinked product still exists

When uninstalling/updating a module, we may execute unlink method on product.template before product.product. In such cases, the product is already removed after removeing the template (_inherits) and the chained unlink of the product would fail (traceback when browsing).

9 years ago[FIX] point_of_sale: field date of report.pos.order should be a datetime
Denis Ledoux [Thu, 14 Aug 2014 16:01:37 +0000 (18:01 +0200)]
[FIX] point_of_sale: field date of report.pos.order should be a datetime

The date_order field of the pos.order is a datetime, not a date
As, in report.pos.order, the date field is related to date_order of the pos.order

We usually do not commit fixes altering the model fields structure in 7.0, but this one is retro-compatible, as the database structure won't change

9 years ago[FIX] web: do not focus if the focus_field is not a field
Denis Ledoux [Thu, 14 Aug 2014 15:33:59 +0000 (17:33 +0200)]
[FIX] web: do not focus if the focus_field is not a field

Sometimes, focus_field could be a button, and in such cases, we should not focus on it

opw-612045

9 years ago[FIX] stock: inventory lines with no production lot: compare with correct stock level
Rifakat [Thu, 7 Aug 2014 14:56:27 +0000 (16:56 +0200)]
[FIX] stock: inventory lines with no production lot: compare with correct stock level

Inventory lines without production lot number should
be compared with the stock level of products without
a production lot. Otherwise the final result of a
validated inventory is wrong as soon as there are
lines with and without production lot for the same
product.

Adds corresponding regression test.

Fixes https://bugs.launchpad.net/openobject-addons/+bug/1008099
Manual rebase of #1658, courtesy of Numerigraphe

9 years ago[FIX] account: reconcile: no useless revalidation
Olivier Dony [Thu, 14 Aug 2014 13:46:37 +0000 (15:46 +0200)]
[FIX] account: reconcile: no useless revalidation

Avoid revalidating the complete account moves
that contain the lines being reconciled.
The reconciliation does not change the validity
of those moves anyway.
This represents a very important speed up of
reconciliation when moves with several hundred
lines are involved.

9 years ago[FIX] Fixed the issue of calendar view reload events inconsistency, when the slow...
Mohammed Shekha [Wed, 13 Aug 2014 09:25:03 +0000 (14:55 +0530)]
[FIX] Fixed the issue of calendar view reload events inconsistency, when the slow create popup creates event through any form button which is kind of object, action or workflow at that time events are reloaded but still button action is not called like workflow is not triggered and hence state of the event is still not changed and due to domain newly created event is filtered, note that events are refetched when create_completed is triggered and create_completed is triggered right after creation of record, but there are case where some form button changes state of the record and it requires to refetched for example we have scenario in mrp order planning where Confirm Production creates event but before workflow is triggered and state of the event is changed, events are reloaded and newly created event will not returned because of domain.

9 years ago[MERGE] Forward-port saas-4 up to 9a84d55
Olivier Dony [Thu, 14 Aug 2014 12:48:55 +0000 (14:48 +0200)]
[MERGE] Forward-port saas-4 up to 9a84d55

9 years ago[MERGE] Forward-port saas-3 up to 9b55532
Olivier Dony [Thu, 14 Aug 2014 12:37:42 +0000 (14:37 +0200)]
[MERGE] Forward-port saas-3 up to 9b55532

9 years ago[FIX] export: in saas-3, req becomes request.
Denis Ledoux [Thu, 14 Aug 2014 10:49:32 +0000 (12:49 +0200)]
[FIX] export: in saas-3, req becomes request.

Error during forward port b9275da8a52255d0fc3f914de9d406612e7dde50