Commit Graph
107979 Commits
Author SHA1 Message Date
Jesus Zapata e4e320feb7 [CLA] add JesusZapata to Vauxoo's CLA (#17237)
Closes #17237
2017-05-29 11:43:35 +02:00
Yenthe V.G 5e652c856d [FIX] hr_timesheet_sheet: Display warning in user's language
Closes https://github.com/odoo/odoo/pull/17254/files
2017-05-29 11:28:42 +02:00
Richard Mathot 5c0355c033 [FIX] stock: missing grand total for inventory valuation
(was working in Odoo 9.0)
2017-05-29 11:26:16 +02:00
Martin Trigaux 731b23cf4f [FIX] hr_expense: remove duplicated field
Courtesy of Yenthe
2017-05-29 11:20:42 +02:00
Yenthe V.G 61f6756a7c [FIX] payment_authorize: add missing translation ability
Closes #17257
2017-05-29 11:17:15 +02:00
Josean 62cf9dd0fd [CLA] corporate signature for landoo
https://github.com/odoo/odoo/pull/17251
2017-05-29 11:13:46 +02:00
Josean 366c1e307f [FIX] base: Correct typos for 2 spanish states
Closes https://github.com/odoo/odoo/pull/17251
2017-05-29 11:13:46 +02:00
Yenthe V.G c36c5454ae [FIX] hr_expense: untranslated string
Closes #17255
2017-05-29 11:01:59 +02:00
Yenthe V.G 054e06e223 [FIX] l10n_be_invoice_bba: Display warning in user's language 2017-05-29 11:00:00 +02:00
Yenthe V.G 717002c2da [FIX] payment: untranslated string
Closes #17256
2017-05-29 10:57:14 +02:00
cubells b1e524255a [FIX] analytic: Remove search default non existent
Courtesy of cubells (Orbetix). Was PR #17219
2017-05-29 09:42:41 +02:00
Goffin Simon 530546a3e3 [FIX] point_of_sale: _confirm_orders
To help users to know why they can't close their pos sessions when
a Sales Journal is not set in the pos.config.

opw:744758
2017-05-29 09:17:18 +02:00
Nicolas Martinelli 9d2f48dc7f [FIX] crm: expected closing
The "exp. closing" dashboard button takes into account the won
opportunities. It shouldn't.

opw-744940
2017-05-29 09:14:43 +02:00
Odoo Translation Bot bcf302cf48 [I18N] Update translation terms from Transifex 2017-05-28 04:29:29 +02:00
Benjamin Willig 316ffc8014 [FIX] sale_stock: access to sale orders
Make sure the user has access to all sale orders linked to this procurement
group.

Fixes and closes #17232
2017-05-26 17:29:42 +02:00
Benjamin Willig 881a86d2c7 [CLA] Add Benjamin Willig in ACSONE CCLA
Done at #17232
2017-05-26 17:29:29 +02:00
Martin Trigaux 5280fda72f [I18N] sale: update source terms
Recent changes in mail.templates not reflected
2017-05-26 11:22:58 +02:00
Martin Trigaux 1fc8171639 [I18N] account: export source terms
Was pretty outdated
2017-05-26 10:50:41 +02:00
sum1201 447c2770b0 [FIX] account: untranslated string
Closes #17133
Closes #17137
2017-05-26 10:50:20 +02:00
Nicolas Martinelli 95e0c90e63 [FIX] purchase: hook to allow override of domain
Add a hook to allow the hardcoded domain in the method `make_po`, in
procurement order.

Base on work by @Cedric-Pigeon

opw-744606
Closes #17147
2017-05-26 09:58:14 +02:00
sum1201 8f48f669a5 [CLA] signature for sum1201
Done at #17211
2017-05-26 09:25:01 +02:00
Nicolas Lempereur 64d44527a8 [FIX] account: children in Invoiced partner button
When we are on a partner form view, we get the total invoiced containing
the child contact of the current partner. But when clicking the button
we only see the invoices of exactly the current partner.

In most locations of the code this has changed (since 347c784da) and
this part should also contain the descendants contacts.

opw-744929
closes #17188
2017-05-24 14:29:11 +02:00
Nicolas Lempereur 026d25e97a [FIX] mail: can't open mail composer on virtual event
In the case of a chatter on a calendar virtual event, there was a number
of issue because the record ID was of the type "[REAL ID]-[VIRTUAL ID]".

This caused issue when fetching and posting message with the composer.

opw-744405
closes #17179
2017-05-24 13:40:04 +02:00
Martin Trigaux 126df41f3d [FIX] account: revert 6de2990f8 and proper fix
Revert "[FIX] account: reset the move reference on bank statement"

This reverts commit 6de2990f8d.

The previous patch was removing the reference of the move.
However, the reference is useful to reuse the name if the line is reconciled
again.

