Commit Graph
106889 Commits
Author SHA1 Message Date
Odoo Translation Bot 854ab68902 [I18N] Update translation terms from Transifex 2017-01-08 04:43:31 +01:00
Christophe Simonis 98c71b23d3 [MERGE] forward port branch saas-11 up to 9073ecb6f5 2017-01-06 18:06:14 +01:00
Christophe Simonis 9073ecb6f5 [FIX] core: effectively warn on invalid custom views
Since new-api migration of `ir.ui.view`, the method that check views
raises exceptions instead of returning a boolean. Show them as warning.

Related to #14521
2017-01-06 17:55:04 +01:00
Christophe Simonis de6aaeb546 [MERGE] forward port branch 9.0 up to e0d33ce07d 2017-01-06 17:37:33 +01:00
Christophe Simonis e0d33ce07d [MERGE] forward port branch saas-6 up to 9ba3762a32 2017-01-06 17:29:42 +01:00
Christophe Simonis 9ba3762a32 [MERGE] forward port branch 8.0 up to 75692bc988 2017-01-06 17:27:06 +01:00
Christophe Simonis c382c8f2fa [IMP] core: module loading: less verbose logs
Only warn about non loaded declared models with a minimal logging level.
2017-01-06 17:11:30 +01:00
Nicolas Martinelli 100077f035 [FIX] payment_paypal: correctly parse payment_date
Paypal formats the payment date in this specific format:
`HH:MM:SS Mmm DD, YYYY PDT`.

Source: https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNandPDTVariables/

opw-693574
2017-01-06 14:27:17 +01:00
Nicolas Martinelli 756449cfe1 [FIX] payment_paypal: fields.Datetime
Obviously, it should be `fields.Datetime`, although it luckily works
with `fields.datetime.now()`.

opw-693574
2017-01-06 14:27:17 +01:00
Nicolas Lempereur 4cec6fa77e [FIX] point_of_sale,web: stupid amend before merge
Introduced by 07bf7bf4f3.
2017-01-06 14:24:59 +01:00
Nicolas Lempereur 07bf7bf4f3 [FIX] odoo-bin: server UTC timezone on windows
On UNIX, the timezone modules conversions can be reset by using
`time.tzset()`. On windows this is not available and the timezone (TZ)
environment variable must be set before the first import of time module.

If not, all datetime gotten in python without specifying UTC (such as
datetime.datetime.now) could be wrong.

This was fixed with 4a77c6a0 in 2013, but has come back since 389c2ba97b
imported pkg_resources (which do  a `time` module import) before that.

closes #14926
opw-693764
2017-01-06 14:19:09 +01:00
Nicolas Martinelli 56c798a323 [FIX] website_portal_sale: VAT check
- Create a SO for a customer (without VAT), validate the invoice
- Connected as the customer, go to 'my/account', and change any
  information (e.g. phone number).

You receive the error 'Changing VAT number is not allowed...'.

This is because `data.get('vat', partner.vat)` is `u''`, while
`partner.vat` is `False`.

opw-696962
2017-01-06 11:49:28 +01:00
Martin Trigaux b7bad9dbc4 [I18N] followup of 5284c43be5
Previous commit was cleaning the orphan and fuzzy translations of all main translations.
This commit does the same for all regional languages (that are not on Transifex).
To keep these files small, keep only the translated strings.
Fixes #14937
2017-01-06 10:40:39 +01:00
Jérome Maes de21eda9f4 [FIX] google_calendar: fix update events from googleCal due to migration 2017-01-06 09:02:26 +01:00
Nicolas Lempereur 678c42aeb0 [FIX] web: FieldCharDomain wrong count if other lang
The number of records selected by a FieldCharDomain was only computed
with the base language.

But when selecting the domain with a modal window, or when sending a
mass mailing restricted to a domain, the current user language is used.

With this commit, the number of records is computed with the current
user language.

opw-693836
2017-01-05 19:18:06 +01:00
Denis Ledoux c389a6576b [FIX] website_mass_mailing: typo in unsubscription confirmations and translatable
There was an obvious typo in these confirmations,
and they were not yet translatable.

opw-703745
2017-01-05 16:59:16 +01:00
Martin Trigaux 9eba141bba [FIX] point_of_sale: put order back to xml
Was removed at 467ba386 but need it in blackbox for many terms
The alternative is to add all the fields in export_for_printing but this patch,
even if less modular, is way smaller and safer.
2017-01-05 16:32:46 +01:00
Nicolas Martinelli 35b79e30b2 [FIX] web: select completion no result
When a search is performed and the completion feature is used (search on
a many2one field), clicking on a '(no result)' item causes a crash.

