Commit Graph
101140 Commits
Author SHA1 Message Date
Christophe Matthieu 2abc2ceee0 [IMP] gamification: split multi function field to avoid massive prefetching of user records
Issue: website_forum takes 15 to 30 seconds to load the user page
2016-03-23 11:22:51 +01:00
rmu-odoo 1936367fd2 [IMP] l10n_et: Added post migration file 2016-03-23 10:55:23 +01:00
rmu-odoo a9c93119ae [IMP] l10n_et: Create newly tag assign to taxes 2016-03-23 10:55:10 +01:00
Josse Colpaert 87578177ac [FIX] mrp: Cost calculation of finished product when real price should work in real-time too
For that, we needed to inverse the processing of the moves of the production order (first consumed, then produced
instead of the opposite) as that way we know the price to put on the produced moves based on what was consumed before.
2016-03-21 17:08:07 +01:00
Géry Debongnie e9c34b5e61 [FIX] web: fix issue with FieldMany2ManyTags
the widget FieldMany2ManyTags does a rpc to fetch the fields (just to
know if 'color' is in the model...). It was done in a mutex and used
later in a mutex.  This commit simply use the willStart method to make
sure the data is available before rendering.
2016-03-21 17:05:07 +01:00
Joren Van Onder 95f8693a3d [FIX] point_of_sale: correct sign of fixed tax
Oversight of e8b965f93c. Although the
previous commit gave the correct behaviour for a negative fixed tax with
a base_amount of 0, it was still incorrect for positive fixed taxes with
a base_amount of 0.

This rewrites the code to more closely resemble the relevant code of
account.tax._compute_amount() solving the above mentioned issue.
2016-03-21 15:31:38 +01:00
Christophe Simonis 51cbf110c3 [FIX] sale_stock: remove duplicated code
Code was introduced during forward-port 8e1c747.
2016-03-21 14:59:30 +01:00
Nicolas Lempereur fae65a36e7 [FIX] web: css for address format based on country
In 9.0's 05adb7f the `<div class="address_format"/>` wrapping an address
city, state_id and zip fields was removed.

There is a hack on fields_view_get which transform this block depending
on the company country, so without the block the feature isn't enabled.

This commit adds a class on the new block `<div class="address_format"/>`
used to wrap the whole address which will change the sizing of the city,
state_id and zip fields as it was before version 9.

To fully follow what was done previously, the zip is aldo moved before
the city if the address format needs it.

Thus we now have as before the three format as follows:

[default format]

city state zip

[format .o_city_state (brazil)]

city state
zip

[format .o_zip_city (belgium, netherlands, ...)]

zip city
state

Another change is brought by this commit, before most element attributes
from city, state_id and zip fields were lost whilst doing the hack, now
they are all kept.

closes #10692
opw-666567
2016-03-21 14:38:16 +01:00
Christophe Simonis 8e1c747666 [MERGE] forward port of branch saas-6 up to c9ee510 2016-03-21 14:06:54 +01:00
Denis Ledoux 06351ec607 [FIX] website_quote: pay multiple quotations in the same session
Since aae5647988,
the payment transaction ID is set in the session.

Unlike ecommerce carts, this is possible to open multiple
quotations at the same time
(one browser tab on SO001, another one on SO002),
and therefore to pay multiple quotes at the same time.

This revision makes sure to get from the session the transaction
of the right quote.

That way, the message "Your payment has been received, thank you for your trust.",
is not displayed when opening a new quote when another one was paid
just before.
2016-03-21 14:02:17 +01:00
Denis Ledoux 82b6f37e31 [FIX] portal_sale: single id passed as the idsarg
`ids` is supposed to be either a list of ids, either
a single id.

This revision adds the support of single id
as possible value for the `ids` argument
in methods that could be called with a single id
as value for the `ids` arg.

