Commit Graph
107952 Commits
Author SHA1 Message Date
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
Nicolas Martinelli 4cbbbaddd5 [FIX] account: Sales team on refund
When doing a refund of an invoice, the sales team is not kept. At the
same time, remove fields which don't exist anymore.

opw-743093
2017-05-18 11:11:37 +02:00
Goffin Simon 64eb5ce48e [FIX] account_bank_statement_import: journal without default credit/debit account
A traceback was raised when importing a statement for a journal without default credit/debit account.

opw:742196
2017-05-18 09:21:26 +02:00
Josse Colpaert e7da75dd3c [FIX] delivery: delivery slip wrong forward port aea68e4 2017-05-17 18:26:03 +02:00
Martin Trigaux ae1aec32c2 [FIX] point_of_sale: round taxes as in amount_tax
amount_tax compute method uses `price * (1 - (discount or 0.0) / 100.0)`
_create_account_move_line method used `price * (100.0 - discount) / 100.0`

with price = 9.95 and discount = 0.1 it makes a difference
>>> 9.95 * 0.9
8.955
>>> 9.95 * 90.0 / 100.0
8.954999999999998

Cumulative errors makes a 1 cent difference between totals of the orders and
computed amounts.

The session could not be closed as debit != credit

opw-743188
2017-05-17 15:22:07 +02:00
Martin Trigaux 6de2990f8d [FIX] account: reset the move reference on bank statement
When removing a move previously linked to a bank statement, the move_name value
must be removed too.
This field is set when reconciling the entries.
When move_name is set, it is not possible to delete the bank statement line,
even if the refered move no longer exists.

