Commit Graph
102376 Commits
Author SHA1 Message Date
Stéphane Bidoul (ACSONE) dbd4114d38 [FIX] l10n_lu: fix reconcile flag in accounts template csv
Changes f -> FALSE and t -> TRUE, otherwise when installing the l10n_lu
COA, the reconcile flag is wrong.

Closes #13282
opw-688957
2016-09-20 17:46:13 +02:00
Richard deMeester 4f0ca6d923 [FIX] base: res.config name_get fix (#13513)
name_get function needs to ensure that read passes the required
ids as a list, not a single value.  This is very important if
the method is inherited.
2016-09-20 16:19:46 +02:00
qsm-odoo c4784fc75b [FIX] web_editor: activate autoplay feature for videos
The checkbox was there to activate autoplay... but was not doing
anything since the web_editor/website split.
2016-09-20 13:40:53 +02:00
Martin Trigaux f978d85f05 [I18N] l10n_be: add missing translations for CoA 2016-09-19 17:49:58 +02:00
Martin Trigaux 0576b7af19 [FIX] account: translate refund by note de crédit 2016-09-19 17:00:16 +02:00
Nicolas Martinelli d2707fa7d7 [FIX] pad: initialize pad at creation
When a pad is created programmatically (e.g. through a project task or a
note), the pad is empty when it is first displayed. It is necessary to
edit the record and save it in order to be able to see the content.

This is because the pad is normally initialized by the JS layer, at the
first edition, thanks to a call to `pad_generate_url`. Therefore, a
programmatic pad creation won't initialize it.

opw-685826
2016-09-19 11:41:38 +02:00
Odoo Translation Bot 9413bafdd3 [I18N] Update translation terms from Transifex 2016-09-18 00:34:39 +02:00
Aaron Bohy 59710faa0a [FIX] board: correctly pass options arg to do_action
The dashboard instantiates an action manager for each view it has to display.
It then replaces the do_action() function of those action managers by its own
one, forgetting to pass the second argument 'options'. Thus, when do_action was
called by a view of the dashboard (e.g. a button in a list view), it was called
without the options.
2016-09-16 12:05:38 +02:00
Simon Lejeune 6647e1f8a9 [FIX] barcodes: correctly unbind quantity event listener
The quantity event handler is not correctly unbound when its action
is deleted, resulting in multiple window.prompt asking the quantity
of the products if you go mulitple times trough a view when a widget
implementing the barcode thing is used.

There seems to be a bug in the framework ("barcode_scanned" events
are registered the same way than the "keypress" one on core.bus
but they don't have suffer from the same issue).
2016-09-15 16:20:18 +02:00
qsm-odoo 5e6df42800 [FIX] web_editor: use valid bootstrap for m2o editor options
The .dropdown is in a .btn-group environment while a .btn-group can
only contain .btn or .btn-group elements.

This induced problems where the m2o options covers the full overlay
environment, preventing clicks on the customize dropdown.
2016-09-15 15:43:32 +02:00
Christophe Simonis 1d457006e5 [FIX] core: handle NewId in result of onchange
When an onchange return a NewId for a many2one, the expected result is
a False value.
It appear for computed many2one that can return currently created
record like `res.partner.commercial_partner_id` field.
2016-09-15 15:37:50 +02:00
scosist 5006ec9ca4 [FIX] stock: typo in _get_orderpoint_date_planned
orderpoint.lead_type should be 'supplier' instead of 'purchase'

opw-687311
Closes #11389
2016-09-15 14:51:15 +02:00
Mansi Gandhi 5a104fcb1a [FIX] website_quote: Notification 'viewed by customer' should be received by the responsible only
Currently some customers receive the automatic notification 'Quotation
viewed by customer'. This should not be the case as this notifciation
is purely internal and should only be sent to the quote responsible.

Notification is now a note with the responsible being directly in the
recipients.

Conflicts:
	addons/website_quote/controllers/main.py

Backport of 14f07cb96f
opw-687957
2016-09-15 13:40:33 +02:00
Nicolas Martinelli ce3341a906 [FIX] account: tax amount at reconciliation
When doing a reconciliation, make sure that the tax amount is properly
rounded to the currency precision. Otherwise, if the rounding policy of
the company is "round globally", the amount recorded won't be rounded.

opw-688399
Closes #13452
2016-09-15 11:22:07 +02:00
Nicolas Martinelli c3f4c73953 [FIX] account: monetaryIsZero
An issue arises in the following use case:
- Company rounding policy in "round globally"
- Tax excluded of 20 %
- Create a statement of 3.80 EUR
- Reconcile the statement thanks to the reconciliation widget
- Click on "Choose counterpart" in order to manually create a line to
  reconcile with the 3.80 EUR statement
- Add an amount of 3.17 EUR, and choose the 20 % tax

The widget creates an extra line of 0.00EUR . This is because the
remaining amount is 0.004.

The reason lies in the `monetaryIsZero` function. There is a hardcoded
decimal precision of 4, while it should be 2 for EUR.

We add an extra parameter to the function so it is possible to adjust
the decimal precision required. Only the problematic calls are modified
to avoid unnecessary intrusive modification.

Closes #13452
opw-688399
2016-09-15 11:22:07 +02:00
Nicolas Martinelli 143ec37391 [IMP] account: compute_all rounding
In some specific cases,it is necessary to call the `compute_all` method
and prevent any rounding to be done. This adds some flexibility in the
method to override rounding thanks to a 'round' context key.

Related to #13452 and commit 2e4777bb32

opw-688399
2016-09-15 11:22:07 +02:00
Christophe Simonis 5adca2bc46 [MERGE] forward port branch saas-6 up to 2fa3591 2016-09-15 11:02:44 +02:00
Christophe Simonis 2fa3591a9b [MERGE] forward port branch 8.0 up to 9874892 2016-09-15 10:49:55 +02:00
Fabien Meghazi 9874892b97 [FIX] module#get_module_path() does not check the manifest's presence (closes #13467) 2016-09-15 10:22:24 +02:00
andreparames 07a207c07c [FIX] ETag value must be quote-delimited
According to RFC 7232 # 2.3, an etag must be wrapped in double quotes:

    entity-tag = [ weak ] opaque-tag
    opaque-tag = DQUOTE *etagc DQUOTE
    etagc      = %x21 / %x23-7E / obs-text
               ; VCHAR except double quotes, plus obs-text

Odoo didn't properly quote etags, which could lead to stripping or
failures when putting Odoo behind strict HTTP proxies.
2016-09-15 08:15:34 +02:00
Nicolas Lempereur 1da79b872e [FIX] web: keep m2m value in list view
Currently, when rendering a list view cell with a many2many we would
empty the list of ids, and fill it again once a name_get is resolved.

But in some instance, the code could use the data when it has been
emptied out.

For example, if we set the tax_id field (inside the order_line list view
inside the sale.order form view) as requred, if we modify the order line
and save directly (without clicking outside of the list view) we can get
an incorrect error saying that the "Order Line" is not valid.

It has been reproduced when saving with CTRL + SHIFT + S on google
chrome and firefox, and there have been reports that for some
configuration it also happen when clicking on the "Save" button.

This commit change the behaviour so the value is kept whilst the name_get
is ongoing, and just use a default "false" value for the name during this
interval.

closes #13478
opw-668067
2016-09-14 15:52:48 +02:00
Joren Van Onder 9a5b040ff8 [FIX] stock: copy over pack_lot_ids when clicking on 'split'
Analogous to 6fde72abeacdac6e36a0c623c024252839f993ae but now instead
for the 'split' button.

Additionally this uses float_compare with the rounding set on the uom of
the operation to determine if there are any units left, which is more
correct.

opw-685908
2016-09-14 08:11:46 -05:00
Joren Van Onder 8914e7f48c [FIX] stock: preserve proposed serial/lot numbers after put in pack
When a stock.pack.operation gets created by a stock.picking, it will
have its pack_lot_ids set. This way the user has an overview of what
lots are available and how many of each are still left.

When splitting the stock.pack.operation these where lost. The still
unpacked stock.pack.operation would always have an empty pack_lot_ids
field. The reason for this is that those records where reassigned to the
newly created and packed stock.pack.operation.

This resolves the issue by copying pack_lot_ids that are still
available (qty_todo > 0) and assigning them to the original
stock.pack.operation.

opw-685908
2016-09-14 08:09:33 -05:00
Denis Ledoux 54968d55c2 [FIX] tools: do not overwrite view priority on update
In some cases, users change the sequence of base
views in order to have one applied before the other
e.g. when there is two inherited views doing
```
<tree position="inside">
...
</tree>
```
The priority of the views will have an impact on the
fields order in the tree.

On update, the change of priority done by the users
was overwritten, even if the priority of the view
was not defined in the XML code of the view.

The priority of the views should be overwritten only
in the case were the priority of the view
is specifically set in its definition.

opw-688470
2016-09-14 13:09:02 +02:00
Christophe Simonis 5be40868b1 [MERGE] forward port branch saas-6 up to a5dfe2f 2016-09-14 11:53:46 +02:00
Christophe Simonis a5dfe2f0d4 [MERGE] forward port branch 8.0 up to 3e4206b 2016-09-14 11:52:24 +02:00
Fabien Meghazi 3a7f211f8b [FIX] hr_expense: elevate privilege in order to subscribe users (closes #13436) (opw-687508) 2016-09-13 19:23:00 +02:00
Jairo Llopis f0dd8feee5 [FIX] website_portal: fix 403 when changing account details
A portal user couldn't change his address details if he was
of type `contact`

This happens because users usually
have no access to write their parent company.

opw-688192
Closes #13430
2016-09-13 15:18:02 +02:00
qsm-odoo 965d5a42fd [FIX] web_editor: allow to drop a snippet where its movement began
Before this commit, if we dragged a snippet and dropped it where we
began the drag, the snippet was removed.
2016-09-13 13:18:17 +02:00
qsm-odoo 5e9ebcfb01 [FIX] web_editor: properly call on_remove method of snippet options
The snippet options can define an on_remove method which was supposed
to be called when the snippet is removed. This was not the case since
the method was written so that the options were removed before the
on_remove method was called... (Un)fortunately, the on_remove callbacks
were not doing any critical job in current implementation. In saas-13
however, some elements will rely on this.
2016-09-12 15:35:16 +02:00
Ryan Cole d3d360ace6 [FIX] doc: typo in deployment
Closes #13387
2016-09-12 15:06:50 +02:00
Damien Bouvy 3e4206b4d4 [FIX] payment_paypal: accept GET requests for Paypal DPN
Although we have been reluctant to perform this change, a specific
use case can cause customers to be redirect to the Odoo DPN url
with a GET request.

This happens when a Paypal Merchant account has the feature Guest
Checkout active; in that case, a customer can pay without having
a Paypal account (using only his credit card) and will *not* be
subjected to auto-return; as detailed here:
https://www.sandbox.paypal.com/be/cgi-bin/webscr?cmd=p/pop/help-account-optional
Request coming from that payment flow will always trigger a GET
request, causing the customer to be welcomed by a
405 - Method Not allowed
error on the Odoo server. The payment is normally correctly processed
through IPN, so this does not normally causes loss of data; however
this is not a nice way to welcome back your customer right after
they pay you.
2016-09-12 09:24:38 +02:00
Nicolas Martinelli dd1eb03af5 [FIX] account: base amount when tax calculated
Commit 8ad0c0f3 introduces back the base amount taken into account for
tax calculation. However, the way it calculates the amount is wrong in
several cases:
- the tax amount is a percentage
- the tax is calculated thanks to Python code

opw-686846
2016-09-12 08:31:47 +02:00
Odoo Translation Bot 40691d31f3 [I18N] Update translation terms from Transifex 2016-09-11 03:04:01 +02:00
Odoo Translation Bot 043144ce42 [I18N] Update translation terms from Transifex 2016-09-11 00:35:15 +02:00
Christophe Simonis af87c57e51 [MERGE] forward port branch saas-6 up to f98665f 2016-09-09 11:26:15 +02:00
Christophe Simonis f98665f9b6 [MERGE] forward port branch 8.0 up to b17b2a2 2016-09-09 10:52:34 +02:00
Olivier Dony 0feaeb7641 [CLA] CCLA signature for GoOpen, računalniške storitve, Aleš Ferlan s.p.
Received PDF signature by email on 2016-09-06, from
Aleš Ferlan <alefer89@protonmail.com>.

See opw-687914 for original PDF signature.
2016-09-09 10:22:31 +02:00
Nicolas Lempereur 66de0ea75a [FIX] website_sale: saved shipping country/state
When selectionning a saved shipping address when setting the shipping
address of an ecommerce order, the country and state should be set
accordingly.

unrelated issue noticed when testing e0d4dd01cc
2016-09-09 10:13:28 +02:00
Nicolas Lempereur e0d4dd01cc [FIX] website_sale: toggle shipping state display
In 1ef52c9c the code displaying state of a given country was improved
for some incompatibilities.

But, if when setting the billing informations we choose to create a new
shipping address, the shipping state* would not be displayed even when it
should be (currently, if the shipping country is Australia or U.S.).

opw-687948

*a state being a subdivision of a country
2016-09-09 09:45:00 +02:00
Olivier Dony b17b2a2eb7 [FIX] http: do not allow passing spaces around db in URL param
Until 9.0 our psycopg2 DSN connection strings do not allow having
spaces within the db name, and passing some can cause duplicate
registries to be loaded.

Stripping spaces is a simple workaround until we actually support
spaces within db names.

Fixes #13078
2016-09-09 09:28:10 +02:00
Fabien Meghazi 1d4f2a59e1 [FIX] point_of_sale: bug in decimal.precision lookup 2016-09-08 18:09:05 +02:00
Denis Ledoux 6415e761fa [FIX] note: fix partners images in note kanban
Since 9.0, `message_follower_ids` are
`mail.followers` records,
the partner are in `message_partner_ids`.

Therefore, the partner images displayed in the note kanban
were not the images of the right partners.

opw-688100
2016-09-08 16:32:56 +02:00
Denis Ledoux c86201c553 [FIX] mrp: fix BOM smart button for product variants
Do not force the `search_default_product_id`to the current
product variant, as the domain just above could return a
result, a BOM which is set for the template of this variant
but not for the variant istself, that this filter would hide.

This is following the revision
52cba1b563

Because of this, a product variant smart button could
display "1 BOM", but when clicking on it, none would be displayed,
which is not user-friendly at all.

opw-687912
2016-09-08 16:01:42 +02:00
Martin Geubelle fddd748156 [FIX] account_asset: allow deferred revenue on one month
One could want to use deferred revenue for revenues invoiced in February
but the services are provided in June (e.g.)
2016-09-08 12:24:39 +02:00
Martin Geubelle 7fe89d08b3 [FIX] account_asset: asset in company currency
When the asset is created from an invoice line it should be in company currency and not in invoice currency
2016-09-08 11:21:29 +02:00
Martin Geubelle f5e3a52236 [FIX] account_asset: generated account.move.line name
If `method_time` is set to end, `method_number` is not the reference for the number of depreciation lines.
Take directly the number of depreciation lines is more correct.
2016-09-08 11:19:08 +02:00
qdp-odoo d08c947440 [FIX] account_tax_cash_basis: set the entry date for tax_cash_basis as the maximum of involved operations, instead of the reconciliation date.
Also refactored account_tax_cash_basis and account_tax_exigible to have the minimum code lines in the bugfix module
2016-09-08 10:46:46 +02:00
Nicolas Martinelli a666cd06bd [FIX] point_of_sale: round globally
Commit 06754b32 brings an inconsistency between the PoS frontend, the
pos_order and the account_invoice tax calculation. Part of the commit is
correct since it corrects the matching between the `compute_all`
methods, however.

opw-680891
2016-09-07 13:08:31 +02:00
qsm-odoo e696def3c5 [FIX] website: properly allow to remove slide from banner snippet
Removing a slide was buggy :
* Removing the last slide left the slide handles (and the user had to
click on remove slide again)
* There was an ugly delay before the removal
* Changing the bg image of a slide was not possible anymore once one
slide was removed
* ...
2016-09-07 12:30:40 +02:00