odoo/odoo.git
9 years ago[FIX] website_forum: fix error 500 when editing an answer
Jeremy Kersten [Mon, 1 Dec 2014 14:20:40 +0000 (15:20 +0100)]
[FIX] website_forum: fix error 500 when editing an answer

Was caused by missing tags.
Also fix also backwards-compatibility for textext selection method.

9 years ago[FIX] website_forum: restore bind to onclick because CKE Editor uses it, so on('click...
Jeremy Kersten [Mon, 1 Dec 2014 14:00:43 +0000 (15:00 +0100)]
[FIX] website_forum: restore bind to onclick because CKE Editor uses it, so on('click', fun) breaks things.

Fixes bugs with z-index error on some popups (image selector for example...)

9 years ago[FIX] website_forum: allow moderators to see misbehaving user profiles
Olivier Dony [Mon, 1 Dec 2014 18:30:57 +0000 (19:30 +0100)]
[FIX] website_forum: allow moderators to see misbehaving user profiles

This is to help forum moderators to fight against
spammers. It was previously difficult as the spammer
profile became unreachable as soon as their karma
went below 1, even if they had other questions
or answers still published.

9 years ago[FIX] point_of_sale: fix date formating regression due to moment.js refactor
Frédéric van der Essen [Mon, 1 Dec 2014 18:13:46 +0000 (19:13 +0100)]
[FIX] point_of_sale: fix date formating regression due to moment.js refactor

9 years ago[IMP] point_of_sale: add tax total to the tax included receipt - required by law...
Frédéric van der Essen [Mon, 1 Dec 2014 17:53:33 +0000 (18:53 +0100)]
[IMP] point_of_sale: add tax total to the tax included receipt - required by law in Belgium.

9 years ago[FIX] website: responsive images in table for Firefox only
Denis Ledoux [Mon, 1 Dec 2014 17:23:34 +0000 (18:23 +0100)]
[FIX] website: responsive images in table for Firefox only

It looks there is a bug in Firefox concerning responsive images in table. See bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=975632
Bootstrap advises to use width: 100% for .img-responsive as workaround were needed.
The @moz-document is to apply this for Mozilla only.

opw-617582
opw-618659

9 years ago[FIX] analytic_user_function: inherit conflict on account type
Antoine Huvelle [Mon, 1 Dec 2014 13:43:04 +0000 (14:43 +0100)]
[FIX] analytic_user_function: inherit conflict on account type

The field account_id was inherited with position="replace" meaning we erased
future changes made into hr_timesheet_sheet (41f2eba missed "type in []" and
65f31b9 missed use_timesheets).
Replace by position="attributes" to only change what matters: the on_change.
Fixes #3974

9 years ago[FIX] website: can not change website name
Martin Trigaux [Mon, 1 Dec 2014 15:38:39 +0000 (16:38 +0100)]
[FIX] website: can not change website name

The website name is by default "localhost" (used in the page title in the format
"Current Page | Website Name") but there were no way to change it.
Fixes #3493

9 years agoMerge pull request #3009 from initOS/8.0-fix_escpos_with_non_rgba_image
Frédéric Van der Essen [Mon, 1 Dec 2014 14:55:17 +0000 (15:55 +0100)]
Merge pull request #3009 from initOS/8.0-fix_escpos_with_non_rgba_image

Bug: Exception when printing POS receipt via hardware proxy

9 years ago[FIX] point_of_sale: correctly handle various xmlrpc errors that appear in offline...
Frédéric van der Essen [Mon, 1 Dec 2014 14:46:29 +0000 (15:46 +0100)]
[FIX] point_of_sale: correctly handle various xmlrpc errors that appear in offline mode

9 years ago[MERGE] forward port of branch saas-3 up to e1e7dc0
Christophe Simonis [Mon, 1 Dec 2014 14:42:51 +0000 (15:42 +0100)]
[MERGE] forward port of branch saas-3 up to e1e7dc0

9 years ago[MERGE] forward port of branch 7.0 up to 419d934
Christophe Simonis [Mon, 1 Dec 2014 14:33:48 +0000 (15:33 +0100)]
[MERGE] forward port of branch 7.0 up to 419d934

9 years ago[FIX] account: There is no sale_refund nor purchase_refund analytic journal
Denis Ledoux [Mon, 1 Dec 2014 14:28:00 +0000 (15:28 +0100)]
[FIX] account: There is no sale_refund nor purchase_refund analytic journal

During rev. cbe2dbb, type2journal was refactored, and set as a global variable in the top of the file, as it was use everywhere accross the file.
But, in this specific method _get_journal_analytic, this type2journal dict wasn't the same as everywhere else, as you can see at rev. d2ff95f for example. We must therefore set a specific type2journal dict for this specific method.

9 years ago[FIX] base_calendar: meetings email notification recipients
Eddy Ernesto del Valle Pino [Thu, 20 Nov 2014 18:38:40 +0000 (13:38 -0500)]
[FIX] base_calendar: meetings email notification recipients

Reminder emails are generated based on the list of attendees.
The email_to field used to be a string with a list of emails separated by spaces
while the comma is the valid separator (RFC2822).
Fixes #3933 #3784 #2033

9 years ago[IMP] website_mail: mailing editor buttons
Ravi Gohil [Mon, 1 Dec 2014 07:34:37 +0000 (13:04 +0530)]
[IMP] website_mail: mailing editor buttons

Button "Save and continue" was wrongly named as it worked only once the template
is not in edit mode (so already saved).
Hide the button to only get it in readonly mode and rename it for better
understanding of its purpose. (opw 614563)

9 years ago[FIX] base: oe_subtotal_footer_separator width
Jacques-Etienne Baudoux [Fri, 28 Nov 2014 13:22:56 +0000 (14:22 +0100)]
[FIX] base: oe_subtotal_footer_separator width

Make sure a too long value in the subtotal will not overlap the form sheet
Fixes #3698

9 years ago[FIX] fix editing one2many in some cases (web)
Géry Debongnie [Mon, 1 Dec 2014 09:29:00 +0000 (10:29 +0100)]
[FIX] fix editing one2many in some cases (web)

See issue #3964 for more detail.  Main problem was caused by commit
f0e331e005d8.  It set the key name+'__display' to false when reloading
a record for all field types, but it was only concerned with many2many.

9 years ago[FIX] stock: Never hide the invoice control on pickings
Loïc Bellier [Fri, 31 Oct 2014 14:07:08 +0000 (15:07 +0100)]
[FIX] stock: Never hide the invoice control on pickings

Invoice control field was invisible, and we cannot change value if none selected or copy picking in.
Fixes #3636

9 years ago[FIX] Packaging: RedHat: (post-)install shell shebang
Aaron Bohy [Fri, 28 Nov 2014 15:19:58 +0000 (16:19 +0100)]
[FIX] Packaging: RedHat: (post-)install shell shebang

9 years ago[FIX] Packaging: batch the signing procedure
Simon Lejeune [Thu, 27 Nov 2014 13:29:43 +0000 (14:29 +0100)]
[FIX] Packaging: batch the signing procedure

9 years ago[FIX] Packaging: lib name from openerp to odoo
Simon Lejeune [Wed, 26 Nov 2014 20:42:24 +0000 (21:42 +0100)]
[FIX] Packaging: lib name from openerp to odoo

It's about time

9 years ago [FIX] Packaging: MANIFEST.in: include relevant files
Simon Lejeune [Wed, 26 Nov 2014 20:40:12 +0000 (21:40 +0100)]
 [FIX] Packaging: MANIFEST.in: include relevant files

As opposed to before, the source package includes requirements.txt,
LICENCE and the README.md. Note: avoiding to chip openerp.egg-info
leads to weird issues so let's just keep it at the moment.

9 years ago[IMP] Packaging: RedHat: sign packages with gpg key
Aaron Bohy [Wed, 26 Nov 2014 16:45:39 +0000 (17:45 +0100)]
[IMP] Packaging: RedHat: sign packages with gpg key

9 years ago[FIX] Packaging: RedHat: dependencies management
Simon Lejeune [Wed, 26 Nov 2014 14:53:36 +0000 (15:53 +0100)]
[FIX] Packaging: RedHat: dependencies management

PyChart is now in the EPEL repo so we now list it as required in
setup.cfg. The other mandatory lib not provided by EPEL are
pyPdf, vatnumber and pydot and are now installed by easy_install
during the post install.

9 years ago[FIX] Packaging: RedHat: install in /usr and add systemd unit file
Simon Lejeune [Wed, 26 Nov 2014 13:08:05 +0000 (14:08 +0100)]
[FIX] Packaging: RedHat: install in /usr and add systemd unit file

By default, the package was installed in /usr/local/lib/python2.7 in CentOS7.
It is problematic because most of other python packages are installed in /usr/lib
and also because /usr/local/lib is not in the default PYTHONPATH. It's fixed by
overriding the install script and forcing prefix to be /usr.

Added a minimal systemd unitfile.
Adapted tests accordingly.

9 years ago[FIX] Packaging: better filename handling
Simon Lejeune [Tue, 25 Nov 2014 11:25:01 +0000 (12:25 +0100)]
[FIX] Packaging: better filename handling

Allow to
1) avoid a special case for debian packages in _publish function
2) publish debian packages with correct filename (ie keeping _amd64, _all)

