Commit Graph
103231 Commits
Author SHA1 Message Date
Christophe Matthieu 1c02be8974 [IMP] web: remove useless jquery.notify lib 2016-02-17 09:47:46 +01:00
Christophe Matthieu a56f27a3c9 [IMP] web: reduce jquery-ui lib (remove useless modules)
Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, sortable.js, autocomplete.js, datepicker.js, menu.js, tooltip.js
2016-02-17 09:47:46 +01:00
Christophe Matthieu 1a2b1e69dd [IMP] web: remove useless jQuery.timeago lib
Replace call by moment(date).fromNow()
2016-02-17 09:47:45 +01:00
Christophe Matthieu 8d90abc66a [IMP] web: remove useless jquery.textext lib 2016-02-17 09:47:45 +01:00
Christophe Matthieu 63bbb87032 [IMP] web: reduce nv.d3 files size (remove useless models)
https://github.com/novus/nvd3

grunt concat:
css.src: ['src/css/axis.css', 'src/css/scatter.css', 'src/css/tooltip.css', 'src/css/bars.css', 'src/css/lines.css', 'src/css/main.css', 'src/css/pie.css']
js.src: ['src/core.js', 'src/dom.js', 'src/interactiveLayer.js', 'src/tooltip.js', 'src/utils.js', 'src/models/axis.js', 'src/models/scatter.js', 'src/models/multiBar.js', 'src/models/legend.js', 'src/models/lineChart.js', 'src/models/line.js', 'src/models/discreteBarChart.js', 'src/models/pieChart.js', 'src/models/discreteBar.js', 'src/models/multiBarChart.js', 'src/models/pie.js']
2016-02-17 09:47:45 +01:00
Goffin Simon 598856e1e0 [FIX] account : tax details in invoice report
When a tax with an amount of 0 percent was linked to an invoice line,
this tax didn't appear in the tax details in the bottom of the invoice
report.

opw669162
2016-02-17 09:33:10 +01:00
Richard Mathot 929ff48e17 [FIX] l10n_pa: bad XML indentation 2016-02-17 09:32:43 +01:00
Yannick Tivisse 76ed5965b7 [IMP] delivery: Do not open Put in Pack wizard if no related packaging_id
When clicking on the 'Put in Pack' button, do not open the wizard
to select the packaging_id if no packaging_id is available for this carrier
('package_carrier_type').

Example:
- If the carrier is Fedex, it makes sense to open the wizard
- If there are no packaging, it doesn't
2016-02-17 09:15:44 +01:00
Denis Ledoux c89e45358e [FIX] purchase: default order date
By calling directly the method `fields.Datetime.now`,
the default order date was the datetime at which
the server is started or the worker created,
while, it should be the current datetime, not
the datetime at which the registry has been
loaded.

opw-668278
2016-02-16 18:19:01 +01:00
qdp-odoo d081fa4931 [FIX] account: fixed display bug in the manual reconciliation widget where currency difference entries where displayed with no amount (since they had a currency_id but not amount_currency). In that case, we now fallback on the company currency 2016-02-16 17:38:20 +01:00
qdp-odoo f862467ff2 [FIX] account: when a currency difference is reversed, we need to match together the origin currency line on the partner account and its newly created reversal otherwise they don't cancel each other completly since they still both appear on reports, followups... 2016-02-16 17:38:19 +01:00
qdp-odoo 11cdd5b841 [FIX] account: put the partner_id on the currency difference line otherwise the receivable account of the partner won't be equal to 0 2016-02-16 17:38:19 +01:00
Adrien Peiffer (ACSONE) b21773456c [ADD] Add test with half hours to compute working hours. 2016-02-16 17:24:39 +01:00
Adrien Peiffer (ACSONE) 5e940643a5 [FIX] In some cases, the half hours are not considered in intervals computation 2016-02-16 17:24:21 +01:00
Raphael Collet 92144ef64b [FIX] fields: do not add triggers for the fields of an abstract model
This avoids recomputing a computed field defined on an abstract model, which
crashes because the model's table does not exist in database.
2016-02-16 17:05:05 +01:00
Raphael Collet e3ed3d67fb [IMP] models: factor code in _onchange_eval
The factorization enables new-API onchange methods to return values as old-API
onchange methods.
2016-02-16 16:39:18 +01:00
Denis Ledoux 1d7c12022d [FIX] stock_account: valuation history with moves having multiple quant prices
The revision 29bd622521
aimed to improve the performance by changing
the view index, to use a BIGINT instead of a text.

It was assumed that the index used
(`stock_move.id`) could not appear
multiple times with the JOINs and
group bys defined.

This was in fact possible, if a
stock move is associated to
several quants with different costs,
because of the JOIN on the many2many table
`stock_quant_move_rel`
linking quants to moves,
and the GROUP BY
`price_unit_on_quant`
that caused the different moves/quants association
not to be merged within one unique line
if the costs on the quants are different.

