Commit Graph
106941 Commits
Author SHA1 Message Date
Odoo Translation Bot 6fc0d955d0 [I18N] Update translation terms from Transifex
To reflect changes 62bd57e285
opw-704728
2017-01-16 09:41:24 +01:00
Martin Trigaux 62bd57e285 [FIX] product: correct pricelist translation
The pricelist is renamed into USD in demo data of website_sale.
For most people, it should be Public priclist
2017-01-16 09:12:07 +01:00
Odoo Translation Bot 4d4e0484d1 [I18N] Update translation terms from Transifex 2017-01-15 04:31:44 +01:00
Laurent Mignon 273a15ea7d [FIX] website: port of rev a98d60c
The forward-port of the above revision missed
the conversion to the new api

Closes #15064
2017-01-13 14:03:52 +01:00
Nicolas Martinelli 266ae2a26b [FIX] mail: trim '()' characters
In commit 07425d407f a trim of some special characters was introduced
to prevent a crash. This was necessary in v9, but it is not in v10.

opw-703465
2017-01-13 13:28:22 +01:00
Nicolas Martinelli 8fd6f85169 [FIX] product_extended: Compute from BoM
The price suggested thanks to the "Compute from BoM" button only takes
into account the price of the products listed in the BoM lines.

In v9, there was a "Recursive" option that provided the possibility to
compute the prices of all products implied in the BoM, recursively. This
option has been removed since it was leading to a "black box" behavior
that was unclear to the users.

However, limiting the price computation to the BoM lines only is too
restrictive since it doesn't even take into account the phantom BoMs.
By using the `explode` method, we have access to:
- all products not manufactured
- all products manufactured which are not kits (phantom BoM)

It means that the cost of manufactured products (not kits) should still
be computed before the product itself.

opw-697866
2017-01-13 13:25:00 +01:00
Nicolas Martinelli 11e99a0b53 [FIX] product_extended: compute from BoM
When a product template UoM is different from its BoM UoM, the price
suggested thanks to the "Compute from BoM" is incorrect, since it doesn't
apply the conversion rate between the product template UoM and the BoM UoM.

This is because we try to fetch the product UoM through the BoM. However,
if the BoM is not specific to a product.product, the field bom.product_id
is empty.
2017-01-13 13:25:00 +01:00
David Arnold 3609782481 [REF] account: improve inheritability of account.reconcile.model in chart template generation.
This commit adds a _prepare_reconcile_model_vals() method that localization can overwrite should they need it. Courtesy of David Arnold. Was PR #14981
2017-01-13 12:12:14 +01:00
Denis Ledoux 2ddd5590b2 [FIX] base: correct typo in _fields_find, res_ids -> res_id
The issue is introduced by revision
d465346f1e

Raphaël actually meant
`res_ids = data.mapped('res_id')`

Indeed, there is no `res_ids` field on `ir.model.data`,
but there is a `res_id`.

In addition, the same code is written correctly in the method
just above this one, `_object_find`

opw-704592
2017-01-13 11:54:22 +01:00
Nicolas Lempereur 9aaed65352 [FIX] setup: server UTC timezone on windows
In 07bf7bf4f3 a fix was introduced for windows server UTC timezone.

It is possible it would be helpful in some situation to also have it in
setup/odoo (for example if odoo was installed on windows in some other
way than the Installation bundle).

opw-693764
2017-01-13 10:37:24 +01:00
Nicolas Martinelli a93632df91 [FIX] hr_holidays: allocation name
When creating an allocation request by employee tag, the name contains
'False on...'.

opw-703893
2017-01-12 15:16:30 +01:00
Damien Bouvy 1382c0884d [FIX] website_mail, crm, project: replace support email by form url
and correct documentation url with correct version.
2017-01-12 14:21:40 +01:00
Yenthe V.G 2e18f35c4e [FIX] product: Rename invalid context variable
The context uses an invalid name, which means it'll never work correctly.

fixes #15028

Bug coming from the module migration
2017-01-12 10:38:33 +01:00
Nicolas Martinelli f60936fafe [FIX] account_asset: cancel invoice
Extension of commit 9d14230d74. Deactivate the assets when the invoice
is cancelled, which is more logical.

opw-703108
2017-01-11 16:56:23 +01:00
Martin Trigaux cdf62af265 [I18N] account,website_portal: reflect changes in source terms
Thanks Obam.. hmm @JKE-be sorry
2017-01-11 14:50:11 +01:00
Goffin Simon 2db449a2ae [FIX] hr_attendance: check in with blank pin
When writing a blank pin, the user logged can check in his own related
employee.

opw:703744
2017-01-11 14:02:05 +01:00
Damien Bouvy 5bd8f97fa2 [FIX] website_portal_sale: use correct company for invoice creation
Invoices created automatically by the payment acquirer must use the
correct accounts/journals, which may not always be the case if not
explicitly set in the context.
2017-01-11 13:32:11 +01:00
Jeremy Kersten 4b24c2b2a2 [FIX] webite_crm_partner_assign: fix layout for opportunities list 2017-01-11 11:12:47 +01:00
Jeremy Kersten b1f837e0e2 [FIX] website_portal: usability terms
Courtesy of apr
Task-27929
2017-01-11 11:12:47 +01:00
Jeremy Kersten c61fbe36b8 [FIX] website,website_sale: add o_text_overflow in front end
And use it in right column from ecommerce (task-28865)
2017-01-11 11:12:47 +01:00
Jeremy Kersten 9ac974548e [FIX] mail: don't check read access if user not connected.
In the worst case, user is not logged in and he will really have no access and
will have a perm read error after login. We cannot check if an unknow user has
access or not.