9 years ago[IMP] Packaging: Debian: sign packages with gpg key
Aaron Bohy [Mon, 24 Nov 2014 15:24:46 +0000 (16:24 +0100)]
[IMP] Packaging: Debian: sign packages with gpg key

9 years ago[FIX] Packaging: allow publishing releases in --no-testing
Aaron Bohy [Fri, 21 Nov 2014 12:40:17 +0000 (13:40 +0100)]
[FIX] Packaging: allow publishing releases in --no-testing

9 years ago[FIX] fix a crash when editing dashboard title (web)
Géry Debongnie [Fri, 28 Nov 2014 13:34:56 +0000 (14:34 +0100)]
[FIX] fix a crash when editing dashboard title (web)

fix is very simple. no further comment required I think.

9 years ago[IMP] product: usability improvement in pricelist
sve-openerp [Fri, 14 Nov 2014 14:13:03 +0000 (15:13 +0100)]
[IMP] product: usability improvement in pricelist

Explicitly specifiy that quantities are in product uom

9 years ago[FIX] mail: remove deprecation warning when converting a non Date object into moment
Cedric Snauwaert [Fri, 28 Nov 2014 14:20:30 +0000 (15:20 +0100)]
[FIX] mail: remove deprecation warning when converting a non Date object into moment

