Commit Graph
107604 Commits
Author SHA1 Message Date
Rohan Patel 7b7995e301 [IMP] im_livechat: give res_model_id instead of res_model submit rating 2017-01-24 09:02:10 +01:00
Christophe Simonis 02a5160f54 [FIX] base: correct model reflection
Oversight of previous forward-port
2017-01-23 17:34:36 +01:00
Christophe Simonis fded0065ae [MERGE] forward port branch saas-14 up to 6c4389df41 2017-01-23 14:51:11 +01:00
Christophe Simonis 6c4389df41 [MERGE] forward port branch 10.0 up to 6804085b8c 2017-01-23 14:33:53 +01:00
Christophe Simonis 6804085b8c [MERGE] forward port branch saas-11 up to b9374d5c21 2017-01-23 13:56:18 +01:00
Christophe Simonis b9374d5c21 [MERGE] forward port branch 9.0 up to 0997a1cf6d 2017-01-23 13:39:09 +01:00
Yannick Tivisse ad766ba20d [IMP] stock: Make default_picking_policy a required field in settings 2017-01-23 13:15:02 +01:00
Christophe Simonis 0997a1cf6d [MERGE] forward port branch saas-6 up to 5065f4b3e8 2017-01-23 13:14:51 +01:00
Nicolas Martinelli d4a4d440f5 [FIX] payment: token domain
The token domain should be extended to the commercial partner and its
siblings.

opw-705441
2017-01-23 13:12:40 +01:00
Nicolas Martinelli f96bbfd956 [IMP] payment: token order
Sort the payment tokens by descending id, so that the default token
selected for a partner is the last one.

opw-705441
2017-01-23 13:12:40 +01:00
mdi-odoo 255de89330 [FIX] report,*: correct reports without header/footer
Since 3d04e44880 [0], the class `article`
is used instead of `page`. As reports not using `external_layout` does
still manually used `page` class as wrapper, there were not rendered
properly. Force these reports to correctly wrap their content into an
`article` div by using a dedicated template.

Closes #15118

[0] more precisely https://git.io/vM58c
2017-01-23 13:00:00 +01:00
Wolfgang Taferner 896f5c0886 [FIX] Invoiced orders should never create a duplicated account move 2017-01-23 12:39:45 +01:00
George Daramouskas 5a992857b8 [FIX] payment: do not rely on English as default language
If the database is create in monolangue and `en_US` is not present, the default
value computation crashes as tries to assign a value not present in the
selection (all installed languages).

Use the environment language as default (same as the default of res.partner).
It may be empty but not a value not existant in the database.

Fixes #15165 
Closes #15176
2017-01-23 12:07:14 +01:00
Denis Vermylen bcc517b6eb [FIX] point_of_sale: do not set 'invoiced' orders to done
This commit fixes github issue: https://github.com/odoo/odoo/issues/15170
2017-01-23 11:37:12 +01:00
Denis Vermylen e83a40f38b [FIX] sales_team,*: improve dashboard graph layout
Remove graph title, lower padding, bigger bar charts.

odoo task:
https://www.odoo.com/web#id=30866&view_type=form&model=project.task&menu_id=
2017-01-23 10:55:41 +01:00
Christophe Simonis 5065f4b3e8 [MERGE] forward port branch 8.0 up to 91f11f8bd6 2017-01-23 10:46:39 +01:00
Jeremy Kersten a307ab8076 [FIX] website_sale: partial revert of 6b87284f
This commit has been forward-ported by error in 9 and +.
Update website_sale.js to fix impacted databases.

Decimal precision in v8 = 0.01, and v9+ = 2

With fwd port, int(0.01) instead of int(2) because data-precision
appears 2x, first with 0.01 (v8), secondly with 2 (v9+).

Js fix uses the last decimal-precision (v9) instead of the first (v8)
2017-01-23 09:52:47 +01:00
Nicolas Martinelli 49f5aef548 [FIX] stock_account: inventory at date
The "Inventory at Date" has several issues:
- graph and pivot views are not available despite their existence
- the views are not linked to an action, thus it is impossible to save
  it on the dashboard.

opw-703649
2017-01-23 09:19:49 +01:00
Nicolas Martinelli 68dd9bdb0a [FIX] board: prevent crash if no action
If the user tries to save on the dashboard a view which was not open
through an existing action, the call to method `add_to_dashboard`
crashes because of incorrect arguments (`action_id` is undefined in JS).

