Commit Graph
103231 Commits
Author SHA1 Message Date
Joren Van Onder fd43faac16 [IMP] point_of_sale: redirect POSBox image init script output to file
Useful when updates to the initialization scripts don't go as
planned. This leaves something to inspect.

The initialization script already automatically stops (because of 'set
-o errexit') but it was a bit tricky to actually see what went wrong
because scrollback in QEMU isn't great.
2016-04-14 11:24:48 +02:00
Joren Van Onder 5af1c085bf [IMP] point_of_sale: migrate POSBox to Raspbian Jessie
The main reason for doing this is supporting the new Raspberry Pi 3. No
functional changes where made.

For Raspbian Wheezy we used to download the full image and strip it as
best we could to obtain a reasonable image size for people to
download. Since Raspbian Jessie the Raspberry Pi Foundation has started
releasing an official minimal image (Raspbian Jessie Lite) which we will
use from now on to build our image. One downside of this is that the
minimal image is a 1.3 GiB image which is too small for our
purposes so it has to be resized.

Because Raspbian Jessie migrated to systemd we cannot rely on
/etc/init.d/rcS to set up the ramdisks anymore. Jessie provides a
compatibility layer so old SysVinit scripts still work but rcS does not
block like it does in a SysVinit system, it is run in parallel with
other startup services. In our case this is a bad thing as setting up
the ramdisks has to be done before any other services are started. To
accomplish this the rcS hack has been migrated to a systemd service
running before basic.target and with DefaultDependencies=no. This has a
similar effect as the rcS hack because normal systemd services (with
DefaultDependencies=yes) all require basic.target by default.
2016-04-14 11:24:48 +02:00
fka-odoo 9254c63ab4 [REM] hr_contract : remove tests because they are simply useless
The tests constits of creating an employee and give him a contract.
These are not smart tests. This module uses many base action rule,
but they are already tested in base_action_rule module, so removing
the tests seems better.
2016-04-14 10:47:39 +02:00
fka-odoo 095d0174fd [MIG] hr_contract : migrate the code to new api 2016-04-14 10:47:39 +02:00
fka-odoo 2196b511ee [MOV] hr_contract: organised files in data, models and views directory 2016-04-14 10:47:38 +02:00
Nicolas Martinelli 3705a868d1 [FIX] web: consistency between list and export
Following commit 8276fb585, the data exported should match the data
displayed on the list view. Therefore, we need to make sure that the
context used match the context of the list view.

When a filter is applied in the list view, the context is evaluated
thanks to pyeval (see the call to `/web/dataset/search_read`). The fix
is to evaluate the context in a similar way.

opw-674473
2016-04-14 10:44:25 +02:00
Olivier Dony ff0fd50cdf [MERGE] Forward-port saas-6 up to 2d4deca055
- Fix for status widget (b25c054c93) moved
  to appropriate file: addons/web/static/src/js/views/form_widgets.js
  even though the problem is less severe in 9.0 (no crash but triggers
  form save, which is unnecessary)

- Fix for website_event_sale ignored (880e951f34)
  because the problem does not exist anymore in 9.0, probably due to
  refactoring 66871ee65b
2016-04-14 10:39:09 +02:00
Goffin Simon 6668794a8e [FIX] account: create_analytic_lines
When deleting the analytic account of an account move line(aml),
the analytic lines linked to this aml must be unlinked even if
the aml is not linked to another account analytic.

Used case:

Once a analytic account is removed from a journal line, the analytic line
created for this journal line has to be removed from this analytic account.
Inspired from 8.0

opw:673803
2016-04-14 10:28:37 +02:00
Olivier Dony 2d4deca055 [MERGE] Forward-port 8.0 up to 46c5f93b6c 2016-04-13 17:04:49 +02:00
Nicolas Martinelli d0029f11ce [IMP] account: short code always required
The short code is always required for the following reasons:
- The auto-generated code is useless for search purpose because user
  cannot choose it (BNK or CSH is maybe not meaningful for him)
- If the system cannot generate an unused journal code, the user is
  stuck since the field is read-only in the interface.

However, the code can still be auto-generated, although it is required
in the interface. This is to avoid breaking modules that would expect
this feature. At the same time, the logic has been improved to reduce
the number of search requests.

opw-674485
2016-04-13 16:52:50 +02:00
Nicolas Lempereur 6b76b08748 [FIX] web: don't freeze on form warning escape
When the warning on form view is closed by cancel or OK button, all is
well. But if the modal is closed by any other way the def will stay pending
blocking next operations.

This commit set the deferred as dejected if not resolved when the modale
is closed.

closes #11688
opw-671371
2016-04-13 16:19:33 +02:00
qdp-odoo deebe673ba [FIX] account: correctly set default taxes when installing a chart account. Courtesy of pedrobaeza. PR #11498 2016-04-13 16:05:11 +02:00
qdp-odoo 8740d7d915 [FIX] account: bank & cash prefixes not correctly passed. Courtesy of pedrobaeza. PR #11492 2016-04-13 16:05:11 +02:00
Olivier Dony 46c5f93b6c [FIX] website_sale: verify match between TX and SO amount
When processing a payment transaction, double-check the
match between the amount of the transaction and the
amount of the SO, to be sure that we won't be validating
a SO that has been modified since the payment.

Such cases have to be double-checked manually.

Also add a bit of extra logging to make auditing ecommerce
transactions easier.
2016-04-13 15:34:34 +02:00
Olivier Dony ffdfadfc91 [FIX] paypal: no spurious warning about IPN version
In addition to being mostly useless because Paypal's API
changes are supposed to be backwards-compatible, this
warning was using inconsistent version numbers.

Switched to a simple INFO line with IPN version.
2016-04-13 15:34:34 +02:00
qsm-odoo c2ca69dd50 [DEL] web_view_editor
Die web_view_editor! May you never come back from the dead again!
2016-04-13 14:53:56 +02:00
Richard Mathot aacb6f921f [FIX] sale: make action_confirm callable from XML-RPC 2016-04-13 13:48:39 +02:00
qsm-odoo 8703d8c11d [FIX] report: missing mt/mb definition
/!\ This commit must not be forward-ported on saas-10 (the file that
is modified here does not exist anymore anyway).

Since the website/web_editor split, the mt/mb definitions were not
included in reports anymore. Those were not the only rules that
were forgotten.
As it would be tricky to add the whole files where those rules are
defined now in the assets of stables branches, this commit only
restores the missing css rules by adding them in the report.css file.

Note: after the assets refactoring that has been done in saas-10, this
problem will no longer appear.
2016-04-13 13:13:07 +02:00
qsm-odoo b03921cbca [FIX] report: missing mt/mb (and others) definitions
Since the website/web_editor split, the mt/mb definitions were not
included in reports anymore. Those were not the only rules that
were forgotten. In 9.0, as a fix, those rules were added back in the
report.css file.
As the assets have been refactored in saas-10, the fix here is to
link the missing file (unique in saas-10) in the report assets.
2016-04-13 12:57:26 +02:00
Nicolas Martinelli 5c052451af [FIX] crm: traceback due to typo
opw-674520
2016-04-13 12:37:43 +02:00
Ravi Gohil bd3531dd29 [REF] hr : converted yml test cases into python unittest. 2016-04-13 12:28:35 +02:00
Ravi Gohil 44c62e1b7f [MIGR] hr : migrate to new api
- Rewrite the code to new api without changes
business behavior
- Remove old v7 backward compatibility method
- Regroup view definitions in the same xml file
- Use read_group for computed fields
2016-04-13 12:28:34 +02:00
Ravi Gohil c232e3cbcb [IMP] hr : remove 'complete_name' field. Use 'display_name' instead. 2016-04-13 12:28:34 +02:00
Jérome Maes d36ce33877 [IMP] hr: hr.department kanban view should be with others, rather than in hr_dashboard.xml 2016-04-13 12:28:34 +02:00
Ravi Gohil c30fd5cac7 [MOV] hr: reorganise module directory 2016-04-13 12:28:34 +02:00
Jérome Maes 2857b42f71 [IMP] hr : remove unused action window 2016-04-13 12:28:34 +02:00
Jérome Maes 68804962d4 [MIG] portal_sale : migrate code to new API 2016-04-13 11:57:28 +02:00
Jérome Maes 3317535ca5 [MOV] portal_sale : split file per models 2016-04-13 11:32:58 +02:00
Gaurav Panchal 5809e405ce [MOV] portal_sale : re-organized directory structure 2016-04-13 11:30:00 +02:00
Keyur Gajjar 8250762fe8 [MIG] website_mail_channel: code migration to new api.
No functional changes, only rewrite the code with
the api.v8 which more pythonic and smooth.
2016-04-13 11:21:06 +02:00
Keyur Gajjar 4da71cf5f5 [MOVE] website_mail_channel: file renaming according to new api 2016-04-13 11:21:06 +02:00
Jérome Maes fb88cff1bd [IMP] website_mail : remove 'website_message_ids' from mail.thread
This inheritance wasn't working till the commit of rco, modifying
models inheritance.
Anyway, `website_message_ids` field is already defined on several
models (product, slide, forum questions, blog post, ...), and each
of them have a different domain attribute.
So making the mail.thread mixin providing this field is not so
interessting since it will be overrided for specific behavior.
We remove this field as it can't be usefull and generic.
2016-04-13 11:21:05 +02:00
Keyur Gajjar 30f48eb6b6 [MIG] website_mail: code migration to new api
No functional changes, only rewrite the code with
the api.v8 which more pythonic and smooth.
2016-04-13 11:20:53 +02:00
Keyur Gajjar d672d8aa86 [MOVE] website_mail: file renaming according to new api 2016-04-13 11:20:05 +02:00
Goffin Simon f8d3882173 [FIX] website_quote: _onchange_product_uom
on_change_product_id and product_uom_change have been removed in the
sale.quote.option views.
2016-04-13 10:09:26 +02:00
Goffin Simon 383074881d [FIX] purchase: Incoming Shipments to Invoice filter
The invoicing method to create an invoice on incoming shipment has
been removed in 9.0

opw:674323
2016-04-13 10:03:13 +02:00
Goffin Simon 16fafc1287 [FIX] purchase: Incoming Shipments to Invoice filter
The invoicing method to create an invoice on incoming shipment has
been removed in 9.0

opw:674323
2016-04-13 09:50:14 +02:00
Goffin Simon 48e79865aa [FIX] product: sale price in report productlabel
The price displayed in product label report musr be the sale price

opw:673086
2016-04-13 09:38:41 +02:00
Joren Van Onder 534ff9dd8c [FIX] point_of_sale: hide non-active pos.configs from dashboard
The introduction of the new pos.config dashboard at
48ab50ed0d does not filter non-active
pos.configs. There are no constraints against opening sessions on
inactive or deprecated pos.configs so after deprecating/inactivating
users could still open new sessions through the dashboard.

opw-673020
2016-04-13 09:16:04 +02:00
Nicolas Martinelli 10e1d45db9 [FIX] crm: date_closed
When a lead is set to 'Won', the date_closed is defined. However, the
user might have clicked by mistake, and he might want to change the
state back. We need to take this into account, otherwise the lead is
considered as closed although it is not.

opw-674226
2016-04-12 18:11:04 +02:00
Dhaval Panchal a04bda67e8 [IMP] sale: Pay option appears when the document is a confirmed SO. 2016-04-12 17:21:15 +02:00
Srushti Patel f303fab21d [IMP] account: Move the Invoice report in the invoicing app.
-because If a user wants to have a report of all its invoices, he/she has to install the full accounting app.
-Add access rights for Reports.
2016-04-12 16:47:10 +02:00
Olivier Dony 30febb1c97 [IMP] modules loading: pipe down INFO while loading
a7c1f37197 was a bit on the noisy side
2016-04-12 16:27:15 +02:00
Goffin Simon 607ad5855e [FIX] stock: raise UserError when two inventory adjustments are in progress
When two inventory adjustments are in progress state with a common product,
raise a UserError instead of a Warning.

opw:673686
2016-04-12 15:39:42 +02:00
Jérome Maes 0a911b001a [FIX] website_sale : portal can not access pricelist
It seems that a sudo() has been forgotten during migration https://github.com/odoo/odoo/commit/788c1334e2cbe26fa26d4c6d4974dc413dbff608#diff-cf00d16a9ce1440df9ec66a522633604R189
2016-04-12 15:29:06 +02:00
Jérome Maes 4a76713490 [FIX] website_quote : avoid UnboundLocalError
Introduced in 0ce6e1543a, if we don't use a token to see the quotation, it crashes.
2016-04-12 15:28:50 +02:00
Yenthe 1174cd3fd5 [FIX] doc: Improve english
Some rephrasing to slightly improve the docs.
Closes #11652
2016-04-12 13:05:29 +02:00
Joren Van Onder f40e9ecfc3 [FIX] point_of_sale: match payment to order amount when invoicing
The POS generates journal entries for both the amount of money the
customer pays and the amount of money the POS user returns to the
customer (the 'change'). Whether or not this is the correct thing to do
is up for debate, but we can't change that in stable anyway.

One of the main issues is that in 9.0 accounting will propose
unreconciled payments belonging to the customer on open, unpaid
invoices. This does not work well with the account entries generated by
the POS. Accounting will propose the amount the customer paid, without
taking into account the change.

Example: a customer buys $7 worth of products and pays with a $10
bill. The customer gets $3 change. The invoice will propose the $10
payment.

When you add that payment to the invoice a residual amount ($3 in the
example) will remain on the paymentline, complicating everything even
more.

Although we cannot change how the POS does accounting in a stable
release, we at least want people to be able to easily handle invoices
generated through the POS. To achieve that this patch will make the
backend match the payment to the total amount of the invoice removing
any potential change.

opw-671486
2016-04-12 12:39:01 +02:00
Christophe Simonis 9b5ba8b238 [MERGE] forward port of branch saas-10 up to 21c7ef8 2016-04-12 12:38:02 +02:00
Christophe Simonis 21c7ef8bf5 [MERGE] forward port of branch saas-9 up to eb44341 2016-04-12 11:56:44 +02:00