9 years ago[MERGE] forward port of branch 7.0 up to de07c64
Christophe Simonis [Fri, 28 Nov 2014 14:16:38 +0000 (15:16 +0100)]
[MERGE] forward port of branch 7.0 up to de07c64

9 years ago[IMP] [FIX] website_blog: better follow mechanism. Now people following
Amit Vora [Wed, 8 Oct 2014 05:52:51 +0000 (11:22 +0530)]
[IMP] [FIX] website_blog: better follow mechanism. Now people following
a blog will receive notifications only for published posts. They
will not receive all comments of all posts anymore.
When commenting a post users will receive the answers.

Added tests to try to test this behavior.

9 years ago[FIX] ir_ui_view: Missing separator in search view
Commandant Custo [Fri, 28 Nov 2014 13:08:54 +0000 (14:08 +0100)]
[FIX] ir_ui_view: Missing separator in search view

9 years ago[FIX] base: QWeb monetary field rounding
Goffin Simon [Thu, 13 Nov 2014 14:33:26 +0000 (15:33 +0100)]
[FIX] base: QWeb monetary field rounding

QWeb monetary widget uses the precision of the currency to know the number of
digits to display on a price. The number of digits is based on log10(rounding).
For currency with rounding different than 10^x (e.g. in Switzerland 0.05
to allow 5 cents coins only), the number of displayed digits should be rounded
up. e.g. log10(0.05) is -1.3, rounded up to 2 digits.

Fixes #3233

9 years ago[FIX] remove filter for new leads/opportunity (crm)
Géry Debongnie [Fri, 28 Nov 2014 13:26:25 +0000 (14:26 +0100)]
[FIX] remove filter for new leads/opportunity (crm)

requested by fp. the filter is wrong and not very useful from a
functional viewpoint.

9 years ago[REV] stock: revert of f229d40fb7a2a16c6f211a059694b18124b9719a
Richard Mathot [Fri, 28 Nov 2014 13:25:08 +0000 (14:25 +0100)]
[REV] stock: revert of f229d40fb7a2a16c6f211a059694b18124b9719a

Reintroduction of field mes_type on product.template. This field was not
used in the code anymore, but we keep it for future use.

This field allows the user to express that there is no fixed conversion
rate between uom and uos.

(also very partial revert of 52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7)

9 years ago[FIX] stock: rename picking to transfer, to be coherent with 52c3b52bf09fea7e0920ebce...
Richard Mathot [Fri, 28 Nov 2014 13:20:37 +0000 (14:20 +0100)]
[FIX] stock: rename picking to transfer, to be coherent with 52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7 (this commit replaces 39606a7d270a6c08c1e95d557b9d8f2751207139)

