Commit Graph
102197 Commits
Author SHA1 Message Date
Joren Van Onder 59867e55df [IMP] point_of_sale: rename Fiscal Position frontend button to Tax
Fiscal position might be a good name in the backend, but it's confusing
for POS users.

With permission from @mart-e.
2015-10-09 10:29:42 +02:00
Nicolas Martinelli fa8a83a9d7 Revert "[REM] sale, purchase: useless groups"
This reverts commit 9d56450d34.

Enterprise makes use of these views. Anyway, views should not be removed
in stable.
2015-10-09 10:26:35 +02:00
Fabrice Henrion 95c6d67815 [FIX] typos and grammar 2015-10-09 09:48:24 +02:00
Joren Van Onder 617ba72a9d [IMP] point_of_sale: add remote debugging capabilities to the posbox
Sometimes it's useful to ssh into a posbox to quickly troubleshoot an
issue. Talking customers through port forwarding is very difficult
however. We use ngrok to solve this issue.

This implements an interface that allows a user to enter an ngrok
authentication token. After this, ngrok can be started and we should be
able to remotely connect.

Note that ngrok does NOT run by default on the posbox. It can only be
started manually by the user.
2015-10-09 09:38:09 +02:00
Joren Van Onder 3726612735 [FIX] point_of_sale: rm with -f does not return non-zero 2015-10-09 09:38:09 +02:00
Joren Van Onder b25af944a1 [FIX] point_of_sale: remove raspi-config message on posbox
Every time the posbox boots it would say something like:

This raspberry pi is not configured, please run raspi-config

Which is a leftover from the original raspbian image. Raspi-config is
removed on the posbox because we don't need it.
2015-10-09 09:38:09 +02:00
Joren Van Onder 546a1d4a32 [IMP] point_of_sale: support Wi-Fi on the posbox
This allows people to connect the posbox to networks using a wireless
network adapter.

When plugging in a USB Wi-Fi adapter and no network cable, the posbox
will boot and host its own Access Point called "Posbox". Users can
connect their device to this network and can then connect to the posbox
the usual way.

An interface for has been provided that also allows users to instruct
the posbox to connect to a different Wi-Fi network. This is useful when
the client is not running Odoo locally.

It is also possible to make this configuration persistent. With a
persistent Wi-Fi network configuration, the posbox will always try to
connect to the specified network after a reboot.

Attempts have been made to make the Wi-Fi connection as robust as
possible. Upon connection loss, the posbox will automatically attempt to
reconnect.
2015-10-09 09:38:09 +02:00
Alexandre Fayolle a0a4ec6374 [FIX] hr: fix hr.department name_get
hr.department name_get would crash when called with a single id.

Closes #8459
2015-10-09 09:29:38 +02:00
Nicolas Martinelli b8d2a0afba [IMP] purchase: add PO line to invoice
Some usability improvements. A field "Purchase Order" is added on the
invoice line, so it is much easier to make the link between the invoice
line and the PO.

On the other hand, the "Purchase Order" field which was used for
encoding help is kept empty since it is not meaningful.
2015-10-09 09:08:24 +02:00
Nicolas Martinelli 47c6e9f2e3 [FIX] account: properly clean ir.values
If the default_sale_tax_id or default_purchase_tax_id is removed from
the settings, the ir.values must be updated accordingly (i.e. set to
False). Otherwise, the value will come back when the page is reloaded.
2015-10-09 09:08:24 +02:00
Nicolas Martinelli 9d56450d34 [REM] sale, purchase: useless groups
Remove useless groups group_analytic_account_for_purchases and
group_analytic_account_for_sales.
2015-10-09 09:08:24 +02:00
Martin Trigaux ff02b25b6e Revert "[IMP] base: avoid useless recomputation of "share" column on res.users"
This reverts commit 85f6b7c02c.

This commits prevents creating a new database
2015-10-09 09:06:14 +02:00
Nicolas Lempereur 8acd1c40fe [FIX] web_editor: alt+tab in table and tab on collapse
When using the tab key on non text node range, it could fail in some
given case.

Also when removing the last element of the table row, a correction was done in
d33086c03f but if there was no element before the table (eg. the editor
is empty) an error could occur.
2015-10-09 08:43:49 +02:00
Nicolas Lempereur 8c3b4b80c6 [FIX] web_editor: null range and remember_selection
Tests for null range were not done in #8845, so in given case (where the
focus is not in the editor) we could get an issue.

The code for remembering the selection when clicking the editor
was made useful in d33086c03f, but there was an edge case when
the editor itself was in a modal: then the selection would be lost.