opw-741205
2017-05-17 15:21:43 +02:00
Sylvain GARANCHER 57b3894ca0 [IMP] stock: allow to define from_date
The context key `from_date` can be retrived from `self.env.context,
while the context key `to_date` can be defined for each procurement
group.

We extend the code so that `from_date` can also be defined for each
procurement group.

Closes #16803
opw-743013
2017-05-17 13:10:43 +02:00
Edser Solís f17bc70fbc [CLA] Iterativo signs CCLA
Done at #16967
2017-05-17 13:08:46 +02:00
qsm-odoo a83f812357 [FIX] mass_mailing, web_editor: increase mail clients compatibility
Following bee3253b44, this commit is made
to increase the mail clients compatibility for the mails that are
created with the odoo mail editor.

Three new problems are handled:

- Font family of titles had to be forced too as outlook was not
  inheriting parent font family on those either.

- Default text font-size had to be forced as was not detected in
  transcoding correctly.

- text-decoration rule was decomposed in text-decoration(-line,
  -style and -color) in transcoding. Outlook is ignoring those
  three rules for some reason. As the decomposition is useless,
  the transcoder now forces the recomposition of these three rules.
2017-05-17 11:29:24 +02:00
Jeremy Kersten 5bbe4a8ce7 [FIX] website_portal_sale: fix vat and name comparison in /my/account
Before this commit, we compare in some case False != u''

Commit #56c798a fix u'' != False but in case of the partner has been
edited from front end, partner.vat will be u'' and not False
2017-05-16 17:47:51 +02:00
qsm-odoo 490764ae11 [FIX] website_blog: fix "select to tweet" feature
There was two main problems with the feature

- The author name was not properly fetched so the feature which was
  supposed to add the author of the blog post in the tweet never
  worked -> this commit simply deletes it

- The code was considering the url length in the size of the tweet,
  so if the url was 135 characters long, it considered that only 5
  characters have to be taken in the selected text... which is wrong
  as twitter URL are all shortened to 23 characters by twitter

opw-741530
2017-05-16 17:21:34 +02:00
Nicolas Martinelli efa4f85480 [FIX] account: prevent invoice line unlink
Nothing prevents the deletion on invoice line at the Python level. Other
modules might give access directly to the invoice lines, and make their
deletion possible when the invoice is not draft.

opw-743154
2017-05-16 15:39:03 +02:00
Olivier Dony 656accfde4 [FIX] payment_*: remove obsolete license entry
The license entry in the manifest files for these modules were
leftovers from previous versions.

Once integrated in Odoo Community they share the same license as all
other modules, as mentioned in the LICENSE notice at the top of the
files.

opw-743686
2017-05-16 14:58:12 +02:00
Olivier Dony 7a443aabf9 [MERGE] Forward-port saas-11 up to 6490e652c3 2017-05-16 14:56:02 +02:00
Olivier Dony 6490e652c3 [MERGE] Forward-port 9.0 up to 1070b83e14 2017-05-16 14:48:43 +02:00
Wolfgang Taferner 58c928a732 [FIX] mrp: fix unlinking of move lots for production during create_lots
Closes #17007
2017-05-16 13:54:43 +02:00
Olivier Dony 1070b83e14 [FIX] l10n_cn*, payment_sips: clarify obsolete licensing info
The license info for these modules was a leftover from previous versions.

Once integrated in Odoo Community they share the same license as all
other modules, as mentioned in the LICENSE notice at the top of the
files.

opw-743686
2017-05-16 13:42:10 +02:00
Nicolas Martinelli 0fab06204c [ADD] hr_expense_check: add amount in words on check
- Create an expense, approve.
- Register the payment by check
- Print the check

The amount in words is not written.

The core of the issue is that the wizard
`hr.expense.register.payment.wizard` has been defined as a brand new
model instead of inheriting from `account.register.payments`. Hence the
Enterprise module "hr_expense_sepa" and now "hr_expense_check".

opw-742305
2017-05-16 13:27:40 +02:00
Nicolas Martinelli 8fdf046df2 [REF] account_check_printing: avoid duplicated code
Small refactoring necessary for the following commit, to avoid
duplicated code.

opw-742305
2017-05-16 13:27:40 +02:00
Goffin Simon 8c22c8b625 [FIX] sale: _get_invoiced with same sequence for PO and SO
When PO and SO used the same sequence, a vendor bill with a source
document equal to the sequence of a SO could be displayed by this
SO(in the smart button "invcoies").

opw:693991
2017-05-16 13:23:57 +02:00
Nicolas Martinelli 6c38a80b6f [FIX] purchase: modify expected date
- Create a PO with a line scheduled 2017-07-01
- Validate the PO => the expected date of the related stock move is
  2017-07-01.
- Modify the PO line date to 2017-07-15 => the expected date of the
  related stock move is not updated.

Since we allow the modification of the scheduled date, we should make
sure that the related information is changed accordingly.

opw-741815
2017-05-16 12:06:47 +02:00
qsm-odoo 1545995b39 [FIX] web_tour: tips were overlapping the chat windows
Before this commit, the tour tips were overlapping the chat windows.
This was due to the fact they always had a z-index of 1051 wherever
they were. If a tip was placed in a location where none of its
ancestors created a new stacking context, the closed tip was then
positioned above everything else, including the chat windows.

A simple solution would have been the one proposed by this commit:
https://github.com/odoo/odoo/commit/856e78b35a47a8732e5bd4da1cce247df70e5414
However, as it explained, this would not be entirely correct. In the
website, elements are using z-indexes and would thus hide closed
tooltips when it is not wanted if those have no z-index at all.

The solution this commit is making is to force the creation of a
stacking context for tooltips' parent. The z-index will still exist
on all tips (closed and not closed) to force them above every other
elements, but now only elements of the same parent. This is indeed
more correct (but maybe still not entirely): website tooltip are
often placed in the body (as it is the element which scrolls) and
are thus still placed above elements like the navbar as their
z-index is left high. However, when placed in the appswitcher, they
will now be placed above appswitcher elements only (and thus not
above outside elements which are themself above the appswitcher
(e.g. the chat windows)).

opw-743330
2017-05-16 11:17:13 +02:00
Olivier Dony ab8c81a96f [MERGE] Forward-port saas-11 up to 0570033ae7 2017-05-16 10:30:23 +02:00
Olivier Dony 0570033ae7 [MERGE] Forward-port 9.0 up to 2c4512c263 2017-05-16 10:06:36 +02:00
Olivier Dony 2c4512c263 [MERGE] Forward-port saas-6 up to 7dc2ed94c3 2017-05-16 09:22:27 +02:00
qdp-odoo a95a667563 [REF] account: validate of FY lock date into a dedicated method.
in res.company write(), create a sub method _validate_fiscalyear_lock()
so that it is easier to inherit to modify or extend its
functionality.

Was PR #16615
2017-05-15 23:37:48 +02:00
Joren Van Onder 7836a83b3b [FIX] point_of_sale: currency and decimal precision on ESC/POS receipt
Decimals were either hardcoded or not set at all.

opw-741752
2017-05-15 11:30:29 -07:00
Joren Van Onder 4d2328cd9e [FIX] point_of_sale: don't reserve pickings with tracked products
Introduced by 8f39ad2be6 which was
intended for 9.0. It does not work well in 10.0 because here users
have the possibility to specify their own tracking numbers directly in
the POS interface. This causes issues when eg. the user specifies the
same lot number as is already reserved by the system.

opw-742657
2017-05-15 09:39:45 -07:00