Commit Graph
99095 Commits
Author SHA1 Message Date
Raphael Collet 528a3204f1 [IMP] base: add translations when creating a record with lang != 'en_US' 2015-10-26 17:34:34 +01:00
Raphael Collet e039dc6a0b [FIX] test_impex: fix tests, do not create languages but activate them 2015-10-26 17:34:34 +01:00
Raphael Collet 8eedea6093 [IMP] base: add a constraint on languages to keep at least one active 2015-10-26 17:34:34 +01:00
Raphael Collet 8ccc8ec63c [FIX] base: when creating a database, use option 'load_language' or en_US
Make the database manager use `config['load_language']` instead of
`config['lang']`, just like the CLI option `--load-language`.  If no language
is given, install `en_US` by default.
2015-10-26 17:34:34 +01:00
Raphael Collet f25e859a22 [IMP] base: remove hard-coded list of languages, read them from database or csv
Also add helper methods on `res.lang` to retrieve the list of installed
languages and the list of available languages.
2015-10-26 17:34:34 +01:00
Raphael Collet 5aa459a18e [IMP] base: load all languages in database, only the active ones are "installed" 2015-10-26 17:34:34 +01:00
Srushti Patel 8913853377 [MIG] utm:Migrated into new api. 2015-10-26 14:40:02 +01:00
Srushti Patel 2a13a6358a [ADD,MOVE] utm:Restructure file into new api. 2015-10-26 14:40:02 +01:00
qdp-odoo e217663023 [FIX] stock_account: purchase_line_id is defined in purchase module only, besides with that versoin it will also work for returns of returns 2015-10-21 21:03:44 +02:00
qdp-odoo 1df16a189e [FIX] stock_account: supplier return in anglo saxon for avg products - use purchase price, not the cost of quant that may be different if the availability is forced for example 2015-10-21 18:07:48 +02:00
qdp-odoo 63e72649da Merge branch '9.0' into master up to revision 57d0903154 2015-10-21 16:55:40 +02:00
qdp-odoo 82283e4954 [IMP] stock_account: stock journal entries for supplier returns of products in avg costing methode in anglosaxon. 2015-10-21 16:46:22 +02:00
qdp-odoo f364213005 [FIX] stock_account: vendor refunds lines' default account should be the stock_input in anglo saxon mode 2015-10-21 16:46:22 +02:00
qdp-odoo 0a4fa754f2 [FIX] stock_account: making a refund from an invoice in anglo saxon mode now preserves the account on lines 2015-10-21 16:46:21 +02:00
qdp-odoo 1be45e56cc [IMP] purchase, stock_account: No stock valuation for consumable products (which mean also no difference in anglo saxon mode for them) 2015-10-21 16:46:21 +02:00
qdp-odoo 8a9ce7505e [IMP] account: default order of the journals in the accounting dashboard should be sale,purchase,bank,cash 2015-10-21 16:46:21 +02:00
qdp-odoo 57d0903154 [FIX] stock_account: counterpart account for standard price adjustment is now expense instead of stock_input or stock_output. 2015-10-21 16:23:28 +02:00
qdp-odoo 4cae9da141 [FIX] stock_account: do_change_standard_price() function (button to manually update the standard price of a product in average/standard price) fixed (was simply crashing). 2015-10-21 16:23:28 +02:00
Nicolas Martinelli 93c85c26a3 [FIX] sale, website_quote: Terms and Conditions
When website_quote is installed, the Terms and Conditions of the quote
template should replace the Terms and Conditions of the company.
However, if the T&C of the quote are not filled, they will be kept
empty. This fix uses the T&C of the company as a backup.

This fix also set the TéC in the lang of the partner.

opw-652390
2015-10-21 14:18:18 +02:00
Goffin Simon 01d121a90a [FIX] account: amount in payments_widget
The amount to show in payments_widget must be the opposite of amount_currency like
in the else condition:
    amount_to_show = payment.company_id.currency_id.compute(-amount, self.currency_id)

