Christophe Simonis [Mon, 15 Sep 2014 11:52:44 +0000 (13:52 +0200)]
[MERGE] forward port of branch saas-5 up to 7eab880
Christophe Matthieu [Mon, 15 Sep 2014 11:24:24 +0000 (13:24 +0200)]
Merge pull request #2348 from odoo-dev/8.0-fix-website_sale-breadcrumb-chm
[FIX] website_sale: The product breadcrumbs in shop not working.
Denis Ledoux [Mon, 15 Sep 2014 10:25:32 +0000 (12:25 +0200)]
[FIX] account: missing context assignation in self
Christophe Simonis [Mon, 15 Sep 2014 10:09:35 +0000 (12:09 +0200)]
[FIX] orm: correct read_group() on models with `_group_by_full` (introduced by previous forward-port)
also add tests of `_group_by_full` functionality
Fabien Meghazi [Tue, 15 Jul 2014 13:26:18 +0000 (15:26 +0200)]
[IMP] Improve stock's barcode start page
remove module_boot() usage
Géry Debongnie [Tue, 9 Sep 2014 10:26:16 +0000 (12:26 +0200)]
[FIX] web: fixes issues with custom filters and search view
The problem was that when the user manipulates the graph view (in pivot
table mode), the graph view resetted the group by facet in the search
view. It was not a problem unless a custom filter with a groupby was
already there, in which case, the group bys were duplicated.
The search view is now smarter, it only resets the additional groupbys
(and col_groupbys). Also, to prevent usability problems, the graph
view disable the '+/-' groupbys added by a custom filters.
Note that this fix is only temporary: a revamp of custom filters, facets,
search view is coming in the next months. (at least, that's the idea). Right
now, too much 'search logic' is in the graph view.
Another note: this fix is somewhat fragile: it makes some assumptions
about the search query (mainly that the custom filter is the first facet,
also, that no other filters add groupbys/col_groupbys)
Christophe Simonis [Sat, 13 Sep 2014 15:00:51 +0000 (17:00 +0200)]
[FIX] website_event_sale: remove invalid code chunk introduced during previous forward-port (
56f2b7ae0f6)
Christophe Simonis [Fri, 12 Sep 2014 16:53:48 +0000 (18:53 +0200)]
[MERGE] forward port of branch saas-3 up to fdc6271
Daniel Reis [Wed, 13 Aug 2014 08:57:53 +0000 (09:57 +0100)]
[IMP] modules: add support for loading module description from README.{md,rst,txt}
Showcase the feature by moving auth_ldap's description to README.rst
(Manual rebase of PR #1759)
Christophe Simonis [Fri, 12 Sep 2014 15:28:55 +0000 (17:28 +0200)]
[MERGE] forward port of branch 7.0 up to 9b1cdea
Denis Ledoux [Fri, 12 Sep 2014 14:25:48 +0000 (16:25 +0200)]
[FIX] mrp_repair: invoice the actual invoice partner id
Fekete Mihai [Fri, 12 Sep 2014 14:04:22 +0000 (16:04 +0200)]
[FIX] l10n_ro: backport of fix done in res_partner.py from aa76885
PR #720
Jeremy Kersten [Fri, 12 Sep 2014 13:58:59 +0000 (15:58 +0200)]
[IMP] website_crm: keep the new id from the created lead to allow another function which override this one to get the new lead.
Josse Colpaert [Fri, 12 Sep 2014 12:24:29 +0000 (14:24 +0200)]
Merge pull request #2292 from odoo-dev/8.0-wmsstaging8-jco
8.0 wmsstaging8 jco
Josse Colpaert [Thu, 11 Sep 2014 14:02:44 +0000 (16:02 +0200)]
[IMP] Solve landed costs bug + invoice_state in account_anglo_saxon.yml
Josse Colpaert [Wed, 10 Sep 2014 17:11:21 +0000 (19:11 +0200)]
[FIX] Bom qty
Josse Colpaert [Tue, 9 Sep 2014 17:06:26 +0000 (19:06 +0200)]
[IMP] Implement comments on pull request
Josse Colpaert [Mon, 8 Sep 2014 16:00:50 +0000 (18:00 +0200)]
[WIP] Improve views for qty available + forecast qty in product and product template tree views
Josse Colpaert [Mon, 8 Sep 2014 13:20:01 +0000 (15:20 +0200)]
[IMP] Invoice_state on move and search custom picking type
Josse Colpaert [Fri, 5 Sep 2014 12:50:41 +0000 (14:50 +0200)]
[IMP] Put wkf_action_cancel back, so the method does not call itself recursively (issue 2079)
Josse Colpaert [Fri, 5 Sep 2014 10:16:09 +0000 (12:16 +0200)]
[FIX] When purchase, do not overwrite price
Josse Colpaert [Thu, 4 Sep 2014 15:54:44 +0000 (17:54 +0200)]
[IMP] Patch for boms that explode in boms to have the correct quantities courtesy of chm
Josse Colpaert [Thu, 4 Sep 2014 12:54:39 +0000 (14:54 +0200)]
[WIP] Pricelist of purchase is not in stock only and remove product_manufacturer module in view + manufacturer
Josse Colpaert [Wed, 3 Sep 2014 17:15:10 +0000 (19:15 +0200)]
[IMP] Inter-company pricing: put price on move when only partner and not connected to sale or purchase + invoice_state inverse function
Josse Colpaert [Wed, 3 Sep 2014 13:24:49 +0000 (15:24 +0200)]
[IMP] Make sure property_ids on sale order line are visible and able to work
Josse Colpaert [Mon, 1 Sep 2014 13:39:32 +0000 (15:39 +0200)]
[IMP] Old hack where uom_id had to be empty in on_change
[IMP] Add purchase order origin on picking
[WIP] Picking type on move for location on routing
[IMP] Provide extra function for custom buttons on picking
[IMP] Action assign optim
[IMP] Push apply should take invoice_state into account. Propagation of cancel of stock moves should depend on procurement rule
Simon Lejeune [Fri, 12 Sep 2014 10:29:29 +0000 (12:29 +0200)]
[FIX] report: /report/download route should not be website enabled
There's a little magic inside the website enabled route modifying the
context's lang, thus breaking the logic to print the report in the
current user's lang. The direct route to display the report should
stay in website_enabled mode, as it allows to switch lang, use the
website translator and so on.
Denis Ledoux [Fri, 12 Sep 2014 07:57:56 +0000 (09:57 +0200)]
[FIX]stock_account: missing default value for Inventory Valuation
Denis Ledoux [Thu, 11 Sep 2014 15:54:58 +0000 (17:54 +0200)]
[FIX] product: can be sold as default filter for templates
fka-odoo [Wed, 2 Jul 2014 08:38:41 +0000 (14:08 +0530)]
[FIX] web: sort with undefined value
In this awesome programming language called javascript, undefined is neither bigger nor smaller than a string. Previous code was then considering undefined values equal to any string.
This fix allows to sort in a column of a o2m field and group the undefined values together. opw 607704
Denis Ledoux [Thu, 11 Sep 2014 15:20:27 +0000 (17:20 +0200)]
[FIX] stock: return picking, pass serial number value when returning
Dharti Ratani [Thu, 11 Sep 2014 15:01:03 +0000 (17:01 +0200)]
[FIX] survey: access rights error when editing
The wizard 'Edit Survey' > 'Add Question' was trowing an access rights error as the id was passed as a string instead of a real id. opw 607854
Denis Ledoux [Thu, 11 Sep 2014 15:00:45 +0000 (17:00 +0200)]
[FIX] web_graph: pivot_table, use _.isEmpty to check if value_lookup is False
Denis Ledoux [Thu, 11 Sep 2014 13:47:48 +0000 (15:47 +0200)]
[FIX] website: customize menu, only a with data-view-id should actually call do_customize
Simon Lejeune [Thu, 11 Sep 2014 12:08:03 +0000 (14:08 +0200)]
[FIX] website_forum: moved editor-related js files into the editor asset
Denis Ledoux [Thu, 11 Sep 2014 11:57:28 +0000 (13:57 +0200)]
[FIX] website: do not bind do_customize to menu without data-action
Olivier Dony [Thu, 11 Sep 2014 11:54:16 +0000 (13:54 +0200)]
[FIX] report_webkit: re-enable test, disabled during new API developement
Requires an extra use_global_header to be added on
the report record, to mimic the super.create()
behavior, as super.create() is not called.
Martin Trigaux [Wed, 10 Sep 2014 16:06:38 +0000 (18:06 +0200)]
[FIX] hr_expense: tax amount computation
The tax_amount field should contain the basic amount (without tax) for base tax code. (opw 613470)
Martin Trigaux [Thu, 11 Sep 2014 09:25:36 +0000 (11:25 +0200)]
[FIX] stock: multicompany warehouse creation
When creating a new warehouse, the linked locations should have the same company as the warehouse.
The company_id field is required on warehouse (not necessary in vals as could be added by default values) while it is not for stock.location (meaning global location, also filled with default value).
Christophe Simonis [Thu, 11 Sep 2014 11:18:22 +0000 (13:18 +0200)]
[IMP] website_blog: more generic xpath expression when inheriting view. ease migration.
Ronak Baxi [Wed, 27 Aug 2014 09:55:20 +0000 (15:25 +0530)]
[FIX] web: scroll should move top on clicking menu on top bar
Backported from
97d99d1974c965506ed9005d4854fcc5ffee0590
Raphael Collet [Thu, 11 Sep 2014 08:31:10 +0000 (10:31 +0200)]
[FIX] fields: in computed fields, handle AccessError and MissingError
When computing a field on a recordset, a subset of the records may be missing
or forbidden by access rules. In that case, evaluate the compute method record
by record, and mark failed records as such in cache.
Simon Lejeune [Thu, 11 Sep 2014 08:55:59 +0000 (10:55 +0200)]
[FIX] website_forum: header template: double display of questions
The <t t-raw='0'/> is already defined lower in the view (line 101)
Simon Lejeune [Wed, 10 Sep 2014 12:59:00 +0000 (14:59 +0200)]
[FIX] web: about odoo: correct bootstrap structure inside the modal
Bootstrap's container class has a fixed width, using it in a modal
with the previous commit allowing an horizontal scrollbar makes the
layout goes crazy. Use container-fluid instead and cleaned some css.
Simon Lejeune [Wed, 10 Sep 2014 10:20:16 +0000 (12:20 +0200)]
[FIX] web: modals: overflow-x on modal-body to prevent large content to be displayed outside
Raphael Collet [Wed, 10 Sep 2014 12:55:28 +0000 (14:55 +0200)]
[FIX] models: in onchange(), do not send a field value if it has not changed
The method onchange() executes onchange methods in cascade. Suppose onchange()
is called and a field F=1 in the form. If an onchange method set F=2, that
value is put in the result variable. If another onchange method set it back to
F=1, the binding F=2 must be removed from the result variable.
Fixes #2309
Denis Ledoux [Thu, 11 Sep 2014 07:58:38 +0000 (09:58 +0200)]
[FIX] web: *.openerp.com to *.odoo.com
Martin Trigaux [Thu, 11 Sep 2014 07:32:59 +0000 (09:32 +0200)]
[IMP] point_of_sale: field company_id on pos.config view
Move invisible field on bottom to avoid blank space in view if display journal, group or sequence field
Jeremy Kersten [Wed, 10 Sep 2014 17:50:22 +0000 (19:50 +0200)]
Jeremy Kersten [Wed, 10 Sep 2014 16:20:54 +0000 (18:20 +0200)]
[FIX] website_blog: change group restriction to load the JS editor
Jeremy Kersten [Wed, 10 Sep 2014 16:10:25 +0000 (18:10 +0200)]
[FIX] website_blog: wait that document is ready before to check if we need to update menu for blog
Martin Trigaux [Wed, 10 Sep 2014 15:35:44 +0000 (17:35 +0200)]
[FIX] mail: encoding of sender name with unicode
When sending an email, both formats 'Name <email>' or '"Name" <email>' can be used for fields 'From', 'To' and others. If the name contains unicode characters, a regex only matching '"Name" <email>' was used to encode the name with RFC2047. That meant that the name was not encoded and eventually dropped, using only the email part.
Instead of using a limited regex, use the parseaddr method from email library.
Fixes lp:1272610, opw 607683
Denis Ledoux [Wed, 10 Sep 2014 15:25:56 +0000 (17:25 +0200)]
[FIX] mail: alias domain should be fetch as superuser
as ir.config.parameter has limited access
Jeremy Kersten [Wed, 10 Sep 2014 15:23:19 +0000 (17:23 +0200)]
[FIX] website_event_track: force type from related to fix bug with convert_to_cache on picture
Olivier Dony [Wed, 10 Sep 2014 15:01:38 +0000 (17:01 +0200)]
[FIX] mrp: force default values for dropped fields
Those values were dropped at rev 9b34358 but
need to be forced to empty so older databases
get fixed when upgrading
Olivier Dony [Wed, 10 Sep 2014 14:35:03 +0000 (16:35 +0200)]
[FIX] sale: force default values for dropped fields
Those values were dropped at rev 3b636a5 but
need to be forced back to default so older
databases get properly updated when upgrading.
Pankaj Joshi [Wed, 3 Sep 2014 13:37:41 +0000 (19:07 +0530)]
[FIX] hr_recruitment: fixed computation and storage of day_open and day_close + assignment of date_open and date_closed.
Denis Ledoux [Wed, 10 Sep 2014 13:07:06 +0000 (15:07 +0200)]
[FIX] website_sale: the order of the attribute list doesn't matter
Olivier Dony [Wed, 10 Sep 2014 12:58:25 +0000 (14:58 +0200)]
[FIX] product,purchase,point_of_sale: force empty values for dropped fields
At 96f038a product-related fields were removed due
to an important product.template/product.product
refactoring. As the field values were simply
dropped, they may not be nullified when upgrading an
existing database. Forcing them to False will take
care of it.
Olivier Dony [Wed, 10 Sep 2014 12:55:08 +0000 (14:55 +0200)]
[FIX] mrp: force empty values for fields that were dropped
This ensures the field values are cleared during
upgrades from previous versions
Frederic van der Essen [Wed, 10 Sep 2014 12:30:43 +0000 (14:30 +0200)]
[FIX] point_of_sale: chrome was dropping the cookie when loading the company logo, resulting in an incorrect logo in multi-db setups.
Frederic van der Essen [Wed, 10 Sep 2014 11:39:50 +0000 (13:39 +0200)]
[FIX] point_of_sale: fix some image chaching issues with the receipt logo. Using a random url at each fetch ensures that we don't get cached results
Frederic van der Essen [Wed, 10 Sep 2014 12:34:58 +0000 (14:34 +0200)]
[FIX] point_of_sale: chrome was dropping the cookie when loading the company logo, resulting in an incorrect logo in multi-db setups.
Raphael Collet [Wed, 10 Sep 2014 10:10:22 +0000 (12:10 +0200)]
[FIX] models: in method onchange(), check for record dirtiness only on *2many fiels
Cascading onchanges can be caused by a related field computed in cache. This
causes a bug in sale order lines, were setting the uom field forces reading
product fields, which are inherited from product templates. The inherited
fields are computed as related fields, which marks the product record as dirty.
This subsequently triggers an onchange on the product field, which resets the
uom field!
Frederic van der Essen [Wed, 10 Sep 2014 11:52:04 +0000 (13:52 +0200)]
[FIX] point_of_sale: prevent the company logo from being cached by the browser by accessing it via a random URL
Simon Lejeune [Wed, 10 Sep 2014 11:42:35 +0000 (13:42 +0200)]
[FIX] web: revert
9f0834771d49a
Revert "[FIX] web: base.css: fixed width for input of file type under oe_avatar"
A better fix for opw-613318 is done in
f8bd25c852e
Christophe Matthieu [Wed, 10 Sep 2014 11:24:56 +0000 (13:24 +0200)]
[FIX] website_sale: The product breadcrumbs in shop not working. Internal Server Error appears
Denis Ledoux [Wed, 10 Sep 2014 11:12:21 +0000 (13:12 +0200)]
[FIX] web: FieldBinaryImage upload file at the right place
Before this, the div wasn't in the right place in the form view
for instance, in the product form view, the third checkbox triggered this binary upload file
opw-613318
task-8982
Denis Ledoux [Wed, 10 Sep 2014 10:18:14 +0000 (12:18 +0200)]
[FIX] ir_attachment: attachements removed on record unlink
Bhavik Bagdiya [Fri, 22 Aug 2014 09:29:39 +0000 (14:59 +0530)]
[FIX] web: stages positioned properly when there is no sheet
Fixes #271
Closes #2004
eneldoserrata [Mon, 8 Sep 2014 16:21:46 +0000 (12:21 -0400)]
[ADD] l10n_do: Chart of Account for Dominican Republic
Fixes #2257
Josse Colpaert [Wed, 10 Sep 2014 09:49:09 +0000 (11:49 +0200)]
Merge pull request #2312 from odoo-dev/8.0-wmsoptimassignrereserve-jco
[IMP] Add possibity to add rereserve button and optimize action assign
Josse Colpaert [Wed, 10 Sep 2014 09:23:48 +0000 (11:23 +0200)]
[IMP] Add possibity to add rereserve button and optimize action assign
Christophe Matthieu [Wed, 10 Sep 2014 08:30:25 +0000 (10:30 +0200)]
[FIX] website_sale: Price of accessory product are all time null. Need to use new api to send the context.
Christophe Matthieu [Thu, 4 Sep 2014 13:30:42 +0000 (15:30 +0200)]
[FIX] website_event_sale: need to use new api to send the context. Add some step for test to check if the cart have the distinct products
Christophe Matthieu [Thu, 4 Sep 2014 13:30:18 +0000 (15:30 +0200)]
[FIX] website.editor: need to set the range on start because the browser can be lost the caret and can't insert the media in the page.
Raphael Collet [Tue, 9 Sep 2014 13:23:52 +0000 (15:23 +0200)]
[FIX] openerp/osv/fields: disable prefetching when reading inverse of one2many fields
This fixes issue #2146. The inverse of a one2many field can be an inherited
field (_inherits). In that case, we cannot read its value with a simple
database query. Instead, we let the related field read it, but for performance
considerations we disable the prefetching of other fields.
Olivier Dony [Tue, 9 Sep 2014 17:20:44 +0000 (19:20 +0200)]
[FIX] mrp: force empty domain to reset action at upgrade
There was a domain in 7.0 but it must be forced
to empty during upgrade, as the MRP BoM model
has changed.
Denis Ledoux [Tue, 9 Sep 2014 17:17:23 +0000 (19:17 +0200)]
[FIX] email_template: a tag link rendering, do not process if no href
Denis Ledoux [Tue, 9 Sep 2014 17:00:58 +0000 (19:00 +0200)]
[FIX] website_event_sale: take taxes from product_id_change into account
Denis Ledoux [Tue, 9 Sep 2014 16:23:32 +0000 (18:23 +0200)]
[MERGE] forward port of branch 7.0 up to 8dff247
Simon Lejeune [Tue, 9 Sep 2014 16:16:21 +0000 (18:16 +0200)]
[FIX] ir_qweb: contact widget: properly pass the context when browsing the contact
As the context was not transferred, it was never translated.
Denis Ledoux [Tue, 9 Sep 2014 16:02:30 +0000 (18:02 +0200)]
[MERGE] forward port of branch 7.0 up to 33e0910
Jérome Maes [Fri, 5 Sep 2014 12:43:20 +0000 (14:43 +0200)]
[FIX] im_chat : search user method, split the sql query into 3 smaller
Raphael Collet [Tue, 9 Sep 2014 14:28:08 +0000 (16:28 +0200)]
[FIX] web: invoke fields_view_get with kwargs instead of positional args
The mapping old api → new api mistakenly takes the last positional argument as
the context (fields_view_get() has an extra parameter after context.)
Fixes issue #2063
Jeremy Kersten [Tue, 9 Sep 2014 14:51:35 +0000 (16:51 +0200)]
[IMP] crm: Use cookies to save utm instead of session.
Jeremy Kersten [Tue, 9 Sep 2014 14:50:42 +0000 (16:50 +0200)]
[FIX] website_sale: typo in tour
Denis Ledoux [Tue, 9 Sep 2014 14:45:42 +0000 (16:45 +0200)]
[FIX] orm, read_group: read_group_fill_results handle no_leaf
Frederic van der Essen [Tue, 9 Sep 2014 14:14:27 +0000 (16:14 +0200)]
[FIX] point_of_sale: display an error when trying to print a receipt on an outdated posbox
Commandant Custo [Tue, 9 Sep 2014 13:02:18 +0000 (15:02 +0200)]
[IMP] product: Order product.template by name
When no order is forced, it's more user-friendly if the products are ordered by alphabetical order.
This will mainly be applied:
* In the list view in the back-end
* In the eCommerce, for products with equal website_sequence
Martin Trigaux [Tue, 9 Sep 2014 11:43:04 +0000 (13:43 +0200)]
[FIX] hr_expense: tax included computation
When a tax included has a several childs, the source line should not be duplicated for each tax.
Without the patch, the actual product price (without taxes) would be (total - tax amount) for the last tax only (and not the sum of each tax). (opw 609104)
Simon Lejeune [Tue, 9 Sep 2014 12:36:00 +0000 (14:36 +0200)]
[FIX] Report: search associated qweb views: do not forward context
The context may be inconsistent (for instance, containing a group_by associated to another
model). The client will take care of keeping it consistent. Fixes issue #1768
rsi-odoo [Tue, 9 Sep 2014 05:49:43 +0000 (11:19 +0530)]
[IMP] product : Improve tooltip of pricelist on min_quantity field.
Denis Ledoux [Tue, 9 Sep 2014 11:30:07 +0000 (13:30 +0200)]
[FIX] web_calendar: calendar title and column according to l10n
Christophe Simonis [Tue, 9 Sep 2014 11:26:51 +0000 (13:26 +0200)]
[FIX] fields.py: One2many fields only set inverse field on Many2one fields
Christophe Simonis [Tue, 9 Sep 2014 11:09:50 +0000 (13:09 +0200)]
[FIX] base: ir.model.data.name_get() respect expected behavior.
name_get() must return a value for each ids and keep order of ids.
Simon Lejeune [Tue, 9 Sep 2014 09:52:44 +0000 (11:52 +0200)]
[FIX] web: missing backport of rev
df3c6b750249
[FIX] web: do not try to close a destroyed dialog. trigger "closing" signal on close by top-right "X" button
Raphael Collet [Tue, 9 Sep 2014 09:42:50 +0000 (11:42 +0200)]
[FIX] account.invoice.line: move context to last position in onchange methods
The methods product_id_change() and uos_id_change() have been converted to the
new api, and now use the decorator @multi. When invoked with the old api, by
convention the methods will take the last argument as the context. But this
will not work properly for those methods, as the context is passed in another
position. In order to avoid an argument swap in the api wrapper, we moved the
context to its expected position.
Fixes #1943
Olivier Dony [Tue, 9 Sep 2014 08:35:38 +0000 (10:35 +0200)]
[IMP] auth_crypt: auto-install, improve description, bump version
The compatibility issue with auth_ldap has been
fixed and the default key derivation function
switched to PKDF2+SHA512. `auth_signup` provides
a password reset mechanism that can be used in
combination with `auth_crypt`.
rolvraen [Fri, 18 Jul 2014 21:57:30 +0000 (23:57 +0200)]
[ADD] l10n_no: Add Norwegian chart of accounts
Fixes #1272