In most cases, user will be logged in and will see the document directly if
he has access or will be redirected to messaging if no access.

In the best case, he will be redirected to login page before to see the message.

task-22505
2017-01-11 11:12:47 +01:00
Jeremy Kersten 498852c27f [FIX] website_sale: multi image uses hover option by default 2017-01-11 11:12:47 +01:00
Jeremy Kersten 1f5041f3dc [FIX] account: typo in warning 2017-01-11 11:12:47 +01:00
Jeremy Kersten 4b102523b5 [FIX] crm: search_count don't support limit
Bug migration new api
2017-01-11 11:12:47 +01:00
Denis Ledoux b228f548ca [FIX] website: port of rev a98d60cb11
The forward-port of the above revision missed
the conversion to the new api and that
`context` had to be replaced by `self.env.context`

Fixes #14922
Closes #14923
2017-01-11 11:03:49 +01:00
Nicolas Martinelli 5a1ec14519 [FIX] marketing_campaign: method not implemented
In the Lead Automation module, the module is working as expected when
the activity type is 'Email'. In other cases, the corresponding methods
are not implemented and raise an error.

opw-697829
2017-01-10 19:19:58 +01:00
Josse Colpaert ff098a7ad4 [FIX] mrp: procurement creation for raw materials
According to the routes set on the products of the raw materials, a
procurement may have to be created for the consumed lines of the MO.

A route may also be set on a product category. Before this patch, we
only look for procurement rules for the routes defined on the products
and on its category, ignoring the inherited route of the parent category.

Fortunetaly, we have a computed field on the product model returning
all the routes from the current category, so we use this one in the
search for procurement rules.

A test has been added to show the failure.
2017-01-10 18:42:37 +01:00
Josse Colpaert 2f66e7abde [FIX] mrp: handle the case of empty routings
Before, when the routing of a production order was empty (no operations),
it got into an inconsistent state (you click on "plan" and nothing happens).

Empty routings were used before to do subcontracting or 2-steps inventeory
(we did not set any operations on the routing but we set a location).

Here, we change the related routing field on the production order into a
calculated field which becomes empty when the routing has no operations.
This way, the "produce" button is displayed (as for production orders
without routing) and working/

This is a temporary patch to workaround the issuein a stable release.
In master, we might remove the location on routing and place it on the
workcenters and put a constraint that does not allow an empty routing.
2017-01-10 18:37:53 +01:00
Christophe Simonis 909ce5175f [MERGE] forward port branch saas-11 up to 9fa79a2d66 2017-01-10 16:57:21 +01:00
Christophe Simonis 9fa79a2d66 [MERGE] forward port branch 9.0 up to fc813847d8 2017-01-10 16:53:27 +01:00
Denis Ledoux fc813847d8 [FIX] account: wrong counterpart in invoice / out refund register payment
Revision 20935462a0
introduces the below regression:

When registering a payment on a customer invoice refund
or a vendor bill, with a payment difference

e.g. payment of 101 for an invoice of 100

and marking the invoice as fully paid,
the counter part in the payment account move
were wrongly computed:

In those cases,
its the payment total minus the invoice residual total
that must be performed, and not the other way around.

This revision solves this, inspired on how
the payment difference is computed for display
in the wizard on how it was before the above revision,
in the method `_compute_payment_difference`

Fixes #15000
2017-01-10 16:49:21 +01:00
Josse Colpaert c2040da0ba [REF] mrp: inventory post when last work order is finished
Before this patch, the inventory was automatically posted when you click
on "done" on the last planned work order. This behavior was preventing
the user from correcting, for example, the consumed quantity on the raw
materials move on the manufacturing order if it was different from the
theoretical quantity. Note that finishing anyone but the last work order
still let you edit the consumed quantity. Same with changing the lot.

Now you have to click on "mark as done" on the manufacturing order to
post the inventory. Note that this is the same behavior when working
without work order (produce > mark as done will post).

We adapt the tests to reflect this change.
2017-01-10 15:32:14 +01:00
Goffin Simon 78646696b8 [FIX] hr_attendance: attendance_manual
In Kiosk mode, the user logged cannot check in and check out his related
employee with any wrong pin.

opw:703744
2017-01-10 15:26:11 +01:00
Denis Ledoux 23deeb187d [FIX] account_check_printing: remove useless sudo
This sudo is useless, and prevent the use of the record
rules on the creation of payments.