Instead of the group by, we now aggregate the quants
costs, using the weighted average, so the index
used can be unique, as expected.

From now, the inventory value per line in
this report view can therefore
be different than what can be found on the quants,
but this report view is based on the stock moves
rather than the stock quants, and this is therefore accepted.

In other words, the inventory value is computed for the stock move
rather than for the stock quant.

opw-658903
2016-02-16 16:37:32 +01:00
Christophe Simonis 19551aec2e [FIX] sale: missing oldname of team_id fields
These attributes have been forgotten during rewrite in new-api.
2016-02-16 16:29:54 +01:00
Goffin Simon 8e78f0e841 [FIX] purchase: PO without picking
When an order is created without any picking, the button
"RECEIVE PRODUCTS" can be hidden.

opw:669081
2016-02-16 14:24:08 +01:00
Damien Bouvy a5e8f22701 [FIX] payment_ogone: s2s response should generate payment method
Ogone responses comes from direct s2s calls or form feedback;
not necessarily in that order. The behaviour of the system should
be the same in both cases. This commit add payment_methode creation
when a s2s response contains the necessary information, juste like
the form feedback methods.

Ideally these methods should be merged to share the same code,
this will be done in master (v10).
2016-02-16 11:29:08 +01:00
Damien Bouvy 36e681cbe5 [FIX] website_quote: sales order do not use workflow any longer
+ old message_post call with wrong kwargs.
2016-02-16 11:29:08 +01:00
Aaron Bohy b87b6cc613 [FIX] mail: allow to extend make_message() and make_channel()
to load and display more fields of the corresponding model.
2016-02-16 11:27:11 +01:00
Goffin Simon 851992cdd6 [FIX] product_visible_discount: lst_price
In a SO line, the price unit is taken from function "_product_price"
set on the product(model: "product.product"), this is why the variable
new_list_price has to be taken on the product too. In this way, the right
discount can be computed. Before the fix, new_list_price was equal to
the price set on the product template(list_price) then if the product template had
several variants with several sale price, the discount was wrongly computed.

opw:668636
2016-02-16 10:37:54 +01:00
Yannick Tivisse 631e8bd46a [IMP] Purchase: Prevent PO creation on Vendor Bills
On the field 'Add Purchase Order' on vendor bills, don't allow the
user to create a new purchase order.

The button 'Set to Done' is not clear. This button will prevent the
creation of new invoices for this purchase order. Done is not a 'final'
state and the naming is not clear. Fp proposes to rename the state
'Locked' and the button 'Lock Bills'.
2016-02-16 09:59:13 +01:00
Yoshi Tashiro 7b445112bc [CLA] add contributor to roomsfor CLA
Adding @manamirfhk
Closes #10932
2016-02-16 08:36:08 +01:00
Yannick Tivisse 006de6b38d [IMP] base: Remove ir.actions.todos on module install
And jump to the App Switcher automatically on module install/upgrade.
That way, we can remove a lot of ir.actions.todo in the code.
2016-02-15 17:40:47 +01:00
Martin Trigaux a7f5a89407 [FIX] typo or outdated info 2016-02-15 17:16:10 +01:00
Denis Ledoux 493705bb77 [MERGE] forward port of branch 9.0 up to c40070f 2016-02-15 17:00:11 +01:00
Martin Trigaux c40070fb02 [I18N] web_planner: remove outdated terms
Have been removed at bcca4a44c
2016-02-15 16:35:54 +01:00
Denis Ledoux 52b394861b [FIX] link_tracker: use werkzeug url_encode instead of urllib
`Werkzeug.url_encode` can handle unicode,
while `urllib.urlencode` cannot.

opw-669541
Fixes #10928
2016-02-15 16:31:42 +01:00
Denis Ledoux 755415189a [FIX] stock_landed_costs: additional costs with multiple UoMs
When making a landed costs with pickings using
unit of measures different than the default products unit of measure,
the additional costs added to the quants inventory value were wrong.

This is due to the fact the quants unit of measure is always
the quants product unit of measure, while the quantity
in the adjustment lines were assumed in the stock moves
unit of measure.

As there is no unit of measure field on the adjusment lines,
it makes sense to assume the quantity within the product
unit of measure, to display the quantity within the unit
of measure the user uses the most, which is, normally,
the product unit of measure.

Thanks to this, the additional costs added to the quants
inventory value is now correct.