For instance, `action_confirm` is called
with a single id passed in the method
`_confirm_online_quote` of `website_quote`
2016-03-21 14:02:17 +01:00
Christophe Simonis c9ee5105e9 [MERGE] forward port of branch 8.0 up to df21297 2016-03-21 14:00:17 +01:00
Nicolas Martinelli adae94e483 [FIX] project: task manager
Following commit 1dbccc8, there is no `user_id` field on the analytic
account anymore. However, a field `user_id` was added directly on the
project with commit 908f416.

opw-672333
2016-03-21 13:44:11 +01:00
Nicolas Martinelli df212977b8 [FIX] stock_landed_costs: missing AML
There are 2 journal items missing on the accounting entry that
represents the assignation of the landed costs (for a product that has
already left the stock!) => expense account at the debit and stock
output account at the credit (amount is equal to the cost of the landed
cost)

opw-671311
2016-03-21 13:37:42 +01:00
Denis Ledoux 037257b887 [FIX] payment_adyen: back-port of 3dafb19
opw-672504
2016-03-21 13:02:26 +01:00
Raphael Collet 2d77941844 [FIX] models: enable modification of the help of custom fields
The field was not used when building the registry, hence when synchronizing the
field back to the database, the field `help` was set to `NULL`.
2016-03-21 12:23:17 +01:00
Raphael Collet 07d7be8896 [FIX] ir_model: fix validation of depends when empty on custom fields 2016-03-21 11:31:00 +01:00
Nicolas Martinelli 7a9c16ffee [FIX] web_kanban: prevent drag'n'drop
Prevent drag'n'drop in the following cases:
- Group by field is read-only
- Group by field is a date or datetime

This is necessary to avoid, for example, changing the state of a sales
order or an invoice without going through all the business logic.

Related to #7047
opw-671697
2016-03-21 11:00:27 +01:00
Goffin Simon cc335879a7 [FIX] sale_stock: _check_routing in drop shipping
When checking the route of a product, if the product is set with route drop shipping
then the product is available.

Inspired from 14fd46c0d5

opw:672392
2016-03-21 10:44:00 +01:00
Denis Ledoux 56a06b73f2 [FIX] website_payment: set default payment acquirer for configuration users
By default, users other than the admin cannot create
default values for all users,
`ir.values` for all users can only be created as sudo.

opw-672400
2016-03-21 10:30:03 +01:00
Denis Ledoux 15f27b2614 [FIX] website_sale: always re-render the pay now button
Before this revision,
when a user tried to pay his cart with a first acquirer
e.g. Ogone
then came back to the shop (using the browser back button)
then chose another acquirer
e.g. Paypal
a new transaction is created, due to the change of acquirer
(following revision cb9d798)
and therefore, the transaction has a new reference compared
to the last payment transaction attempt (e.g. the ogone one)
but, the old reference is still referenced within
the `Pay now` form values, because the page wasn't re-rendered,
because the user pressed the browser back button, and this
doesn't refresh/re-render the page, and, therefore,
the old reference was still referenced within the `Pay Now`
form values.

Therefore, the wrong reference was sent to the acquirer
(e.g. paypal) and this prevented the payment validation
at the payment feedback, as the new reference was expected
in the feedback information, while we receive the older one.

This revision makes sure to always re-render the `Pay now`
form, so the transaction reference, as well as the other
possible changes in the values, are correctly set,
before sending the information to the acquirer.
2016-03-21 10:30:03 +01:00
Denis Ledoux aae5647988 [FIX] website_quote: port of f89e8f9df2
The above revision needs to be applied on website_quote
as well.
2016-03-21 10:30:03 +01:00
Denis Ledoux 6a1116e947 [FIX] website_quote: port of cb9d7982c1
The above revision need to be applied in website_quote
as well.
2016-03-21 10:30:03 +01:00
Goffin Simon a706ada628 [FIX] sale, sale_stock, website_quote: delivery lead time with website quote
The related customer_lead of each product in a SO line must be set when a
quotation template is used in a SO.