9 years ago[FIX] web: use mutex to wait for onchanges
Denis Ledoux [Fri, 28 Nov 2014 12:36:42 +0000 (13:36 +0100)]
[FIX] web: use mutex to wait for onchanges

This fix is related to c12a2e1d1650d308e39cc2b396a76eed579e2595

Mutex allow to wait sequentially for mutex
Besides, if one of the onchanges deferreds fails, it does not resolve the mutex until all deferreds of the mutex are resolved.

Besides, we now wait for the onchanges mutex between each field commited value (line 596) in case the commited value leaded to a new onchanges, that we should wait for before commiting the rest of the values.

9 years ago[IMP] wording and ordering of documentation index
Xavier Morel [Fri, 28 Nov 2014 11:36:04 +0000 (12:36 +0100)]
[IMP] wording and ordering of documentation index

9 years ago[ADD] doc: debug flag
Xavier Morel [Fri, 28 Nov 2014 11:14:22 +0000 (12:14 +0100)]
[ADD] doc: debug flag

9 years ago[FIX] base: delete parent partner reset use_parent_address
Andrius Preimantas [Fri, 28 Nov 2014 10:39:36 +0000 (11:39 +0100)]
[FIX] base: delete parent partner reset use_parent_address

When deleting a partner with some contacts, if the contacts had selected
the "use parent address" checkbox, the address of the contacts was stucked in
readonly mode (no checkbox to disable it).
Disable use_parent_address for orphan partners.

Fixes #3611 #3613

9 years ago[IMP] res: partner form replace widget selection by option no_create
Denis Ledoux [Fri, 28 Nov 2014 10:26:28 +0000 (11:26 +0100)]
[IMP] res: partner form replace widget selection by option no_create