opw-703557
2017-01-05 13:45:06 +01:00
Goffin Simon 416892279d [FIX] account_asset: Wrong account set in Vendor Bill
This reverts commit 804ef6f.

1. Generating the vendor bill by adding the related Purchase Order:
in that case, it works well since the system has a first on-change on the product when selecting the asset type;
it sets the asset account in the expense account of the product which in turn is used as the vendor bill account.

2. Creating the vendor by adding manually the product which is an asset:
in that case it takes the wrong account since it used the depreciation account instead of the asset one.

But the labels cannot be changed because the case 1 works.

opw:702265
2017-01-05 13:21:51 +01:00
Goffin Simon bf89a58acd [FIX] l10n_es: Wrong user_type_id for 47... accounts
opw:696888
2017-01-05 13:01:11 +01:00
Nicolas Martinelli 5384c8c8e2 [FIX] account: planner link
The link to change the Terms and Conditions doesn't work.

opw-703525
2017-01-05 12:43:37 +01:00
Martin Trigaux 5284c43be5 [I18N] generate and clean orphan translations
Some languages were published on Transifex in v9 but no longer in v10.
These languages were still using the outdated .po files
In some of these po, there were some fuzzy translations that were incorrect
(e.g. 'POS Order %s' - 'Kassa ostud', missing '%s')
These were not erased as still using the old translations.
Regenerate a correct .po file based on the new .pot and remove fuzzy
translations.