Instead, remove the constrain. To delete the move, account_cancel is already
needed. It is useful to allow removing statement lines to match the statements
form the bank and the one on Odoo.
In the future, allowing to set the amounts to zero should be added as a way to
correct the lines.

opw-741205
2017-05-24 11:34:22 +02:00
Nicolas Martinelli 521edf9052 [FIX] account: writeoff sign
- Set-up multi-currency with the following rates:
  MXN: 1.0
  USD (2017-04-10): 0.052632
  USD (2017-04-27): 0.051680

- Create an invoice of 1779.55 USD on 2017-04-10
- Register a payment of 1779.48 USD on 2017-04-27
- Set the invoice as fully paid

It is impossible to validate the payment because of the following error:
"The amount expressed in the secondary currency must be positive when
account is debited and negative when account is credited."

We make sure to align the writeoff amount sign with the writeoff amount
sign in the company currency.

opw-741520
2017-05-24 08:19:50 +02:00
qsm-odoo 5331a87f81 [FIX] web_editor: properly match snippet options' DOM
The snippet options are attached to `closest`, `all` and `is` functions
to be able to find/check DOM they are associated to. Their behavior
depend on the snippet option type: the search in the DOM is either done
in the body, the editable parts, the editable children only, ....

The problem is that when searching from a given DOM element, jQuery
won't match the elements whose selector contains this given DOM element.
Or in code terms, jQuery find function behavior is:
`$('A').find('A B')` <=> `$('A A B')` (not `$('A B')`)

This was indeed a problem on the job position apply form pages where the
main editable element is the <form/> element itself. Indeed, the snippet
options' selectors which began by 'form' were not able to match. Worse,
the selector is used for a jQuery search for drag & drop and saving but
not for initialization (where it is used as a `is` check on clicked
elements). So, some DOM were able to be modified by options but not
properly (re)configured before saving.

opw-705902
opw-741305
2017-05-23 17:07:32 +02:00
Martin Trigaux 92be0df468 [FIX] stock: display variant fields on variant form
The structure of the product.{product,template} form is the following:

product.product_template_form_view* (both)
|-- product.product_template_only_form_view* (template)
|   \-- stock.product_template_form_view_procurement_button
|
|-- product.product_normal_form_view* (product)
|   \-- stock.product_form_view_procurement_button
|
\-- stock.view_template_property_form (both)

Previous view was adding weight, volume fields on both view with a attrs that
applies only to the product.template (display only if no template).

This means that the weight was not displayed on product.product form if opened
from a Many2one (using the default product.product view) while the attrs should
not hide it.

Closes #16541
Fixes #16428
2017-05-23 16:42:49 +02:00
Martin Trigaux fc2daaeaec [FIX] base: include installed module in inheriting views retrival
In a scenario with the following views:

Mod A, view 1*
|-- Mod B, view 2
\-- Mod B, view 3*

view 3 can not rely on the elements added by view 2 in xpath
If view 3 is a primary view, view 1 must be fully resolved first (apply view 2)
before resolving view 3.

Next commit describes a real use-case with product.

Linked to #16541 and #16428
2017-05-23 16:42:49 +02:00
Nicolas Martinelli 385de39110 [FIX] membership: invoice tree view
When a membership is created, a redirection is done to the tree view of
the vendor bills. It should be the tree view of the customer invoices.

opw-743241
2017-05-23 11:05:13 +02:00
Jesús Alan Ramos Rodríguez c99b48d11a [FIX] l10n_mx: wrong cash_basis_account for purchase taxes
Was PR #15893
2017-05-23 10:53:45 +02:00
Gabriela Mogollón 395c08fd26 [CLA] update Vauxoo's CLA
add gavymg

Done at #17148
2017-05-23 10:38:59 +02:00
Christophe Matthieu 174d7e8e49 [FIX] website: The default language does not use the configuration
The request language must be a fallback if the current website does not
have a default language
2017-05-22 11:57:41 +02:00
Nicolas Lempereur 57f7c68106 [FIX] web_editor: inline space in source code
The prettifying of html when editing sources (user need to be in debug
mode to see the button) was removing too much spaces in some instances.

For example if someone got in a case such as:

  <span>hello<b> cruel </b>world!</span>

The spaces between text and tag would be removed (this would work fine
with the space outside of the tag).

This code add a special case so this doesn't happen anymore.

opw-743565
closes #17142
2017-05-22 11:06:50 +02:00
Martin Trigaux ea4d29351e [I18N] payment: correctly format pot
Introduced at c80a32f9d
2017-05-22 10:32:20 +02:00
Jeremy Kersten 87d12bb27c [FIX] website_sale: add support for decimal_precision = 0
Before this commit data-precision='0' was ignored by qweb rendering.
Now we force the data-precision to be set even if 0. (cast in str)
And add a temporary fallback JS side to catch this case while people don't
update the qweb template.