This commit change the code as following:

1) restore the selected range if:

- the current selected range is not in the editable of the active editor
- there is a corresponding saved selected range or we are in an embeded
  editor (and not in air mode as when editing the website)

2) save the selected range if:

- we don't restore the selection,
- the current selected range is in the active editor editable area
2015-10-09 08:43:43 +02:00
Markus Mattes e80e1e1c28 [FIX] web_editor: range is null if focus outside of editor
The range can be null if the focus is not in the editor at serveral
places.

closes #8845
2015-10-09 08:43:37 +02:00
Markus Mattes 0b18941e33 [IMP] web_editor: rename range variable rng to r
Put all rng to r to have the same concept in the whole file as well as
in the summernote codebase.

closes #8845
2015-10-09 08:43:31 +02:00
qdp-odoo ede596f2ec [FIX] stock_account: typos make buggy apps... 2015-10-08 16:54:16 +02:00
tv-openbig 1423cef6fc [IMP] l10n_de: better defaults values for digits and taxes of l10n_de
The current default values leads to standard proposals of 6 digits
account numbers and in many cases wrong default tax settings. The fix
prevents most users to apply manually the right settings of digits and
default taxes.

Closes #8837
2015-10-08 16:50:38 +02:00
tv-openbig 57bd14ab15 [CLA] signature for Thorsten Vocks 2015-10-08 16:50:26 +02:00
Christophe Simonis c82fe14c8c [IMP] mail: add missing index
Without this index, deletion of mail.message records takes too much time
2015-10-08 15:39:36 +02:00
Christophe Simonis 85f6b7c02c [IMP] base: avoid useless recomputation of "share" column on res.users 2015-10-08 15:39:36 +02:00
Richard deMeester 91aa012ed0 [ADD] l10n_au: Australian Accounting
Basic Australian Accounting Module.

Closes #8936
2015-10-08 15:34:28 +02:00
Fabien Pinckaers 1a58579540 [FIX] fix and improve res.config views and typos 2015-10-08 05:42:48 -07:00
Olivier Dony 72ac0a3864 [DOC] Update version number for doc builds 2015-10-08 14:39:15 +02:00
JoshuaJan 7aaffedd21 [FIX] crm: merge opportunities for stages in 'both' type
A crm.lead will either be a lead or an opportunity but a stage can also have
the 'both' type so it should be matched in the domain.

Closes #8434
2015-10-08 13:58:09 +02:00
Mack f8b56e4f40 [FIX] hr_payroll: total_wage return format
Field removed in 9.0 at 04cebbd (because useless). This avoids an error if read.
cf #8781
2015-10-08 12:20:29 +02:00
Xavier Morel 92d1ecdefb [IMP] doc: note about XMLRPC + Odoo Online
Also added some styling for guilabel as it was indistinguishable from
regular body text.
2015-10-08 12:03:01 +02:00
Christophe Combelles 6ceb0a2b1b [FIX] setup.py: pyparsing version inconsistent with requirements 2015-10-08 12:00:13 +02:00
qdp-odoo 1eee1cc8fc [FIX] sale, purchase: sale/purchase analysis fixed to display information when no rate is defined for the operation date (which happens easily with no demo data for example) 2015-10-08 11:29:02 +02:00
Goffin Simon eae28fbc0a [FIX] website_links: urlencode
The values inside the dictionary passed to urlencode from urllib must be in
'utf-8' and url_encode from werkzeug can treat unicode inside the dictionary.

opw:651471
2015-10-08 11:02:38 +02:00
Martin Geubelle 703b384a1e [FIX] web_planner: correct link in help 2015-10-08 10:57:22 +02:00
Odoo Translation Bot 8c4f17fd8b [I18N] Update translation terms from Transifex 2015-10-08 10:24:11 +02:00
qdp-odoo a56c0ccbe4 [FIX] purchase, stock_account: fixed use of fiscal position for anglo saxon accounting entries. PR related #8813 2015-10-08 08:50:22 +02:00
qdp-odoo 827da65435 [REF] delivery: removed dead code 2015-10-08 08:50:22 +02:00
qdp-odoo 2e799a1ca7 [IMP] l10n_generic_coa (~l10n_us): add stock accounts on the chart template definition 2015-10-08 08:50:21 +02:00
qdp-odoo 454d65e382 [FIX] sale: proper use of fiscal position when creating invoices from SO 2015-10-08 08:50:21 +02:00
Richard Mathot 711878c18c [FIX] hr,l10n_in_hr_payroll: ACL errors for users who are not HR Officer/Manager
These menus were visible to all employees, but the reports use
hr.salary.rule.category that is only available to HR Officers/Managers.