9 years ago[IMP] im_livechat : the rule are now matching with the country (these are not blocked...
Jérome Maes [Tue, 25 Nov 2014 16:02:24 +0000 (17:02 +0100)]
[IMP] im_livechat : the rule are now matching with the country (these are not blocked country anymore). A rule is define for a specific URL and country (if geoip installed). Add the sequence field to prioritize the matching. Also improve xml views.

9 years ago[FIX] Customers remove action domain customer=1 use the context default.
Antony Lesuisse [Fri, 28 Nov 2014 09:54:09 +0000 (10:54 +0100)]
[FIX] Customers remove action domain customer=1 use the context default.

Closes #3902

9 years ago[IMP] account: account.statement.operation.template model
Akash Balar [Thu, 27 Nov 2014 11:18:21 +0000 (16:48 +0530)]
[IMP] account: account.statement.operation.template model
- better many2one ondelete strategies
- domain set on fields, not views
- added domain on analytic_account_id field

9 years ago[FIX] enable --debug for non-xmlrpc contexts
Xavier Morel [Fri, 28 Nov 2014 07:35:14 +0000 (08:35 +0100)]
[FIX] enable --debug for non-xmlrpc contexts

fixes #3102

9 years ago[ADD] website_forum: Adding reporting functionality for Forum Questions and Answers.
Jaysinh Shukla [Wed, 16 Jul 2014 14:29:43 +0000 (19:59 +0530)]
[ADD] website_forum: Adding reporting functionality for Forum Questions and Answers.
[FIX] website_forum: Solving bugs of computed fields of forum.post

9 years ago[IMP] account: account.statement.operation.template model
Arthur Maniet [Thu, 27 Nov 2014 10:30:34 +0000 (11:30 +0100)]
[IMP] account: account.statement.operation.template model
- better many2one ondelete strategies
- added analytic account domain
- added multi-company support

9 years ago[FIX] account: floating point comparisons in get_reconciliation_proposition
Arthur Maniet [Thu, 27 Nov 2014 13:57:11 +0000 (14:57 +0100)]
[FIX] account: floating point comparisons in get_reconciliation_proposition

9 years ago[FIX] translate: lang detection fallback actually falls back
Denis Ledoux [Thu, 27 Nov 2014 16:18:46 +0000 (17:18 +0100)]
[FIX] translate: lang detection fallback actually falls back

For instance, when a context was passed to a method, but no lang was defined in the context, it did not tried to fallback to other places where we could have find the user language.

9 years ago[FIX] fields.py: in many2one convert_to_cache, value can be int but long as well
Christophe Simonis [Thu, 27 Nov 2014 16:05:48 +0000 (17:05 +0100)]
[FIX] fields.py: in many2one convert_to_cache, value can be int but long as well

9 years ago[FIX] web: m2o search facet do no set `default_*` context key for "name_search" values
Christophe Simonis [Thu, 27 Nov 2014 16:04:02 +0000 (17:04 +0100)]
[FIX] web: m2o search facet do no set `default_*` context key for "name_search" values

9 years ago[FIX] fields.py: Many2one fields only put valid values in cache
Christophe Simonis [Thu, 27 Nov 2014 16:03:29 +0000 (17:03 +0100)]
[FIX] fields.py: Many2one fields only put valid values in cache

9 years ago[FIX] product: remove unnecessary UoM rounding step, add missing test
Olivier Dony [Thu, 27 Nov 2014 11:36:28 +0000 (12:36 +0100)]
[FIX] product: remove unnecessary UoM rounding step, add missing test

Remove the intermediate rounding inside _compute_qty(), as it
is not necessary after rev. fa2f7b86 and has undesired side-effects.

An extra float_round() operation inside _compute_qty()
had been added at rev. 311c77bb to avoid a float representation
error in UoM factors that could bias the ceiling() operation
done as the last conversion step.

Example 1:
Dozen has a factor of 1/12, which was previously stored in the
database with a decimal accuracy of 12 significant decimal digits.
This meant the factor was exactly stored as 0.08333333333333.
When reading this back into a Python float, the precision was not
sufficient, and the UoM conversion of 1 Dozen to Units gave a
result of 12.00000000000047961...
After the final ceiling() operation to Unit's rounding, the
converted value ended up as 13.

This problem was initially solved using an extra rounding.

However at revision fa2f7b86 the decimal precision used to store
UoM factors was increased to preserve all significant digits.
This added the extra precision necessary to read the Dozen factor
back into an accurate float value of 1/12, and the conversion of
1 Dozen now gives 12.0 Units, even without the intermediate
rounding operation. (Works for other factor values too)

At the same time that extra rounding operation has undesired
side-effects, as it requires a fixed precision derived from
the rounding precisions of the UoMs. But there is no given precision
that would work in all cases for this intermediate value. It is
always possible to find a valid combination of UoM roundings
that breaks that intermediate step, e.g. by forcing integer
roundings.

Example 2:
Let Grams have a rounding precision set to 1 because no smaller
quantities are allowed, and Kilograms a rounding of 0.001 to allow
representing 1 Gram. (gram factor = 1000 and kilogram rounding = .001
by default)
If we try to convert 1234 Grams into Kilograms, the extra rounding
introduced in 311c77bb will cause a rounding of 1234.0/1000.0 at
the precision of Grams (1), which gives 1.0 as a result.
The net result of this conversion gives 1234.0 Gram = 1.0 Kilogram,
while the correct result (1.234 Kilogram) is perfectly compatible
with the UoM settings.

Similar errors could be triggered with various rounding settings, as
long as the intermediate rounding needs a finite precision.

Two extra tests have been added to cover Example 1 and Example 2.

--
Related to #2072, #1125, #1126, #2672
Closes #2495, #2498

9 years ago[IMP] ws doc: affix language switcher to page top
Xavier Morel [Thu, 27 Nov 2014 15:37:07 +0000 (16:37 +0100)]
[IMP] ws doc: affix language switcher to page top

9 years ago[FIX] doc: viewport meta missing
Xavier Morel [Thu, 27 Nov 2014 15:17:37 +0000 (16:17 +0100)]
[FIX] doc: viewport meta missing

9 years ago[CHG] ws doc: set right section against a dark background
Xavier Morel [Thu, 27 Nov 2014 15:14:04 +0000 (16:14 +0100)]
[CHG] ws doc: set right section against a dark background

9 years ago[FIX] web_graph: pass context to fields_get for translation
Denis Ledoux [Thu, 27 Nov 2014 15:03:14 +0000 (16:03 +0100)]
[FIX] web_graph: pass context to fields_get for translation

In graph views, fields from the pivot table were not translated in the user language
We pass the context, containing the user language, to fields_get in order to get the translation
This is also done by the search view, in search.js line 1978 at this rev.

opw-616713

9 years ago[FIX] web: force company_logo change on company change
Denis Ledoux [Thu, 27 Nov 2014 14:19:39 +0000 (15:19 +0100)]
[FIX] web: force company_logo change on company change

In multi company environment, the company logo was not updated on company change in the user preferences
This disrupted the end user, as he might think the company change did not happen.

9 years ago[MERGE] forward port of branch 7.0 up to 2080ea0
Denis Ledoux [Thu, 27 Nov 2014 12:27:37 +0000 (13:27 +0100)]
[MERGE] forward port of branch 7.0 up to 2080ea0

9 years ago[FIX] stock: on stock picking invoicing, allow to pick a journal if no move line
Denis Ledoux [Thu, 27 Nov 2014 12:25:54 +0000 (13:25 +0100)]
[FIX] stock: on stock picking invoicing, allow to pick a journal if no move line

9 years ago[FIX] base: avoid having 'False' in name of a bank
Sandy Carter [Wed, 12 Nov 2014 18:56:41 +0000 (13:56 -0500)]
[FIX] base: avoid having 'False' in name of a bank

The name_get of res.partner.bank uses the format_layout to generate the name
of the bank. As every field is not required, we may get 'False' in the name.
Replace these missing values by an empty string.

Fixes #3590

9 years ago[FIX] stock: prevent serial number deletion on stock.move
Mohammad Alhashash [Tue, 11 Nov 2014 12:48:48 +0000 (14:48 +0200)]
[FIX] stock: prevent serial number deletion on stock.move

prodlot_id field may be required due to constraint `_check_tracking`.
When a stock.production.lot is deleted, the constraint on linked stock.move is
not checked. To avoid inconsistency, restrict the suppression.
To allow the modification of existing stock.move, remove the states attribute on
the field definition.

As removal of serial may impact the traceability, it makes sense on buisness
point of view to force the modification of previous stock.move, even if the
constraint would not have been violated.
The list of linked stock.move is present on the serial form view making
the operation easier.

Fixes #3560, lp:1176912

9 years ago[FIX] sale_margin: stored field functions cannot trigger other stored field functions
Denis Ledoux [Tue, 30 Sep 2014 15:19:00 +0000 (17:19 +0200)]
[FIX] sale_margin: stored field functions cannot trigger other stored field functions

the update of sale.order margin field was trigger with the margin stored field of sale.order.line: This cannot work with the old api

9 years agoMerge branch 'upstream/master' into master
Sébastien CHAZALLET [Thu, 27 Nov 2014 10:25:38 +0000 (11:25 +0100)]
Merge branch 'upstream/master' into master

9 years ago[IMP] allow many2many to specify formview (web client)
Géry Debongnie [Thu, 27 Nov 2014 10:18:36 +0000 (11:18 +0100)]
[IMP] allow many2many to specify formview (web client)

One2Many fields can specify sub tree and sub form view, to be used when
displaying a list view and when adding/editing an element.  Many2many
can display a sub tree view, but ignore sub formviews.  This can be
fixed by specifying an alternative_form_view to the popup form widget.

9 years ago[FIX] purchase(_requisition): typo negociation -> negotiation
Will Stott [Fri, 7 Nov 2014 10:10:00 +0000 (10:10 +0000)]
[FIX] purchase(_requisition): typo negociation -> negotiation

9 years ago[FIX] openerp: don't ignore active field on new views when updating a module
David Monjoie [Thu, 27 Nov 2014 08:52:17 +0000 (09:52 +0100)]
[FIX] openerp: don't ignore active field on new views when updating a module

Without this fix, if you have a new view in a module with active=False, the active tag will be ignore when upgrading the module because of 'update' mode, and the view will be activated by default !

9 years ago[REV] product: rev. 42f5114 needs further review
Olivier Dony [Wed, 26 Nov 2014 17:20:28 +0000 (18:20 +0100)]
[REV] product: rev. 42f5114 needs further review

Incorrect use of stock.move in product module + needs review.

This reverts commit 42f511405a4efe88e3903a4b4040ec9d83e462e2:
"[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit"

9 years ago[IMP] When no stock moves, change whatever you want, otherwise no change at all for...
Josse Colpaert [Wed, 19 Nov 2014 11:41:25 +0000 (12:41 +0100)]
[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit

The default UoM can only be changed when there are no stock moves (or only cancelled ones), but to any category.
The purchase UoM can be changed whenever you want, but has to be in the same category as the default UoM.

Closes #3440

[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit

[FIX] Remove line

[FIX] Constraint should be applied when UoM or PO UoM is changed

9 years ago[FIX] website_forum: Forum, use old API in v8. forum was not a browse record, so...
Jeremy Kersten [Wed, 26 Nov 2014 16:44:52 +0000 (17:44 +0100)]
[FIX] website_forum: Forum, use old API in v8. forum was not a browse record, so we need to re-browse. Tags: Force to delete tag. Before old tag deleted was not removed from relation, Now we use a 6 to force the update, followed by 0 to create.

9 years ago[FIX] sale_layout: set 0 as default value for categ_sequence
Denis Ledoux [Wed, 26 Nov 2014 16:02:20 +0000 (17:02 +0100)]
[FIX] sale_layout: set 0 as default value for categ_sequence

Otherwise, in some cases, the categ_sequence can be set to null, which is not ordered the same way than 0, and you won't be able to sort lines with null and 0 as categ_sequence between each others

9 years ago[FIX] hr_attendance: use float division for worked_hours field
Maria G [Mon, 10 Nov 2014 00:11:16 +0000 (16:11 -0800)]
[FIX] hr_attendance: use float division for worked_hours field

Used to be rounded to integer while the field is a float.
Fixes #3526

9 years agoMerge pull request #3803 from TheCloneMaster/patch-7
Frédéric Van der Essen [Wed, 26 Nov 2014 15:38:44 +0000 (16:38 +0100)]
Merge pull request #3803 from TheCloneMaster/patch-7

POS is loading all partners, not only customers

9 years ago[REV] stock: partial revert of 52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7
Richard Mathot [Wed, 26 Nov 2014 14:56:03 +0000 (15:56 +0100)]
[REV] stock: partial revert of 52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7

The <div> were introduced to correct alignement issues in this form view. Actually, they are generic and due to inherited invisible group, so CSS is sometimes incorrect when you hide groups. Should be fixed in form view implementation.

9 years ago[FIX] correctly update many2many in listview (web client)
Pierre Verkest [Thu, 6 Nov 2014 15:18:33 +0000 (16:18 +0100)]
[FIX] correctly update many2many in listview (web client)

Fixes the issue #1216 (follow the link for more information). The issue
was caused by a hack in list view: the magical suffix __display is used
in render_cell to determine if a many2many field should be updated. This
commit simply makes sure that old many2many fields + __display keys are
cleared.

A better way would be to redesign/refactor the list view to avoid that
hack in the first place.  But this would be a much more complex task.

9 years ago[REF] stock: replace <div> in view by nolabel
Richard Mathot [Wed, 26 Nov 2014 14:32:51 +0000 (15:32 +0100)]
[REF] stock: replace <div> in view by nolabel

This patch does not change the look of the view; it is only intended to
use the standard feature "nolabel" instead of hacking the HTML with a
<div> tag.

9 years ago[point_of_sale] Domain functions to literals
Mario Arias Badila [Wed, 26 Nov 2014 14:32:33 +0000 (08:32 -0600)]
[point_of_sale] Domain functions to literals

Replaced domain functions with literals where there are only constants

9 years ago[IMP] stock: display company in location tree view
Edy Kendengis [Fri, 7 Nov 2014 05:24:52 +0000 (12:24 +0700)]
[IMP] stock: display company in location tree view

9 years ago[FIX] stock: correct label for picking_id
Richard Mathot [Wed, 26 Nov 2014 14:20:41 +0000 (15:20 +0100)]
[FIX] stock: correct label for picking_id

9 years ago[FIX] pos_loyalty: incorrect xpath
Frédéric van der Essen [Wed, 26 Nov 2014 14:04:11 +0000 (15:04 +0100)]
[FIX] pos_loyalty: incorrect xpath

9 years ago[REM] product: leftovers of unused field "mes_type"
Richard Mathot [Wed, 26 Nov 2014 14:00:37 +0000 (15:00 +0100)]
[REM] product: leftovers of unused field "mes_type"

Also removed in data in point_of_sale, project_timesheet and sale_mrp.

9 years ago[REF] stock: product quantity stat button
Richard Mathot [Wed, 26 Nov 2014 13:52:56 +0000 (14:52 +0100)]
[REF] stock: product quantity stat button

Clean version of stat button of product quantity. Will also work in
creation mode and avoid unuseful computed string field

(fix parts of commit 52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7)

9 years ago[FIX] product: keep attribute on a variant with only one attribute
Christophe Matthieu [Mon, 17 Nov 2014 13:24:03 +0000 (14:24 +0100)]
[FIX] product: keep attribute on a variant with only one attribute

When adding informational attribute, with only one possible value, it used to be skipped.
Instead keep it and add it on every variant.

To avoid dropping and recreating product (and lose eventual customisations), the attributes with only one possible value are set on every product.
This makes sure that in following test, these are not considered in variants_inactive variable.

Fixes #3204

9 years ago[MERGE] forward port of branch 7.0 up to e2dd18f
Denis Ledoux [Wed, 26 Nov 2014 11:35:36 +0000 (12:35 +0100)]
[MERGE] forward port of branch 7.0 up to e2dd18f

9 years ago[FIX] mrp: prevent recursion from phantom boms with no lines
Denis Ledoux [Wed, 26 Nov 2014 11:28:45 +0000 (12:28 +0100)]
[FIX] mrp: prevent recursion from phantom boms with no lines

if the bom is phantom and has no line, we attempt to find a new bom with the default product uom
This is possible that we find the same bom that the current one
In such a case, we must not explode, to avoid recursion.

9 years ago[Fix] ir_translation: fix the problem of base_field object has no attribute model...
Somesh Khare [Wed, 19 Nov 2014 13:37:38 +0000 (19:07 +0530)]
[Fix] ir_translation: fix the problem of base_field object has no attribute model (Maintenance Case:618054)

Fixes #3859

9 years ago[IMP] point_of_sale: enable product re-ordering in the point of sale.
Frédéric van der Essen [Mon, 24 Nov 2014 13:37:28 +0000 (14:37 +0100)]
[IMP] point_of_sale: enable product re-ordering in the point of sale.

9 years ago[IMP] point_of_sale: better names for the pos config fields
Frederic van der Essen [Wed, 19 Nov 2014 12:10:04 +0000 (13:10 +0100)]
[IMP] point_of_sale: better names for the pos config fields

9 years ago[IMP] point_of_sale: removing obsolete field
Frederic van der Essen [Wed, 19 Nov 2014 10:09:15 +0000 (11:09 +0100)]
[IMP] point_of_sale: removing obsolete field

9 years ago[IMP] point_of_sale: pos config view improvement
Frederic van der Essen [Tue, 18 Nov 2014 22:24:53 +0000 (23:24 +0100)]
[IMP] point_of_sale: pos config view improvement

9 years ago[IMP] point_of_sale: moved the barcode field to the view header, and gave it a simple...
Frederic van der Essen [Tue, 18 Nov 2014 22:14:10 +0000 (23:14 +0100)]
[IMP] point_of_sale: moved the barcode field to the view header, and gave it a simpler name

9 years ago[IMP] pos_restaurant: automatically display floors if they have been setup (removed...
Frederic van der Essen [Tue, 18 Nov 2014 22:07:45 +0000 (23:07 +0100)]
[IMP] pos_restaurant: automatically display floors if they have been setup (removed config option)

Conflicts:
addons/pos_restaurant/restaurant.py
addons/pos_restaurant/restaurant_view.xml

9 years ago[IMP] pos_restaurant: allow re-ordering of the restaurant floors
Frederic van der Essen [Tue, 18 Nov 2014 22:03:46 +0000 (23:03 +0100)]
[IMP] pos_restaurant: allow re-ordering of the restaurant floors

9 years ago[IMP] point_of_sale: order payment methods by journal order + a bit of code cleanup
Frederic van der Essen [Tue, 18 Nov 2014 16:39:34 +0000 (17:39 +0100)]
[IMP] point_of_sale: order payment methods by journal order + a bit of code cleanup

9 years ago[IMP] account: add a sequence to account journals to allow reordering. This is used...
Frederic van der Essen [Tue, 18 Nov 2014 16:34:01 +0000 (17:34 +0100)]
[IMP] account: add a sequence to account journals to allow reordering. This is used to re-order the point of sale's payment methods

Conflicts:
addons/account/account.py

9 years ago[FIX] barcodes: some small fixes in the default barcode patterns
Frederic van der Essen [Tue, 18 Nov 2014 15:11:18 +0000 (16:11 +0100)]
[FIX] barcodes: some small fixes in the default barcode patterns

9 years ago[FIX] account_anglo_saxon (test): invoice_state defined in the stock_move and in...
Aaron Bohy [Tue, 18 Nov 2014 13:36:09 +0000 (14:36 +0100)]
[FIX] account_anglo_saxon (test): invoice_state defined in the stock_move and in the stock.picking in tests

9 years ago[FIX] stock: barcode_nomenclature_id field on stock.picking.type instead of stock...
Aaron Bohy [Tue, 18 Nov 2014 13:13:08 +0000 (14:13 +0100)]
[FIX] stock: barcode_nomenclature_id field on stock.picking.type instead of stock.picking