This is for example the case when trying to save an "Inventory at Date"
in the dashboard (will be fixed in a subsequent commit).

opw-703649
2017-01-23 09:19:49 +01:00
Nicolas Martinelli 79bd2f3062 [FIX] stock_account: inventory at date
The "Inventory at Date" has several issues:
- graph and pivot views are not available despite their existence
- the views are not linked to an action, thus it is impossible to save
  it on the dashboard.

opw-703649
2017-01-23 09:19:23 +01:00
Nicolas Martinelli 7180d948f0 [FIX] board: prevent crash if no action
If the user tries to save on the dashboard a view which was not open
through an existing action, the call to method `add_to_dashboard`
crashes because of incorrect arguments (`action_id` is undefined in JS).

This is for example the case when trying to save an "Inventory at Date"
in the dashboard (will be fixed in a subsequent commit).

opw-703649
2017-01-23 09:19:23 +01:00
Odoo Translation Bot c7679dde25 [I18N] Update translation terms from Transifex 2017-01-22 04:30:26 +01:00
Odoo Translation Bot 91f11f8bd6 [I18N] Update translation terms from Transifex 2017-01-22 03:25:31 +01:00
Odoo Translation Bot 4169049263 [I18N] Update translation terms from Transifex 2017-01-22 00:39:31 +01:00
Fabien Pinckaers 520ea67fcf [IMP] mrp: typo, cost structure is component, not raw materials (some are semi finished products) 2017-01-20 18:35:20 -08:00
Fabien Pinckaers 2b0dce508b [IMP] mrp: improving BOM cost report: header layout + reference 2017-01-20 18:28:11 -08:00
Fabien Pinckaers f5568c271f [IMP] sale: improve Settings with clickable labels 2017-01-20 15:44:31 -08:00
Christophe Simonis e530a31d66 [FIX] l10n_vn: correct xml declaration
Error introduced by forward-port e348330b57
2017-01-20 17:26:49 +01:00
Martin Trigaux 4977bceda9 [MERGE] correct groups reference in views
Fix several references to `groups=` in views that were incorrect or declared in
a way that the view or code was evaluated before the group creation (order of
creation) or errors in group name.

Closes #15098
Fixes #15094
2017-01-20 15:49:41 +01:00
Martin Trigaux b437afd029 [FIX] base: avoid reference to group_user before creation
The group base.group_user is used in the computation of the share column which
is executed at column creation, before the group is imported.

Set it in base.sql to already have an xmlid to resolve.
2017-01-20 13:54:16 +01:00
Martin Trigaux c278ebf2fe [FIX] sale,account: do not reference to not declared yet group
The group sale.group_discount_per_so_line is used in account but declared in
sale. As the has_group method ignores unexistant fields, this field was never
displayed until somebody install sale.

In account, replace the discount group with debug mode.
Remove it from the report as it was only displayed when at least one discount
was set (not possible if the discount field is not displayed).

In sale, makes xpath to use the correct group.

