Commit Graph
106868 Commits
Author SHA1 Message Date
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
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
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
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 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
Christophe Simonis b844d93889 [MERGE] forward port branch 9.0 up to 3805eb620a 2017-01-02 12:49:55 +01:00
Christophe Simonis 3805eb620a [MERGE] forward port branch saas-6 up to 7be1a1c55b 2017-01-02 11:42:52 +01:00
Christophe Simonis 7be1a1c55b [MERGE] forward port branch 8.0 up to 2b8fcfc08b 2017-01-02 11:22:45 +01:00
Damien Bouvy d3538dbe47 [FIX] payment_ogone: migration error
Only happens if Ogone answers with "wait", which explains why it
took so long to happen.
2017-01-02 11:11:49 +01:00
Goffin Simon 7fc1a3ca7b [FIX] mrp: Computing the qty of the BOM Structure report
Each qty of a line in the BOM Structure report must be computed in
the uom of its BOM line.

Example:

With 2 products: A, B

BOM A: 100 kg of A is produced by 5t of B

So 1kg of A needs how many t of B ?:

In the code:
qty_per_bom = 100 kg expressed in the uom of B => qty_per_bom = 0.1t
qty = 1 kg expressed in the uom of B => qty = 0.001t
l.product_qty = 5t
qty of B = (l.product_qty *qty)/ qty_per_bom = 0.05t

opw:697502
2017-01-02 10:37:08 +01:00
Odoo Translation Bot e8b0c1db69 [I18N] Update translation terms from Transifex 2017-01-01 04:42:12 +01:00
Odoo Translation Bot 2b8fcfc08b [I18N] Update translation terms from Transifex 2017-01-01 02:58:08 +01:00
Odoo Translation Bot 072906795c [I18N] Update translation terms from Transifex 2017-01-01 00:30:05 +01:00
Thibault Delavallée 84a650e33a [FIX] resource: fix computation of limited attendances
Due to an error introduced when migrating the module at new API
at commit a4e57ea16c limited attendances
having date_from and / or date_to were not correctly taken into
account.

Tests have been added to avoid regression.
2016-12-30 16:38:02 +01:00
Nicolas Lempereur 5869cd6bd0 [FIX] website_customer: error if customer without countries
For customer without countries, we get False instead of tuple:
 (country_id, 'country name')

Introduced by a35cce2008.

opw-703234
2016-12-30 15:27:48 +01:00
Nicolas Martinelli a71cdd02ec [FIX] payment_paypal: documentation link
The Paypal URL doesn't exist anymore. Redirect to Odoo documentation
instead.

opw-697606
2016-12-30 15:01:43 +01:00
Nicolas Lempereur eb2d598935 [FIX] auth_oauth: dup fail if odoo oauth provider removed
It is unwise to delete it (it can simply be disabled) but it can be done
(and other part of the code take it into account).

opw-703196
2016-12-30 11:29:48 +01:00
Nicolas Martinelli e1deead1cb [FIX] account: reintroduce tax lines in invoice
Commit d861cdc1c4 introduced the tax group feature. The tax line
details were removed from the printed invoice in favor of the tax group.

However, it requires that all tax groups are correctly defined in the
localization, otherwise the printed invoice doesn't show the required
tax details.

The correct fix, which is the complete definition of the tax groups,
will be done for the upcoming v11 version. In the meantime, this simply
introduces back the tax details table.
2016-12-30 09:16:08 +01:00
Jose Morales 3c67bf038f [FIX] l10n_mx: add missing account in chart template.
Some cash basis taxes were assigning the account 208.01.01 but this account was not created. Also add tax group
2016-12-29 22:31:16 +01:00
Nicolas Martinelli 1e22870d26 [FIX] product_margin: crash of read_group
Introduced by 9a479e6572
2016-12-29 14:55:31 +01:00
Nicolas Martinelli 3667516a74 [FIX] product_margin: computed values
After commit 9a479e6572, all values in the report are 0.0.

opw-695649
2016-12-29 14:54:06 +01:00
Nicolas Martinelli 8a1b55ae04 [FIX] website_sale: default company on SO
In multi-company:
- Create 2 companies A and B
- Set the superuser on company B
- Set the website on company A

When a SO is generated from the eCommerce, it is defined on company B,
while it should be on company A.

opw-695253
2016-12-29 13:49:28 +01:00
Denis Vermylen (dve) 1879964116 [FIX] hr_holidays: add followers to employee leave
from odoo#14848

Those subscribed to the department of the employee didn't get notified when
the employee encoded a leave.

It was due to the department_id not being given as value in create when the
employee made the leave.

This is because there's a group group_hr_holidays_user on that field in the
view, so only when they created a leave the followers would be added correctly
(as department_id was given as value in create).

This commit also remove the useless subscribe_followers method.
2016-12-29 11:52:47 +01:00
Goffin Simon 30fb3f7c4c [FIX] stock: Making inventory adjustments in multi companies
With Company A (Warehouse Wa) and Company B (Warehouse Wb)

When making inventory adjustments for Warehouse Wb in company A,
the inventory lines displayed must only be the lines of the company A in
the Wb.

In this way, the user avoids confusion with the adjustments he is creating.

opw:697182
2016-12-28 15:51:15 +01:00
Goffin Simon b58b334ace [FIX] stock: Inventory adjustments in multi company
When making an inventory adjustments in multi company, the company field
must be set according to the location_id set. In this case, it avoids creating
by default different inventories for the same warehouse.

opw:697182
2016-12-28 15:45:49 +01:00
Denis Ledoux 7befe67a75 [FIX] account: compute_invoice_totals with amount currency set, but to False
This is related to revision dfcc0c40b1

If the invoice line provided the amount currency, but
set to False, the amount_currency must be computed anyway

opw-702045
2016-12-28 14:57:27 +01:00