Commit Graph
107785 Commits
Author SHA1 Message Date
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
Leonardo Rochael Almeida 47536a3f7d [IMP] web: allows styling of the pager counters
Before this commit, the pager counters and buttons were at the same
level, and could not be styled independently (with some rules such as
nowrap).

Close PR #14865
2017-01-02 09:06:57 +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
Fabien Pinckaers ee9341366e [IMP] account: invoice analysis type: done -> paid 2016-12-30 13:20:19 -08:00
qdp-odoo bdab2b9118 [FIX] account: fix cash based tax entry when registering a payment, in case of a 0% tax 2016-12-30 21:01:35 +01:00
qdp-odoo 4f29b77e3d [MERGE] foward port of 10.0 up to revision 84a650e33a 2016-12-30 17:21:25 +01:00
mdi-odoo 33a413eb29 [IMP] sale*: Improve the settings form view 2016-12-30 17:05:08 +01:00
Jérome Maes 7534f627b3 [IMP] base,forum: improve user preference view
Karma is now displayed on preference view. Also,
add a empty group to allow other module to set their
preference parameters on this form view.

Little big details are important !
2016-12-30 17:02:25 +01:00
Jérome Maes 2da8460a89 [IMP] mail: add integrations menuitems, but invisible
This allow modules to plug into mail configuration
on channel.
2016-12-30 17:01:55 +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
Haresh Shyara fa8561aa49 [IMP] hr_recruitment: Improve the settings form view 2016-12-30 14:14:18 +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
Thibault Delavallée b46e6f4bb6 [REV] Revert "[IMP] base: code aestetic, res_country & state"
This reverts commit b70fe586f2. This commit
breaks the master branch.
2016-12-30 11:13:37 +01:00
Thibault Delavallée 56645335b7 [IMP] gamification: improve email sent when granting a badge
Give some details about the badge: its description, its image, who granted
it, ... Otherwise it is quite complicated to understand the email content.

Thanks to @mart-e who reviewed and tested.
2016-12-30 10:46:12 +01:00
Thibault Delavallée 64ea747824 [FIX] mail: fix record model and ids management when posting using a template
Posting on a document not inheriting from mail_thread was impossible
due to several crashes or wrongly set variables. Some cleaning is planned
in those methods as there are a lot of unnecessary computation. This will
be done in another commit. Probably.
2016-12-30 10:45:39 +01:00
Thibault Delavallée 72d988cba5 [FIX] mail: fix message creation for models not inheriting from mail_thread
You may want to send emails related to a document not inheriting from
mail.thread. In that case we have to use the default computation of
reply_to and not call a method defined only if the model inherits
from mail.thread.
2016-12-30 10:44:39 +01:00
Fabien Pinckaers b70fe586f2 [IMP] base: code aestetic, res_country & state
[FIX] base: country & state, enforce the max number of records to the requested limit
2016-12-30 01:38:42 -08:00
Thibault Delavallée 655c70319d [IMP] mail: hide Unsubscribe button in channels using group-based subscription
Group-based channels automatically add people belonging to user groups to the
channel. If a member leaves the channel he will be automatically added back
by the channel automatic subscription. This generates unnecessary changes and
messages in the channel.

We now prevent people from leaving group-based channels. All group members
have to be channel members. Unsubscribe buttons are therefore removed for
those channels.
2016-12-30 10:28:42 +01:00
Jérome Maes 082eef133d [FIX] account: invoice should be stored the first it is printed 2016-12-30 09:50:29 +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
Fabien Pinckaers 44685b595b [IMP] base: selection of state based on coutry, all states if no country
[IMP] base: if state code, set it as the first state in the list
2016-12-29 23:02:26 -08:00
Fabien Pinckaers b76028f3f2 Revert "[FIX] base: restrict state selection to the selected country"
[IMP] revert a serious usability issue: people creating an address can
not select a state: it's weird to have to set the country first.

This reverts commit 24aba6014c.
2016-12-29 22:24:37 -08: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
qdp-odoo cb39ddbc59 [IMP] account: fill partner_id field on tax cash basis entries 2016-12-29 21:16:55 +01:00
qdp-odoo 80d992e951 [FIX] l10n_mx: fix missing dependancy (module removed) 2016-12-29 21:16:55 +01:00
Yannick Tivisse 81352d47c5 [FIX] res_config: Manage m2o,m2m and o2m for default_ fields
Before this fix this was crashing for these kind of fields because we received a recordset instead of a id list.
2016-12-29 15:50:45 +01:00
ptr 5b79505bb1 [IMP] account*: Improve the settings form view 2016-12-29 15:46:37 +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
Richard Mathot 752013d3c7 [REM] delivery_temando: module deprecation 2016-12-28 16:24:52 +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
Yannick Tivisse fa8560a414 [REM] base.sql: remove table wkf used for workflows 2016-12-28 15:09:33 +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
Denis Ledoux dfcc0c40b1 [FIX] account, stock_account: anglo saxong cost price currency rounding
When selling in a foreign currency,
A double currency rate change, one in each way, was applied when creating the good cost
move line of the invoice, which leaded to some precision loss when the decimal accuracy was
set with a number of digits greater than the currencies digits rounding

e.g.
Product cost price: 52.56422
CAD to USD rate: 0.7383

The product cost price is always in the company currency
while `_anglo_saxon_sale_move_lines` always returned the price
in the currency of the invoice. A first conversion rate was applied
from the company currency to the invoice currency.

52.56422 * 0.7383 = 38.808163625999995, rounded to 38.81

Then, when validating the invoice, and creating the move line,
the price was then converted again, to the company currency,
as the debit/credit of a move line is always in the company currency:
38.81 / 0.7383 = 52.566707300555336, rounded to 52.57

The cost price of the product in the good cost move line was therefore
set to 52.57, insteaf of 52.56, because of this precision loss.

With this revision, we avoid to do the currency rate conversion
two times, in both ways, to avoid the precision loss.

opw-702045
2016-12-28 14:19:18 +01:00
Nicolas Martinelli 26d1a3884b [FIX] account: crash when unlink taxes
If `get_default` returns an empty value (`None`), the `set` instruction
crashes.

opw-702597
2016-12-28 13:12:12 +01:00
Jeremy Kersten 750a99fa95 [IMP] website_sale(_options): fix layout and xs screen
+ add feature from website_sale_option on xs-screen
+ don't hide coupon code in xs

Courtesy of Fgi for reporting and tests
2016-12-28 13:05:48 +01:00
Jeremy Kersten d4b2e16fd6 [FIX] website: compress_html is obsolete
This option is no more implemented since the refactoring of ir.qweb
Gzip (in nginx) do the same and better...
2016-12-28 12:56:06 +01:00