Fixes 15094
2017-01-20 13:54:16 +01:00
Martin Trigaux a04df7d1fa [FIX] procurement: do not make reference to stock group
Not created yet if stock is not installed.
Can show the procurement buttons without the push/pull rules.
2017-01-20 13:54:04 +01:00
Martin Trigaux c319210b0a [FIX] stock: reference to correct uom group
stock.product_group_uom does not exists
product.group_uom does
2017-01-20 12:56:52 +01:00
Martin Trigaux 5fd14bce32 [FIX] crm: import security first
To be able to make references to the created groups
2017-01-20 12:56:52 +01:00
Martin Trigaux 7601894adc [FIX] hr: group_multi_departments does not exists 2017-01-20 12:56:52 +01:00
Martin Trigaux c920444e56 [FIX] account: avoid error group billing not found
Set the use in 2 steps to avoid chicken & egg problem where the user uses
reference to a group not defined yet.
2017-01-20 12:56:51 +01:00
Martin Trigaux 2f1d3ad712 [FIX] website_hr: use correct group
Group present in hr and taggued accordingly since v10, not base
Introduced in forward port
2017-01-20 12:56:51 +01:00
Martin Trigaux bb41d6b9d6 [FIX] stock: use correct group
stock.group_locations does not exists but stock.group_stock_multi_locations does
2017-01-20 12:56:51 +01:00
Martin Trigaux b91461f9c0 [FIX] stock: reference to correct group
stock.group_stock_production_lot does not exists but stock.group_production_lot
does
2017-01-20 12:56:50 +01:00
Martin Trigaux 33b1b52528 [FIX] website_sale: security as first import
To avoid references to group non-existants
2017-01-20 12:56:50 +01:00
Raphael Collet 4a18d5744e [FIX] base: restrict read access to ir.model and ir.model.fields to employees 2017-01-20 10:05:10 +01:00
Fabien Pinckaers 73ca087a6f [IMP] crm: make 'lost reasons' and 'tags' config visible 2017-01-19 16:25:51 -08:00
Odoo Translation Bot c150838bb5 [I18N] Update translation terms from Transifex 2017-01-19 17:28:33 +01:00
Martin Trigaux 3c9937388d [FIX] website_customer: filter on correct field
The field tag_ids has been removed at df2bed3c but not changed in the controller
2017-01-19 17:17:42 +01:00
Nicolas Lempereur b9db65aa73 [FIX] web: display warning message for o2m modal
Be a little less strict when not showing o2m list view warning so if the
o2m is not editable (a modal is open instead of editing inline) we still
show warnings.

Also have warnings over modal overlays so they can be used for modals.

opw-702333
2017-01-19 16:46:33 +01:00
Goffin Simon 6834c4d46e [FIX] purchase: _get_purchase_order_date and product_qty
When seller_ids are set on a product with a Minimal Order Quantity(MOQ),
the function _select_seller didn't get the ordered quantity so the
sellers with an MOQ were never selected.

opw:704856
2017-01-19 16:43:22 +01:00
Raphael Collet b0646f9d2c [REF] move support for sparse fields into a separate module (#15070)
This removal has led to a necessary refactoring:
- make the setup of field attributes extensible;
- make the instantiation of custom fields extensible;
- delegate model and field reflection to `ir.model` and `ir.model.fields`;
- move the implementation of sparse and serialized fields to module `base_sparse_field`;
2017-01-19 16:29:29 +01:00
Nicolas Lempereur 734d9b56da [FIX] web: conserve /id for saved export list
With 003d85b instead of getting the name of the relation
field_relation we get field_relation/id.

But the data about the related fields are not gotten all at once when
opening the export modal. They are gotten by clicking on the arrow of
the related record.

So we need to have these /id information saved in the export list,
otherwise for example the related records can be missing when exporting
from an export list, whilst everything was OK without using the saved
export list.

With the previous change, an export list could contain an id and .id
fields for the same relational field, so a change must also be done in
fields_info method used when getting a saved list.

opw-665994
opw-693535

note: adapted forward-port of 8.0's 29be9ae80 which was lost when
merging web enterprise onto web community.
2017-01-19 16:24:53 +01:00
Josse Colpaert c453358c88 [FIX] mrp: intermediate post inventory during a MO
When posting inventory during a manufacturing order,
all raw material and finished product moves are used,
also those done from a previous post inventory.

This is no problem for the moving of quants because
a filtering is done in the move_validate method,
but it is a problem for the price calculation in
mrp_account and for linking the consumed/produced_quant_ids
of the quants of the raw and finished moves.

Before this fix, it would calculate already consumed materials
a second time in the price of the finished products and would
link quants produced with previously consumed quants (and vice versa)
when doing a second post inventory.

We add a test to show the issue.
2017-01-19 16:21:27 +01:00
Cédric Pigeon (ACSONE) 640de0d22e [FIX] purchase: generate invoice lines from purchase lines
The invoice lines were generated almost fully from the given purchase line.
For a few field, the information was retrieved from the purchase order selected
in the onchange.
In standard it makes no difference but the purpose of this generic method is to
rely only of the line given as parameter.

In the scenario of extensions to generate invoice lines from several purchase
orders, this method could not be used as was relying on the previously selected
purchase order.
This was done at OCA/purchase-workflow#319

This commit ensure to only rely on givem `line` to generate invoice lines.

Closes #15104
2017-01-19 15:24:10 +01:00