As these reports are not meant to be available for employees anyway, we
hide them.

(this bug has been spotted by the nightly crawler that clicks on every
menu as demo user)
2015-10-08 08:46:03 +02:00
Nicolas Martinelli 55fa0912fe [FIX] base: use datetime instead of date
The variable `date` is compared to the field `name` in the selection
query. `name` is filled in with datetime data. In particular, in the
module currency_rate_live, datetime.now() is used in the name. It is
necessary to make an appropriate comparison to make sure we select the
updated rate right away.
2015-10-07 18:48:12 +02:00
Raphael Collet 3571c0e4a4 [IMP] ir_translation: discard trivial translations (src=value) upon terms synchronization
This avoids keeping old values in automatically generated translations when
fixing the XML value to translate.
2015-10-07 16:51:36 +02:00
Jérome Maes 3e3ba3e2b7 [FIX] mail : controller chat_post force text to be plaintext
This controller is mainly used by im_livechat which don't send html message. It is more secure to force it in plain text. If anonoymous user write html tags, it will be escaped and sanitize.
2015-10-07 16:37:23 +02:00
Jérome Maes b1849f532e [FIX] mail : posting message with mention and clickable url
Posting message is done in 'html' since mention add html tag in body. Clickable url is done server to allow link in mail and chat message. Plaintext are transform into html, and html message are simply parsed to transform url into clickable link.
2015-10-07 16:37:11 +02:00
Jérome Maes e49847ed19 [FIX] purchase : bad call to message_post
The body of the mail.message was the list ids instead of a string. This is better now !
2015-10-07 16:37:03 +02:00
Jérome Maes c11ec38c7b [FIX] mail : allow employee to create private channel
When creating channel, the creator partner should be added as member with  (and not ) to respect access right.
2015-10-07 16:36:52 +02:00
Denis Ledoux 422f3b5d8a [FIX] sale: prevent the change of product of a SO line when there are procurements
When adding a line to a confirmed sale order,
the procurements are automatically created, with
this product.

Therefore, the product of the line should no longer be changed,
as otherwise, the product on the procurement would no longer
be the same product than on the sale order line.

To be able to change the product of a line on a
confirmed sale order, you must therefore first
delete all procurements.
2015-10-07 16:30:18 +02:00
Jesús Alan Ramos Rodríguez 7e3c3853e0 [CLA] corportate signature for Jarsa 2015-10-07 15:56:06 +02:00
Denis Ledoux a5e737f79c [FIX] sale: add lines on a confirmed sale order.
When using the editable list on the sale order form,
it was not possible to add a new line on a confirmed sale order,
while it should
(when `Allow to edit sales order` is chosen in the Sales settings).

The reason was that the fields `tax_id` and `product_id` were
set as readonly when the SO state was not draft.

When using the popup/dialog view, it worked by luck, because
the line `state`, which is a stored related field to the sale order state,
was not correctly computed, and was seen as `draft`, while it should
actually be `sale`, for a confirmed sale order.

We change the readonly condition of these fields,
which is now based on the fact wether or not
the line is already invoiced or not, which makes
more sense.

opw-651573
2015-10-07 15:31:05 +02:00
Aaron Bohy 4f9c9adf37 [FIX] mail: chatter: various fixes
- Add recipients as followers, and automatically refresh the follower's list
  (before this rev., one needed to reload the record to see the followes' list
  updated)
- Don't display needactions on chatter's messages
- Simplify buttons of suggested partner's dialog, as it should only offer two
  possibilities: Save or Cancel
- Replace unnecessary t-raw's by t-esc's
2015-10-07 15:09:33 +02:00
zbychu555 6682bde8a2 [FIX] doc: for Custom Widgets tutorial 2015-10-07 14:58:00 +02:00
Joren Van Onder f008240411 [FIX] hw_escpos: certain Epson printers do not identify as a printer
We search for USB devices that identify as a printer through their
DeviceClass or one of their InterfaceClasses. The issue is a lot of
printers use vendor-specific Device/InterfaceClasses.

Apparently the Epson TM-T88IV is one of those devices. So in order to
work around this, we now first look for a USB device that identifies as
a printer. If those do not exist, we pick the first Epson device, if
those do not exist we pick the first Star device.

Perhaps we should instead start using some kind of probe-based approach
to identify ESC/POS compatible devices.
2015-10-07 13:03:46 +02:00
Richard Mathot 85be3dc3ec [REM] *: get rid of modelines 2015-10-07 12:55:01 +02:00