Commit Graph
106136 Commits
Author SHA1 Message Date
Christophe Simonis 938ffb92da [MERGE] forward port branch 10.0 up to 6466aa4 2016-10-19 18:16:14 +02:00
Christophe Simonis 6466aa499f [MERGE] forward port branch saas-12 up to 00f4547 2016-10-19 18:09:53 +02:00
Christophe Simonis 00f45470da [MERGE] forward port branch saas-11 up to 8411b89 2016-10-19 17:56:52 +02:00
Christophe Simonis 8411b893ad [MERGE] forward port branch 9.0 up to 28560a3 2016-10-19 17:34:21 +02:00
Christophe Simonis 28560a34da [MERGE] forward port branch saas-6 up to 8e094bb 2016-10-19 17:23:45 +02:00
Goffin Simon c27d8715af [FIX] stock: _search_quantities
The operator and the value defined on each domain filter were not
used in the function "_search_quantities".

opw:690753
2016-10-19 16:33:17 +02:00
Denis Vermylen (dve) db85ad489c [FIX] hr_holidays: correct new api migration
an old [record_id] was creating a traceback for the "Absent Today" employee
filter, now removed and it works fine again.
2016-10-19 16:25:36 +02:00
Pierre Masereel 57c7b1d3a1 [FIX] barcodes: _set_quantity_listener
Before, the '_set_quantity_listener' function was opening a 'window.prompt'
which had different comportment depending the navigator. For example,
the focus was not allways on the input field, the enter key 'Cancel'
the prompt or 'validate' it.