opw:652478
2015-10-21 13:27:08 +02:00
Richard Mathot 1641f7ec19 [FIX] stock,website_sale: add missing shipping provider Temando to config 2015-10-21 11:42:22 +02:00
Richard Mathot 2badc0f856 [REV] edd388ffe5.
Should go to master, not to 9.0
2015-10-21 11:39:31 +02:00
Richard Mathot edd388ffe5 [FIX] stock,website_sale: add missing shipping provider Temando to config 2015-10-21 10:59:29 +02:00
Martin Trigaux ab968e7430 [FIX] mail: missing space in help message 2015-10-21 10:43:31 +02:00
Martin Trigaux e3c59e4945 [FIX] mail: missing space in help message 2015-10-21 10:42:34 +02:00
Richard Mathot 09f8216314 [IMP] delivery,procurement,stock: terms disambiguation
Avoid confusion among Carriers/Delivery Methods/Delivery Types
2015-10-21 09:23:07 +02:00
Aaron Bohy fe2c1020d1 [FIX] mail: chatter: undefined context for internal notes
Commit 4f9c9ad adds the context to the RPC call of 'message_post', but the
context was only defined for messages sent, and not for internal notes logged.
This causes a crash when logging a note on a calendar event as its method
'message_post' makes the assumption that it always exists, and tries to access
one of its keys.

opw-652470
Closes #9164
2015-10-21 08:55:31 +02:00
Xavier Morel a43b220b33 [FIX] make AccountingTestCase extend HttpCase
Fixes/hides a deadlock when running test_sale_order with either a single
database or a db_filter making a single database visible: the test
causes a report to be printed, which invokes wkhtmltopdf, which tries to
fetch assets using the registry which is being loaded. The asset request
thus waits on a lock which is held by the test which waits on the asset,
deadlocking the whole thing.

Using HttpCase means we're using the test_cr or something and bypassing
the deadlock, instead the asset requests just 404 as they do when using
the nodb routing.
2015-10-20 17:38:53 +02:00
Simon Lejeune 108decbd99 [FIX] ir_qweb: call clean_attachment at the end of save_attachment
.. instead of at the start. The reason is: if any rollback have to occur
during the call to `save_attachments`, we want to avoid rollbacking an
unlink on the ir.attachment table (because we cannot rollback the
removal of a file in the filestore).

This issue is especially annoying when we generate a bundle whose
ir.attachment record has the same hash than the invalidated one (for
instance when one of the source files in the bundle has been touched
but not modified) and of of these rollback occurs: the bundle has been
deleted on the filestore and cannot be served.
2015-10-20 15:38:24 +02:00
Simon Lejeune c0b2ef2b74 [ADD] test_assetsbundle: module to test ir_qweb's bundles 2015-10-20 15:38:24 +02:00
Simon Lejeune 7f4306ec15 [FIX] ir_qweb: css pagination: stylesheets order
The order of the stylesheet's declarations in the html matters. Make sure
that the first part of the css is declared first (*.0.css).
2015-10-20 15:38:24 +02:00
Simon Lejeune 7b67b555f6 [FIX] ir_qweb: don't save buggy stylesheet assets
If the compilation of a stylesheet asset produces any error, don't save
it and instead output it debug-mode like.
2015-10-20 15:38:23 +02:00
Simon Lejeune 17ebc87f76 [FIX] ir_qweb: css pagination: max css rules
Else, a css file with three rules produces two files when the max css
rules is set to three.

see rev 37959d45f3
2015-10-20 15:38:23 +02:00
Simon Lejeune 795715d186 [REF] ir_qweb: add max_css_rules to AssetsBundle init signature
This way it is overridable by unit tests.
2015-10-20 15:38:23 +02:00
Simon Lejeune 1e27b89be6 [REF] ir_qweb: remove debug in AssetsBundle init signature
It's not used
2015-10-20 15:38:23 +02:00
Simon Lejeune 6a452b5f14 [FIX] ir_qweb: useless get_attachment call in save_attachment
as save_attachment is only callded by js and css methods after an
empty return result of get_attachment, directly calling again
get_attachment is superfluous
2015-10-20 15:38:23 +02:00
Simon Lejeune 152f9ca0fc [REF] ir_qweb: clean_attachments
* use format to avoid escaping the %
* add a docstring to explain what's going on
2015-10-20 15:38:15 +02:00
Simon Lejeune fa5f86f336 [FIX] ir_qweb: useless test in js bundle generation
If one of the javascript files of the bundle has been modified since the
bundle generation, we are sure that get_attachments will return an empty
list because it searches with the version of the bundle which takes into
account the last modification of any of the bundle's content.