Fixes similar issue than raised at #14937
2017-01-05 12:01:27 +01:00
Luc De Meyer 75692bc988 Update account_report_common.py (#14891)
[FIX] account: fixed onchange_chart_id that was failing on last and first day of the year.

Courtesy of Noviat
2017-01-05 10:25:39 +01:00
Christophe Simonis 799e7f7740 [FIX] core: leftover openerp use from last forward-port 2017-01-04 19:24:16 +01:00
Christophe Simonis 2217b37130 [MERGE] forward port branch saas-11 up to 573293a06d 2017-01-04 19:15:31 +01:00
Christophe Simonis 573293a06d [MERGE] forward port branch 9.0 up to cbff8629fa 2017-01-04 18:41:22 +01:00
Pierre Masereel ae2838521c [FIX] stock: onchange picking type use wrong variable
The onchange code calls the variable 'partner' before assignement,
this error comes from the migration in rev: https://github.com/odoo/odoo/commit/d45996c9

We fix it by calling the right 'self.partner_id' variable
2017-01-04 16:09:46 +01:00
Christophe Simonis cbff8629fa [IMP] core: allow declaration of end migration scripts
These `end` migration script will be executed when all modules have
been updated and models setup.

Also accelerate the search of migration scripts, speeding up registry
loading.
2017-01-04 15:49:02 +01:00
Odoo Translation Bot cc2af89454 [I188888888N] Update translation terms from Transifex 2017-01-04 14:54:07 +01:00
Denis Ledoux b201da493d [FIX] sale: Ukrainian translation instead of English (UK)
opw-702022
2017-01-04 14:31:55 +01:00
Nicolas Martinelli 56517a6ca9 [FIX] website_quote: invoice generation
To reproduce:
- Configure an external payment provider (e.g. Ingenico) with "Authorize
  & capture the amount, confirm the SO and auto-validate the invoice on
  acquirer confirmation"
- Create a quotation with a product linked to a subscription
- Send the link to the customer
- Click on "Accept & Pay", use the configured provider

The SO is confirmed, but the invoice is not generated.

By calling `action_confirm` in the callback of the transaction, we
validate the SO before `form_feedback` is called. Therefore, the method
`_confirm_so` will do nothing since the SO is not in state 'draft' or
'sent' anymore.

The solution is to manually call `_confirm_so`instead of
`action_confirm`. This is necessary to do it at this moment since we
might not go through `form_feedback` (e.g. if we pay thanks to wire
transfer).

opw-694273
2017-01-04 14:01:43 +01:00
Goffin Simon 0ef0e141c0 [FIX] web_graph: Adding to dashboard a customized view
When reading customized views from our dashbord in reporting,
the measures selected in the customized views were not taken into
account. It happened when the customized view was build from a report.

opw:698105
2017-01-04 10:28:33 +01:00
Goffin Simon da54837420 [FIX] hr_holidays: "Absent Today" filter for normal users
Normal users has the rights to use the "Absent Today" filter.

opw:703389
2017-01-04 09:50:11 +01:00
Nicolas Martinelli d619ad464f [FIX] sale_service: update SO lines
To reproduce:
- Create 2 products with 'Track Service' set as 'Create a task and track
  hours'.
- On a SO, add these 2 products and confirm (2 tasks will be created)
- Go to Timesheet > Activities, and create a line for Task 1. The
  delivered quantity of Product 1 in the SO should be modified
  accordingly.
- Change the activity line by setting 'Task 2' instead of 'Task 1'.

The delivered quantity of Product 2 is updated accordingly, but the
delivered quantity of Product 1 is unchanged.

This is a complement of commit 4e60d28d00.

opw-693520
opw-695087
2017-01-03 17:01:47 +01:00
Nicolas Lempereur bbc4137600 [FIX] calendar: partner filter for search more or created
When adding a partner "filter" to the calendar view, it only works if we
select directly the partner and not when we choose him via "search more"
or create him on the fly.

This commit uses the partner id directly which is available in the field
value in those three possible instances.

opw-702491
2017-01-03 16:57:20 +01:00
Philipp Hug 7cd2969b09 [FIX] sale_layout: correct the alignment of taxes
To do the same on the rapport as what was done at #14511
2017-01-03 16:01:50 +01:00
Philipp Hug 4ea61f6c54 [FIX] sale_layout: unify tax displayed field in report
Use the same logic to display taxes as in the default report:
use the tax description and fallback on the name

Already done in report_invoice_document and report_saleorder_document

Closes #14906
2017-01-03 15:57:29 +01:00
Martin Trigaux ec5d696cf7 [FIX] base: revert and improve 24aba601
It forced to select a coutnry before the state which is not very userfriendly.
Cf comments at #13657

Instead restrict only if the country if a country is selected.
Courtesy of Pedro M. Baeza, Tecnativa
For v10 this is a minimum change and a larger refactoring can be done in master.

This replaces and closes #14896
2017-01-03 15:27:39 +01:00
Odoo Translation Bot f911ec712e [I18N] Update translation terms from Transifex 2017-01-03 15:10:30 +01:00
balapal 5f68a17812 [FIX] base: change rounding of HUF currency
Set rounding to 1.00 as the smallest coin is 5Ft and the smaller unit is no longer in circulation.

Closes #14855
2017-01-03 14:40:06 +01:00
Christophe Simonis 1aad733dc4 [IMP] base_import_module: correct validation of custom views
Consider also imported and exported views when validating custom views.
2017-01-03 13:12:17 +01:00
Christophe Simonis fc91feda30 [IMP] core: more lenient check of custom views
By not marking invalid custom views as a failure, this allow database
migrations to not be considered failed for simple errors that can be
solved after migration.
2017-01-03 13:12:17 +01:00
Haresh Shyara c02b2ca7d1 [IMP] base_import: Improve import preview for related fields
normal mode: Importing only regular/basic fields from source file
advanced mode: Importing any related fields from source file(i.e. if detected pattern in header like '<relational_fieldname>/<fname>')

- Rename following checkbox "Show all fields for completion (advanced)" in "Show fields of relation fields (advanced)"
- If the import file contains a column with a field of a relation field, show the column label in the preview, even if "Show fields of relation fields (advanced)" is not checked > to make it less confusing when importing advanced files (e.g. products with attributes)

This is a backport of 1ba4fbe640, which was performed due to several
tickets mentioning confusion with the new import system.
2017-01-03 12:07:47 +01:00
Pin Zhang 4c798a2690 [FIX] base: use defined variable
The directive is `mname` not `name`.

CLA signature for PinZhang
Closes #14895
2017-01-03 11:17:43 +01:00
Raphael Collet 46b51cb4b2 [FIX] expression: multi-level expressions with magic columns 2017-01-03 10:17:13 +01:00
Daniel Dico f984073251 [FIX] pad: get pad content with newlines
Some more recent versions of etherpad can have newlines in the pad
content. Allowing newlines should not break anything that worked
before and allow more etherpad versions to be used.

closes #14877
opw-703173
2017-01-02 18:35:41 +01:00
Nicolas Lempereur a988653157 [FIX] web: error if chart with only zero values
We could get an js error if the chart contained zero values.

opw-703245
2017-01-02 17:31:06 +01:00
Nicolas Lempereur 983237a53c [FIX] account: fix css congratulation message
The css clear was using jquery ui class for enterprise which now may
not be available on the given part. This commit replace it with class
defined in account_reconciliation.

With this the style could have issues such as not displaying the
congratulation message after reconciliation.

fixes #14743
2017-01-02 16:27:27 +01:00
Christophe Simonis c08a590bb1 [FIX] purchase: correct fifo test
Oversight of previous forward-port.
2017-01-02 15:07:14 +01:00
Christophe Simonis 81f59cee2c [MERGE] forward port branch saas-11 up to b844d93889 2017-01-02 14:38:59 +01:00