opw-668374
2016-02-15 16:16:16 +01:00
Richard Mathot e78e57ac82 [FIX] packaging: include *.xsd and *.wsdl files when necessary 2016-02-15 16:13:29 +01:00
Jeremy Kersten 55aa065a40 [FIX] website_crm_partner_assign: return 404 if not partners found
SEO : Avoid to have Soft 404
2016-02-15 15:48:43 +01:00
Jeremy Kersten 36602305dd [FIX] website_slide: add domain on model converter
Avoid to index 403 pages
2016-02-15 15:48:43 +01:00
Jeremy Kersten 7f7c31aa89 [FIX] website_slide: promote is for employees only.
Avoid to be in sitemap.
Anyway, it is show only if group user and no permission for public user.
2016-02-15 15:48:43 +01:00
Jeremy Kersten 682342667e [FIX] website: confusing name and domain_name
To match the current website, we should compare the request http_host to the domain and not
to the website name. That was working luckily because name and domain in demo was the same.

close #10870
2016-02-15 15:48:43 +01:00
Martin Trigaux 9c4c3809fd [FIX] web: missing space in translations
Translated text is stripped of starting and ending spaces on Transifex which
makes the result text look bad (as translators do not put spaces in their
translation either).
Add explicitely a space to be sure it's present in the translation.
Will have no effect on English as it's HTML
2016-02-15 15:31:45 +01:00
Nicolas Martinelli cf62fdb44b [FIX] product: default pricelist item
By default, a pricelist can be created without pricelist item. However,
if a user does not have the rights to manage the pricelist items (or
simply does not want to manage them), the feature is unusable. Indeed,
the user will create a new pricelist (for example, in a new currency),
but this pricelist will not have any item. Therefore, the pricelist will
not apply to anything.

The fix creates a pricelist item by default. The pricelist item is the
most generic possible: it applies to all products and uses the list
price as a base price.

opw-667607
2016-02-15 14:57:45 +01:00
Christophe Simonis a6cf37e930 [MERGE] forward port of branch saas-6 up to 0a1362a 2016-02-15 14:46:27 +01:00
Christophe Simonis 0a1362a19b [FIX] website: video snippet size detection 2016-02-15 14:37:44 +01:00
Fabien Pinckaers d2a20c324d [IMP] Usability on task: no need for sum since it's rewritten bellow (and could be confusing if >80 in list 2016-02-15 14:28:28 +01:00
Martin Trigaux 37969e4b76 [FIX] account,stock: reference to removed menu
Help menu "?" has been removed at bcca4a44, remove the sentence from the planner.
Can not adapt the text as would break the translations.
opw 669462
2016-02-15 14:01:29 +01:00
Aaron Bohy 2f58e95a8d [FIX] mail: composer: correctly erase mentions
The problem was that mentions weren't correctly erased with DELETE key (in some
conditions), or when replacing mention text. When this happened, the mention
didn't appear in the message, but the message was even tough sent to the erased
mentioned people.

With this rev., we don't try to detect erasing on the fly anymore, but we
rather validate mentions before sending the message with the content of the
input.

opw 669362
2016-02-15 12:18:44 +01:00
Cedric Snauwaert cc319c0c08 [FIX] account: field code does not exist anymore on account_account_type 2016-02-15 12:01:51 +01:00
Denis Ledoux 2db5fc9f37 [FIX] im_livechat: group by code insttead of session name
In the report model `im_livechat.report.channel`,
The `session_name` field no longer exists. It has been
replaced by `technical_name` instead, labelled
`code`.

opw-669443
2016-02-15 11:55:57 +01:00
Denis Ledoux fcd10521e9 [MERGE] forward port of branch 8.0 up to 5401345 2016-02-15 11:37:27 +01:00
Denis Ledoux 5401345ce2 [MERGE] forward port of branch 7.0 up to ce38582 2016-02-15 11:36:02 +01:00
Denis Ledoux ce38582907 [FIX] mrp: update production quantity wizard factor
Use the same factor than the one used when
computing the products to consume at confirm.

Before, the quantity of products to consume was wrong
when using a different unit of measure in the BOM
than in the production order.

e.g.
 - BoM defined as:
   - 1 dozen of milk
   - BoM lines: 1 cow
 - Production order:
   - 1 unit of milk
   - BoM: The above one
At confirm, the quantity to consume is 0,083 cow (1 cow / 12, this is correct)
But, when updating the quantity to 2.0,
it updated the quantity of cow to 24.0, instead of 0,16.

opw-669447
2016-02-15 11:34:16 +01:00
Goffin Simon 62587f1842 [FIX] base: _get_default_image
When a shipping/invoice contact is created, the picture with the truck/dollar must
be used. Inspired from 66d4de7
2016-02-15 10:59:08 +01:00
Goffin Simon b6cbc36f9a [FIX] product, stock_account: volume, weight, standard price in product template
When a product template has several variants, the fields volume, weight and
standard price don't have be displayed in the prodcut template form view.

opw:669240
2016-02-15 09:51:42 +01:00