Fix incompatible pyscopg2 api from version 2.2 and 2.4. Fixes CR 1305
Normalize the strings the same way on both sides of que query
Do not crash another time when STOQLIB_DISABLE_CRASHREPORT is enabled
Cherry pick master's revision 5855 to log the message system.
We should allow 9 digits for invoice numbers
Workaround issue when printing with smart lists
Remove comment that no longer applies
Make sure there are no invalid invoice numbers before creating the
constraint
Make it possible to create lonely payments without a person set
Release 1.4
Pass LC_ALL instead of LC_MESSAGES to getlocale

For two reasons
* We pass LC_ALL to setlocale(), not LC_MESSAGES
* LC_MESSAGES is not available on all supported platforms
Add osutils.get_system_locale

Since the implementations are sufficiently different on platforms
we support.
Use it in the pluginmanager and crashreport as well.
Hide the welcome dialog

Hide the welcome dialog when webkit isn't available.
Also get the screen from the toplevel, instead of from the BasicDialog.
Workaround to avoid traceback when update a payment status using lazy search (Receivable and Payable apps). r=romaia
Allow renegotiate payments without client, and disable the 'Edit installments' menu when select a lonely or renegotiated payment. r=romaia
Correct Price/Quantity precision
If the coupon could not be opened, return None instead of letting it be returned.

If the coupon could not be opened, even if the user clicked on 'Cancel coupon'
it would return the coupon and try to confirm the sale, leading to some errors.
This revision fixes that issue. Fixes CR1300 too.
Do not crash when trying to connect to an installed db with an old stoq version

When a user tries to connect to an already installed stoq database, if he is
using an older version than the installed version, show an error message
instead of crashing.

r=romaia
Venda com cartão parcelado sem alterar o valor da parcela cria somente um pagamento. Fixes 5135
Fix issue when canceling pos confirm sale dialog