opw:671938
2016-03-21 09:43:32 +01:00
Joren Van Onder 9df2921743 [IMP] hw_blackbox_be: implement support for registered POSBoxes
POSBoxes will be registered with the government. If a POSBox is not
registered it won't load the blackbox driver, preventing communication
with the Fiscal Data Module.
2016-03-21 09:10:34 +01:00
Nicolas Martinelli 528db2b306 [FIX] website_event: do not copy menu_id
When the user duplicates an event, the `menu_id` is copied. This causes
two issues. First, it links the event to the wrong menu. Then, the
controller `event` uses this `menu_id` to compute the target URL. It
will therefore redirect the user to the wrong event page.

opw-670353
2016-03-21 08:23:46 +01:00
Odoo Translation Bot f5cc04caa7 [I18N] Update translation terms from Transifex 2016-03-20 02:58:59 +01:00
Odoo Translation Bot ef026d7cf2 [I18N] Update translation terms from Transifex 2016-03-20 00:32:37 +01:00
Denis Ledoux ecfbd3f9b7 [FIX] website_blog: old api call without cr, uid, ids
opw-672398
2016-03-18 17:33:35 +01:00
Denis Ledoux 31eb1438a1 [FIX] account: settings, prevent the re-write of the company currency
When applying the accounting configuration wizard,
the `currency_id` was being re-written on the company,
even if there was no change (if the currency remained the same),
because of the related.

This leaded as well to the re-write of the company currency
on all journal items, because the `company_currency_id` on
`account.move.line` is a related to `company_id.currency_id`as well,
and they were being recomputed due to the above re-write.

Meaning, when you had a bunch of journal items, applying the
accounting configuration wizard could have take a while.

opw-672400
2016-03-18 16:42:36 +01:00
qdp-odoo 4665216331 [FIX] account: when creating an invoice's journal entry, set the invoice_id on tax lines too. That isn't a big deal though, but for the data coherence and to define reports on invoices it'd be easier with that field. 2016-03-18 15:26:00 +01:00
Denis Ledoux dcb43a5083 [FIX] mrp_repair: tax_id is a many2many
This is related to 3d58cd1ca2

`compute_all` indeed does expect ids, and not browse records,
but it expects a list of ids for the `ids` parameter, or a single
id, but not `False`.

Besides, `line.tax_id` is a many2many, despite the fact
its naming seems to say otherwise, and therefore `.ids`
should be used in order to pass all the taxes of the line,
not just one.
2016-03-18 14:35:54 +01:00
Géry Debongnie fc43546f01 [FIX] mail: duplicating partners does not duplicate mail channels
It could be a real problem when the duplicated user has access to all
private conversation from the original user.
2016-03-18 14:04:31 +01:00
Denis Ledoux 3d58cd1ca2 [FIX] mrp_repair: taxes compute_all take ids as parameters.
Not browse records.

This is an oversight of the revision
f4f4a4db73

opw-672321
2016-03-18 13:45:15 +01:00
Denis Ledoux 4ce55a2cd1 [FIX] mrp_repair: taxes domain in fees editable list
Apply the same domain which is appled in the form
view, which was redefined during the 9.0 accounting
refactoring (c04065abd8)

This is following the forward-port 51774f2a45