So to improve the usability and the consistancy we used a dialog instead
a prompt, to manage the focus and the 'Enter' key pressed when we want to
set a quantity.
2016-10-19 16:14:00 +02:00
Raphael Collet 3ec5a23007 [FIX] base: recompute view.model_data_id (#13885)
The field was a stored computed field without dependencies, and therefore it
was never (re)computed. Add a simple dependency on the model `ir.model.data`
to make the recomputation everytime a view is modified. Moreover, when views
are created from modules, delay the recomputation of view fields until their
`ir.model.data` record is created.
2016-10-19 15:20:14 +02:00
Simon Lejeune ecac88dcc0 [ADD] pylint: using variable before assignment 2016-10-19 15:18:58 +02:00
qsm-odoo 01186fef58 [FIX] website_blog: prevent blog title to overflow the cover
Note: in 10.0, the layout has changed and it is not a problem anymore.
2016-10-19 14:52:39 +02:00
Martin Trigaux 5709bd5b98 [FIX] pos_cache: use base64 for attachment content
an ir.attachment expects base64 content
Closes #13878
2016-10-19 14:51:16 +02:00
Nicolas Martinelli 756262639f [FIX] website: traceback in route '/website/action'
The route `/website/action` crashes since `action` and `action_id` might
not be defined.

opw-691634
2016-10-19 14:38:24 +02:00
Jeremy Kersten ce7f7a5687 [FIX] account: change link in planner for Contract and subscriptions
account_analytic_analysis doesn't exists anymore.

This commit closes #13867
2016-10-19 14:38:21 +02:00
Nicolas Martinelli 0f3048e059 [FIX] account: invoices from partner view
When the user clicks on the stat button to access the partner invoices,
the invoices are not displayed.

This is because the domain is wrong.

Fixes #13883
2016-10-19 14:10:21 +02:00
Goffin Simon d3c84ed42c [FIX] account, account_cancel: visibility of the button_cancel_reconciliation
When a account statement is validated, it's not possible to cancel a statement line.
To cancel a line from a validated statement, you must first reset to new the statement.
In this way, it's not possible to have a validated statement with unreconciled lines.

opw:690766
2016-10-19 14:09:22 +02:00
Nicolas Martinelli d3e2aa5551 [FIX] purchase_requisition: incorrect method call
Missing arguments in method call, which causes crash.
2016-10-19 11:13:35 +02:00
Nicolas Martinelli d8c88079d3 [FIX] purchase_requisition: unit price when quantity change
On a PO linked to a purchase tender, changing the quantity on a PO line
will trigger a recompute of the unit price. However, this recomputation
will take into account the unit price of the supplier pricelist, not the
unit price on the purchase tender.

opw-690483
2016-10-19 11:08:15 +02:00
Nicolas Martinelli fad9378d17 [FIX] purchase_requisition: price unit in blanket order
When the purchase tender of a PO refers to a blanket order, the price
unit used to create/update the order lines doesn't take into account the
potential difference of UoM.
2016-10-19 11:08:07 +02:00
Nils Hamerlinck 8e094bb8fd [FIX] point_of_sale: return raises an irrelevant warning
When returning an item by entering an orderline with a negative quantity
you got a warning message asking you to confirm a large payment
amount. Introduced by 5a3d9ce9ce.

Closes #13777
2016-10-18 17:53:02 -07:00
Joren Van Onder 8e720a9319 [FIX] point_of_sale: delete validated orders immediately from db
If you validate an order it will be sent to the backend. If you then
close the POS frontend somehow before clicking 'Next order' this order
will be reloaded from localStorage when reopening it. This is
problematic because it allows the user to then modify this order and
validate it again. Everything will appear fine but in the backend this
new, modified order will be ignored as it has the same pos_reference as
the one that was sent initially.

The deeper underlying issue is that there exists a brief timeframe where
the same order can exist twice in the db: both as 'order' and
'unpaid_order'. To ensure this does not happen this fix removes the
order from the unpaid orders after it is saved as a validated order.

Fixes #13538
2016-10-18 16:56:46 -07:00
Jeremy Kersten 23c3bc1a59 [FIX] web: really remove traceback on unlink_if_refcount
Previous commit was just stupid: #4128ab641 - Mea Culpa
2016-10-18 18:11:42 +02:00
Olivier Dony b62b2423e6 [FIX] account: fix typo in new API conversion
`record.ids` is already a list and should not be wrapped in
another list

Introduced in conversion at d6e1d41128
2016-10-18 16:40:30 +02:00
Martin Geubelle 6348b56755 [FIX] calendar: prevent traceback if no real_ids
After 488e9f2 there is traceback
if the list real_ids is empty.

opw-690761
2016-10-18 16:25:05 +02:00
Denis Vermylen (dve) aaff7d5d51 [IMP] hr_attendance: add barcode listener in message
This way you don't have to wait the 5 seconds, or click the "ok" button
to return the the kiosk mode to be able to scan the next badge.

Note: listener is disabled if a warning message is displayed.

+ small code/comments cleanup
2016-10-18 16:06:42 +02:00
Nicolas Martinelli 1f9e92dfef [IMP] account: store tax base amount
Storing the value is necessary in case tax definition is changed.
Indeed, we want to keep the value for reporting purpose.

opw-691177
2016-10-18 15:49:45 +02:00
Jeremy Kersten 4128ab641c [FIX] base: fix unlink_if_refcount traceback
Before this commit, a traceback was raised with 'local variable
referenced before assigment'

This commit closes #13848
2016-10-18 14:18:11 +02:00
Wolfgang Taferner 327f88dfce [FIX] account: tax base computation
Before the fix, the tax base amount is computed only for a complete
invoice line. However, depending on the tax sequence and their inclusion
in the base amount, the tax base amount might be different for the
various taxes of an invoice line.

We keep track of the base amount for every single tax, and refactor the
`_compute_base_amount` to take these values into account.

opw-691177
Closes #13819
2016-10-18 13:58:14 +02:00
Goffin Simon 67ad7a3452 [FIX] stock_account: bad argument in compute on "res.currency"
The function compute defined in "res.currency" takes records as arguents.

opw:690787
2016-10-18 13:36:53 +02:00
qsm-odoo 5ada73335a [FIX] website: properly show iframe video in website
Sometimes the video DOM content is present except the iframe which
prevents the iframe to be loaded.
2016-10-18 13:14:23 +02:00
qsm-odoo d5464458c5 [FIX] website: properly unbind events of parallax snippet option
Recent refactoring of the parallax changed the snippet option JS and
attached a callback on a editor element but forgot to detach it if
the parallax snippet is removed. This added a bug which broke the
editor every time a parallax snippet was removed.
2016-10-18 13:14:23 +02:00
Odoo Translation Bot a40c3bf792 [I18N] Update translation terms from Transifex 2016-10-18 11:50:34 +02:00
Martin Trigaux 994d45f478 [IMP] hw_escpos: more fault tolerant printer detection
In some cases, the description fails (unknow printer, udev issues,...) and while
the printer works fine, the description fails.
2016-10-18 11:23:46 +02:00
Goffin Simon dca292b268 [FIX] base_action_rule: Add followers in automated actions
When registering a payment on an account invoice with an automated
action which adds a follower "On Creation & Update", the function
recompute was triggered(due to the field residual_company_signed)
and the same followers was added two times for the invoice.

The fix avoid to unlink and create the same followers several
times(because it was the case with the function "_add_follower_command")

opw:690939
2016-10-18 09:56:24 +02:00
Jeremy Kersten e05dba357e [FIX] web: one2many displayed even if no data.
Before this commit, the one2many widget was not displayed if no data.
That make some form (notebook) empty while the user don't click en edit to see the widget appear.

Eg: stock picking 'Initial Demand' tab

Courtesy of @ged-odoo
2016-10-17 17:32:42 +02:00
Jeremy Kersten a88a2f51b4 [FIX] delivery: form styling - add margin between weight and unit 2016-10-17 17:32:42 +02:00
Jeremy Kersten 74e1d6940d [FIX] website_blog: fix depends for post_date
Before this commit, create a blog post since the backend raise
an error because the post_date is False.

It should never arrive, since it is a compute field that is the
publish date or fallback on the create_date.

But because set post_date, change the published_date, the depend from
publish date cannot be triggered again since it change the post_date.

So _set_post_date don't trigger _compute_post_date. And call it manually
will make 'max recursion depth python'.

The 'hack' to update publish date, without retrigger the _compute_post_date
and set post_date manually, is to use the _write method that don't trigger
all depends fields.

Courtesy of @rco-odoo

This commit closes #13829
2016-10-17 17:32:42 +02:00
Jeremy Kersten 5da0ae9b04 [FIX] web: add min-height on notebook
Moved from enterprise
2016-10-17 17:32:42 +02:00
Géry Debongnie a75961364b [FIX] web: properly apply styles attribute to form fields
The form widgets did not apply the 'style' attribute to the result of
the rendering.  Because of that, many small adjustment were no longer
possible. This commit makes sure that it is indeed done.
2016-10-17 16:33:09 +02:00
Christophe Simonis 96d84f1b6f [MOV] test_new_api: move file in the right directory 2016-10-17 16:10:59 +02:00
Christophe Simonis 53d8f76a40 [MERGE] forward port branch saas-12 up to e8e4145 2016-10-17 16:00:39 +02:00
Stéphane Bidoul 7e58821a9f [REF] account: prepare method for invoice tax lines
This is needed for example, to enhance the analytic dimension of these
lines.

Closes #12739
opw-691337
2016-10-17 15:21:47 +02:00
Christophe Simonis e8e4145c99 [MERGE] forward port branch saas-11 up to ba6ca78 2016-10-17 15:17:48 +02:00
Christophe Simonis ba6ca788fd [FIX] fields: correct detection of new records on relational fields 2016-10-17 14:51:37 +02:00
Nicolas Martinelli ea53259d27 [FIX] account_asset: inconsistencies deferred revenues and assets
The following configuration leads to different results:
- Deferred revenue: 12 entries, 1/month, prorata temporis, 1000€,
  date 15th of October
- Asset: 12 entries, 1/month, prorata temporis, 1000€, linear, date
  15th of October

Deferred revenues and assets should give identical results.

opw-690034
2016-10-17 14:20:19 +02:00
Christophe Simonis ceb1ba6dbd [MERGE] forward port branch 9.0 up to b14c8b3 2016-10-17 13:46:24 +02:00
Christophe Simonis b14c8b361c [MERGE] forward port branch saas-6 up to fa50349 2016-10-17 13:14:22 +02:00
Christophe Simonis fa50349d7e [MERGE] forward port branch 8.0 up to 001610e 2016-10-17 13:01:20 +02:00
Mansi Gandhi 523355b99f [IMP] hr_timesheet,hr_payroll: Add some description. 2016-10-17 10:25:08 +02:00
qdp-odoo 4cfc0f7232 [FIX] hr_expense: create the account.payment objects when an expense is paid by the company.
This is required in order to have those bank journal items appearing afterwards in the bank statement reconciliation widget (blue line) for reconciliation.
2016-10-17 10:11:59 +02:00