opw-703143
2017-01-10 15:09:24 +01:00
Christophe Simonis 482fd04167 [MERGE] forward port branch saas-11 up to f1583504ce 2017-01-10 13:46:17 +01:00
Christophe Simonis f1583504ce [MERGE] forward port branch 9.0 up to 3f7b1f6083 2017-01-10 12:07:44 +01:00
Ravi Gohil 23d07478e3 [FIX] mrp: fix migration issue using recordset instead of record in loop 2017-01-10 09:44:35 +01:00
Nicolas Lempereur 3f7b1f6083 [FIX] web_editor: ignore read only + debug + write
In some case (for example the one solved with b51d21c5) we can have
write done on a field text in read only mode.

With 98ed53ce if :

- such a case happened (in b51d21c5 the fix only worked after the given
  field was written one time) or a similar instance,
- and the user was in debug mode,
- and the widget used was TextFieldHtmlSimple

this could lead to an issue with the code trying to toggle the code view
mode whilst the editor is closed.
2017-01-10 08:31:38 +01:00
Nicolas Lempereur 41c64a89a5 [FIX] stock: use avg for cost in group by report
When doing pivot table data visualization, the Unit Cost of several
lines are summed up but there has more meaning if they were averaged.

This will probably still not be perfect (such as averaging two line
with different quantities the quantities would not be taken into
accounts) but it is already slightly better.

opw-694068
2017-01-09 16:53:40 +01:00
Simon Lejeune 17adc2e09e [FIX] barcodes: form view barcode handler: concurrency
Suppose the following usecase: you scan the first product of the
picking. A server onchange is then triggered. You scan the same product
a second time, before the first onchange has returned. You expect that
the first onchange is completely executed before running the second one.
This was not the case. Moreover, some onchanges were not be able to
work with the invalid  state of the formview at some times, and crashed.

The previous implementation was wrong because id didn't run the main
barcode processing mechanism inside a Mutex. It was also wrong because
it didn't correctly wait for the onchange to execute (a previous  barcode
onchanges or some classic ones) before setting the barcode field.
2017-01-09 16:36:00 +01:00
Nicolas Lempereur f27e69eced [FIX] web_editor: harmless ; missing in 98ed53ce 2017-01-09 16:26:15 +01:00
Nicolas Lempereur 81b668c3e3 [IMP] web_editor: tour testing inline editor saving (up to s11)
With 98ed53ce when a form view is saved when a html field is in code
view mode, the change is not lost.

This new backend tour check that when saving in or not in code view, the
content is saved effectively.

The test not in code view would ensure issues like #14381 #14351 #14394
are detected on runbot.

closes #14475
opw-693052

note: the old test system is used so this test is only for up to saas-11
2017-01-09 16:06:46 +01:00
Nicolas Lempereur 98ed53ce3a [FIX] web_editor: don't lose modified code view content
The intended scenario when using the code view is the following:

1) click on code view button to use code view
2) make changes
3) click on code view button to get back to wysiwyg view
4) save from the wysiwyg view

If the 3rd step was not done:

- for the inline editor, we lose the changes that have been done in
  code view,
- for the iframe editor, we lose the entirety of the content.

At one time the user was forced to go back to wysiwyg before being able
to save, but this have been removed hence the present usability issue.

With this fix, when the editor content is saved, if the user is in code
view he is automatically set back to wysiwyg view.

fixes #14648
closes #14475
opw-678677
opw-693052
2017-01-09 16:04:42 +01:00
Goffin Simon 0b2bb25084 [FIX] web_kanban: disable_multiple_selection in kanban creation
Fine tuning of this commit: 47e7f74022
Now when creating a record from kanban view by clicking on "+" button,
the stage_id is kept.

opw:703281
2017-01-09 15:22:41 +01:00
Nicolas Lempereur d40edd7052 [FIX] web: wraparound no create editable list
In e0c4ec54ca a change was done to improve the behavior in some
editable list instances, but this introduced a small issue for
list with line creation disabled.

With this change, doing tab or enter at last line should keep the
previous behavior of wrapping around and not creating a new line.

opw-703748
2017-01-09 15:03:29 +01:00
Pierre Masereel 9f94dbdba3 [FIX] account: ir.mode.access on products
When the 'Invoicing' or 'Accounting' module is installed without the
module 'Sales', only the admin user can create products in the database.

The expected behavior is that any 'Accounting Adviser' should be able to
manage some products in Odoo.

To allow 'Accounting Advisers' to manage products, we add them the CRUD
rights on 'product.product', 'product.template' and
'product.price.history'

opw-703610
2017-01-09 14:38:23 +01:00
Goffin Simon 47e7f74022 [FIX] web_kanban: column_add_record with required field
When a quality.alert was added from the kanban view, a traceback was raised
due to a coding error. In the fail function, the event is the second parameter.

opw:703281
2017-01-09 14:13:23 +01:00
Goffin Simon 5335f8c516 [FIX] sale: _get_tax_amount_by_group
When computing the amount tax by group, the taxes which affect base of
subsequent taxes must be taken into account.

opw:703524
2017-01-09 14:03:40 +01:00
Odoo Translation Bot b5381e8537 [I18N] Update translation terms from Transifex 2017-01-09 13:18:30 +01:00
Odoo Translation Bot 5f6e3f4686 [I18N] Update translation terms from Transifex 2017-01-09 12:00:30 +01:00