This commit closes #17050 and closes #17046
2017-05-22 10:27:01 +02:00
Yenthe V.G c80a32f9df [FIX] payment: untranslated message
Without this the error message will always be in English, no matter the language
of the end-user.

Closes #17141
2017-05-22 10:16:30 +02:00
Lucas Perais (lpe) 02ce25ba01 [FIX] purchase: prevent rounding during currency conversion
With the settings:
- Anglo saxon accounting
- real price on product, perpetual accounting,
- multicurrency
- a product with a very small uom (like gram or kilograms and you want to sell many of them, like 500kg)

Flow: purchasing something in another currency

Before this commit, the rounding of the unit price took place right at the conversion level
which led the rounding errors to be amplified by the quantities when the total price was computed

After this commit, the conversion is done on the unit price but is not rounded yet
Only the prices are rounded, as late as possible

OPW 742293

Closes #17015
2017-05-22 09:01:39 +02:00
Odoo Translation Bot 7eda91ce58 [I18N] Update translation terms from Transifex 2017-05-21 04:33:07 +02:00
Jerther 3d59d3d613 [DOC] doc: remove kanban_text_ellipsis description
views.rst: replace the description of js function kanban_text_ellipsis() with a warning telling it's gone and what to use instead.
2017-05-19 17:18:34 +02:00
Bima d364dddfbb [CLA] signature for bimajatiwijaya
Done at #17087
2017-05-19 16:38:37 +02:00
Martin Trigaux 77aaba1c05 [FIX] point_of_sale: do not recompute the past
The cash_control flag on a session will be true if at least one payment method
is cash and the config has cache control.
However, the prevents to enable the flag on the config if one session in the
past had no cash method. As the field is not stored, it will be recomputed if
displayed (or prefetched) and raise an error, on a past session.

If the session is already closed, never raise an error

opw-744314
2017-05-19 16:24:09 +02:00
Martin Trigaux 0280354045 [FIX] point_of_sale: recompute for current session only
The previous trigger would recompute all sessions of a config when modifying
the cash_control flag on the config.
It was not possible to enable cash_control if a previous session wasn't in
cash control mode.

Recompute only when changing the config.
2017-05-19 14:32:56 +02:00
Nicolas Martinelli 53b5c48bc6 [FIX] website_sale: potential crash
`_cart_find_product_line` can return more than 1 order line . Since it
might be necessary in `website_sale_options`, just prevent the crash.

opw-743805
2017-05-19 10:38:52 +02:00
qsm-odoo 965d0c50ec [FIX] maintenance: use of "active" instead of "archive"
The maintenance.request "active" field was renamed to "archive" for some
strange reason by commit 9a20c6556f.
The value was also inverted.

Unfortunately, "active" was not replaced in a search filter.

opw-744168
2017-05-19 10:24:42 +02:00
ged-odoo ccb550a599 [DOC] doc: improve install documentation
With this commit, we try to explain a little bit better what the enterprise version is (just a collection of extra add-ons, not a full-blown server).
2017-05-19 10:19:48 +02:00
Goffin Simon c0a71bf26a [FIX] crm: default vale for date_open
The default value for the date_open must be up to date.

opw:741748
2017-05-19 00:39:28 +02:00
maitaoriana b753265ad3 [CLA] update Vauxoo's CLA
add maitaoriana

Done at #17078
2017-05-18 17:58:05 +02:00
Nicolas Martinelli 46bb7921e7 [FIX] account: avoid with_context in loop
Because it uses a different cache for each iteration, which slows down
the process.
2017-05-18 17:10:42 +02:00
Goffin Simon 9553355660 [FIX] crm: quick create in crm.lead
When making a quick create for a crm.lead record, the field user_id is set
with its default value (introduced by aa44700dcc)
But the date_open('Assigned') was not set.

When creating a challenge with goal="New opportunities", the new opportinities
are counted with date_open. But when creating an opportunity with the quick create,
it was not counted as date_open was empty.

opw:742751
2017-05-18 16:32:52 +02:00
Goffin Simon fa87b0d6ff [FIX] purchase: _anglo_saxon_purchase_move_lines
Let's consider a stockable product P with a product category PC with costing method = real price,
valuation = perpetual, stock valuation account = SVA and price diff account = PDA.
The cost defined for P in product.template is equal to 1$.

Steps

-Create a PO for P with a price unit = 5$
-Confirm PO and generate the invoice
-Update the qty for P in the invoice and validate it(price unit is still 5$)

Bug:

In the general ledger: a move with a debit of 1$ is created for SVA and a debit of 4$
is created for PDA which is wrong. The expected result is: just a move of 5$ created
for SVA and nothing for PDA because the difference between the purchase price and the
invoiced price is 0.

This commit fixes this problem.

NB: in real price and average price, the considered cost must be the purchase price
and not the cost defined in the product template.

opw:740879
2017-05-18 15:15:01 +02:00