opw-672321
2016-03-18 13:45:15 +01:00
Joren Van Onder fe76e6bc36 [FIX] barcodes: first qualify the quantity event before handling it
Introduced by 5bb64d40d0. Before doing
anything we should first ensure that the quantity keypress event targets
body (and that it is a number, but that's less important). Before this
we didn't do that and thus the _display_no_edit_mode_warning was given
when people where just typing in the associated thread of a picking.

opw-672350
2016-03-18 13:11:25 +01:00
Yannick Tivisse b6847a0537 [FIX] ir_cron: programming error 2016-03-18 12:35:09 +01:00
Jeremy Kersten f01c195288 [FIX] base: ir field - set dependence as required when creating a compute field.
When you create a computed field, if you don't set the dependencies field
Odoo raises a traceback keyerror for ''.

Courtesy of @odony
2016-03-18 10:01:11 +01:00
Jeremy Kersten 58d587df09 [TYPO] base: ir model fix typo in comment 2016-03-18 10:01:10 +01:00
Goffin Simon 40248d77ff [FIX] stock: Wrong error when you work with lot owner
When a stock move was created in a picking with a product set with
a unique serial number existing in the stock of a specific owner.
If the owner was not specified for the stock move then a wrong message
was raised "The serial number 00005 is already in stock.". But the real
problem could come from function quants_get_preferred_domain which didn't
find the existing quant due to the fact that the system didn't check in the
right stock(owner). A new quant was then created with the existing serial number.
And a wrong message was raised.

opw:671783
2016-03-18 09:38:15 +01:00
Nicolas Martinelli 14fd46c0d5 [FIX] sale_stock: availability check
When searching for a dropshipping route, we need to access the field
`picking_type_id`. If user is not allowed to read it because of the
access rule `stock_picking_type_rule`, he will get an access error.

opw-668926
2016-03-18 08:43:39 +01:00
Erwin van der Ploeg 4dbc81f910 [IMP] l10n_nl : When we create supplier invoices for costing invoices (not from purchase orders) it is a good practice to enter the total invoice amound including vat. Then Odoo calculates the taxes and you will never have a roudnding difference on the invoice total (maybe only on tax amound). To do this you need purchases taxes including tax in price. This commit adds those by default. 2016-03-17 18:14:07 +01:00
Goffin Simon af61494667 [FIX] account_asset: compute depreciation button
It is not allowed to recompute the depreciations when the asset
is confirmed.

opw:672203
2016-03-17 14:38:42 +01:00
Joren Van Onder 1ec6a384fa [FIX] point_of_sale: order product.product consistently with backend
In the backend product.product records are not just ordered on their
name, they are first ordered on default_code and then on name. The POS
should order records the same way.

opw-672284
2016-03-17 14:01:20 +01:00
Goffin Simon 9a2e3c2987 [FIX] account, sale: Sales Team filter
The field "team_id" doesn't exist in account module, this field is
added in module sale on the model account.invoice.report

opw:672047
2016-03-17 12:29:45 +01:00
Goffin Simon 360b9eb3a3 [FIX] account: Sort by account code
In communtiy, the order of the accounts shown in the reports
didn't follow the order written in the legend(How account type affects your reports?)
Adviser > Chart of Account > create

opw:669270
2016-03-17 11:45:48 +01:00
Yannick Tivisse b78a64a2cc [FIX] base/ir: Run cron manually calls _callback with current uid
It should be called with the user on set on the cron itself
2016-03-17 10:10:28 +01:00
Goffin Simon 21beef4b19 [FIX] account_asset: period_id field
The field period_id didn't exist in model "account.asset.asset"

Closes: #11262

opw:671494
2016-03-17 09:41:47 +01:00
Antony Lesuisse 0c1c1f60b6 [FIX] Stock allow barcode input on stock.picking o2m kanban 2016-03-17 09:40:11 +01:00
Joren Van Onder 5bb64d40d0 [IMP] barcodes: allow immediate quantity input after scanning
When scanning items with a device like the Symbol MC3200 you are
presented with the Kanban view because of it's limited resolution.

In this view it is not possible to quickly set the quantity of scanned
products. Ideally users just want to scan the barcode, input the
quantity and repeat without having to click on virtual buttons on the
usually less than ideal touchscreen.

This implements a way for users to immediately start typing numbers
representing a quantity after scanning a barcode. The quantity will be
set on the specified m2x_field.quantity_field of the record associated
to the last scanned barcode. Because KanbanRecords are not editable
without opening a new view window.prompt is used. It will create an easy
to use native dialog of whatever device is being used. It also avoids us
having to implement a custom input field which would have to handle
keypress events like numbers, backspace, delete, etc.
2016-03-17 09:39:18 +01:00