Also, this check is not present in the css bundle generation.
2015-10-20 15:37:28 +02:00
Arthur Maniet 2ebfffd28f [REM] IBAN: constraint that requires a BIC for an IBAN account
It is not always possible to possess both the account number and the BIC at the
time of creation. Eg. bank statement import where few file formats provide BIC
2015-10-20 15:29:53 +02:00
Goffin Simon c0c64a7fe5 [FIX] purchase: Scheduled Date in PO
When setting the quantity in a PO line, the field "date_planned" is changed
by onchange_product_id and this field is equal to:
-the date of today + seller.delay if there is at least one provider for the product
-the date of today if there is no provider set for the product
-the date manually set if there is no provider and already a scheduled_date set

To keep the similar behaviour to 8.0 for product without provider.

opw:652394
2015-10-20 14:36:57 +02:00
Joren Van Onder 0594a63066 [IMP] pos_restaurant: implement order transferring to different table
Provides a 'Transfer' button in the Point of Sale that allows a user to
select a table to which the current order will be transferred.
2015-10-20 13:06:29 +02:00
Christophe Simonis 8b02879ff5 [FIX] purchase: enforce company dependent fields
During new-api rewrite, some property fields wrongly lost their
company_dependent flag.
Despite it need a migration script to create the missing properties,
not updating the module does not lead to crashes.
2015-10-20 11:43:57 +02:00
qdp-odoo 3e0d72fa56 [FIX] l10n_generic_coa: added back the demo data for accounting 2015-10-20 11:15:06 +02:00
Nicolas Lempereur 91f3e5af63 [FIX] point_of_sale: bank statement currency field renamed
In the refactoring of v9.0 accounting module (c04065a) the currency
field on account.bank.statement has been renamed currency_id.

sentry-32303830312e3239303433353734
2015-10-20 10:05:16 +02:00
Joren Van Onder 21caa69519 [IMP] pos_restaurant: remove unused variable 2015-10-20 09:30:52 +02:00
Martin Trigaux eca1983aef [FIX] account: analytic entries onchange
Broken on_change, comparing id and recordset

Fixes #9144
2015-10-20 08:53:40 +02:00
Martin Trigaux f75dcfe4b0 [FIX] crm: do not mark as won a lead
A lead can be marked as won, it must be converted to an opportunity first.
Previous flow was problematic as we could still convert to opportunity a won
lead (which does not work and does not make much sense).
A lead can only be lost or converted.

Fixes #9076
2015-10-19 16:04:06 +02:00
Denis Ledoux 4315779e55 [FIX] account: invoice in foreign currency
When creating an invoice in a foreign currency,
and adding a line with a product,
the `onchange` failed,
due to the fact the field `date_invoice`
is not on the invoice line, but on the invoice.
2015-10-19 15:45:40 +02:00
Joren Van Onder 0cbf0af783 [FIX] point_of_sale: display POS related info in contact form again
In 6b55539dc7 the "container_row_stock"
group in stock.view_partner_stock_form was hidden using
groups="base.group_no_one". The issue is that the POS used a group
inside of this group that it modified to display the associated
barcode of the partner and the loyalty points of the partner. So
although the code still worked, the actual information was invisible.

To fix it we inherit the view directly from where it is created, namely
base.view_partner_form which is a bit nicer than inheriting from an
already inherited view.
2015-10-19 13:46:21 +02:00
Martin Trigaux bc0986f53b [FIX] hr_timesheet_sheet: week number according to ISO 8601
The ISO weekday should be computed with isocalendar dateformat
The exact directive is '%V' according to GNU/Linux system strftime
http://man7.org/linux/man-pages/man3/strftime.3.html

However '%V' is not documented in official cross-platform syntax supported on
all python built, according to standardized by ANSI C formats
https://docs.python.org/2.7/library/datetime.html#strftime-and-strptime-behavior

as '%V' may not be supported on other platforms such as MS Windows, use the
cross-platform 'isoformat()' method.

Note that according to ISO 8601, the start and end of date may belong to the
previous or next year.
e.g.
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').isocalendar()
(2004, 53, 6)
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').strftime('%W')
'00'

Fixes #8927
2015-10-19 12:25:39 +02:00