Commit Graph
103975 Commits
Author SHA1 Message Date
Christophe Simonis e721f3eb99 [MERGE] forward port branch 9.0 up to 4d1fc7e 2016-10-24 15:06:45 +02:00
Christophe Simonis a18fc55ffc [FIX] account_asset: remove dependency on deleted field 2016-10-24 14:45:45 +02:00
Olivier Dony 4d1fc7e390 [FIX] sale: missing account mapping in advance invoice
The `map_account()` method expects a browse_record as
parameter, and returns a browse_record (possibly the
argument if no mapping happened).

It was being called with an account ID instead, so
fiscal position mapping would never match, and would
always return the argument itself.
2016-10-24 13:58:29 +02:00
Olivier Dony a3d6e7f2ff [FIX] sale: fix recompute of fiscal position
The `fiscal_position_id` field actually depends on both
the `shipping_partner_id` and the `partner_id` field,
not just the former.

Theoretically the recompute should trigger on both fields
anyway because changing the `partner_id` will automatically
change the `shipping_partner_id`.

Unfortunately this onchange chaining does not work as expected
as of Odoo 9, at least when the `partner_id` field is set
to the same value (was done for optimization reasons).
This special case really happens when you edit the Partner
from a sales order form view, and save the changes.
It triggers a "dummy on_change" for the `partner_id`
value, with the same value as before.
If the edit changed the fiscal position or another
field on which it depends, a recompute is really needed.

Adding the direct dependency works around this limitation,
and is semantically valid, too.

An extra fix of this special case in the framework might still
be nice to have, though.

Ref: feedback ID 29042
2016-10-24 13:58:29 +02:00
Christophe Simonis 25e0b25508 [MERGE] forward port branch 9.0 up to 6690bfb 2016-10-24 12:48:56 +02:00
Christophe Simonis 6690bfb14a [MERGE] forward port branch saas-6 up to 1d00e32 2016-10-24 12:42:51 +02:00
Denis Ledoux 39a8b39a28 [FIX] product: variant name_get for specific providers
This is related to revision
b65c67a259

The field `seller_ids` is a field which is set
on the `product.template`, and this is why
the condition `(x.product_id == product)` is being applied
in the list comprehension searching the current seller
of the product sellers.

The `variant` variable is a string containing
the attribute name of a variant.
Therefore, if a product tempalte has only one variant, without
any attribute (e.g. when you don't use variants),
`variant` will be empty, and therefore the condition
`if variant:` will be `False`, and therefore it won't search
in the product sellers with a specific `product.product`, while it
should, as, even if there are no attributes, there could be a
seller line with this specific `product.product`.

Besides, as we are in the `name_get` of `product.product`, and
not the `name_get` of `product.template`, we are always in the case
of a `variant`, this test is therefore pointless.

opw-682390
2016-10-24 12:04:19 +02:00
Christophe Simonis 1d00e3221d [MERGE] forward port branch 8.0 up to 8f484fd 2016-10-24 11:48:45 +02:00
qdp-odoo f3a721940c [FIX] hr_expense: don't group accounting entries of hr.expense if several are generated at the same time.
This grouping was causing problem at the time of bank statement reconciliation, if the expenses were set as already paid by the company, since we had only one account.move related to several bank statement lines although the DB structure wasn't allowing such a case (the link was made as a m2o from account.move to account.bank.statement.line where a m2m would have been needed).
2016-10-24 10:22:42 +02:00
Nicolas Martinelli 3164ca8962 [FIX] account: define tax base
Make sure tax.base is always defined to avoid traceback.
2016-10-24 09:01:21 +02:00
Odoo Translation Bot 8f484fd137 [I18N] Update translation terms from Transifex 2016-10-23 02:57:47 +02:00
Odoo Translation Bot f74ea276cd [I18N] Update translation terms from Transifex 2016-10-23 00:35:59 +02:00
David Beal e773c1dce8 [FIX] resource: prevent error when deleting resource.calendar records
Attendance entries should be cascade-deleted along with the parent
record.

Closes #10310
Closes #13044
2016-10-21 19:57:23 +02:00
Raphael Collet bde400ca3e [FIX] account: account tax base computation
In the earlier fix 327f88df, the computation of the amount crashes when the
field `tax_id` is not set.  Simply add an 'if' statement to avoid that case.
2016-10-21 09:46:59 +02:00
Aristobulo Meneses d31bd1feb0 [IMP] account: display totals on float fields
On the Customer invoice, Vendor Bills and Payments list views.
The feature exists for Journal Items and entries, but not on invoices and
payments.

Closes #13915
Fixes #13914
2016-10-20 17:21:12 +02:00
Martin Trigaux 83fb76e4c0 [IMP] point_of_sale: sort report by product name
Instead of undeterministic order on a dictionnary
2016-10-20 16:52:30 +02:00
dut-odoo 9c77467f07 [FIX] l10n_in: taxes tags
There are inconsistencies between the tax tags as defined in the module
and what the reporting expects.

opw-689188
2016-10-20 15:36:36 +02:00
Nicolas Martinelli d30dc96750 [FIX] account: aml linked to statement
When fetching the journal items linked to a bank statement, the
counterpart items are not retrievd since they are not directly linked to
the bank statement. It makes the entries look unbalanced.

Closes #13673
opw-690231
2016-10-20 13:50:09 +02:00
Denis Ledoux afc2497a48 [FIX] account: invoice report, advances counted twice
The below revision force the use of `ABS` on the
`price_subtotal_signed` because of a migration issue:
649b289fa1

This leads to issues regarding the advances, in
`out_invoice` invoices, where this amount
`price_subtotal_signed` is negative, and should
remain negative in this report, otherwise
the advance is counted twice: Once with
the advance invoice, and a second in the actual
invoice where the advance is removed with a line
with a negative `price_subtotal`

e.g.
 - A sale order of 500€ without taxes
 - Create an advance invoice for an advance payment of 10%: 50€ without taxes
 - A second invoice with the remaining: 450€ without taxes

In the invoices report, the total without taxes for this customer was
displayed as 600€ (50 + 500 + 50)
instead of   500€ (50 + 500 - 50)

opw-682390
2016-10-20 13:48:01 +02:00
Goffin Simon e69b0d9876 [FIX] account: Currency rate in account.invoice.report
It's more usefull to display the average than the sum for the currency
rate in account.invoice.report

opw:690899
2016-10-20 13:10:28 +02:00
Nicolas Martinelli 65878a5b85 [FIX] account_asset: posted depreciation line
When the account move line linked to a depreciation line is deleted, the
depreciation is still considered as 'Posted'.

opw-691084
Fixes #13801
2016-10-20 12:38:05 +02:00
Nicolas Martinelli ebf3b3d7a8 [FIX] account: potential traceback
The method `get_by_record` expects a singleton.

opw-691198
2016-10-20 10:46:19 +02:00
Goffin Simon feffa2efce [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-20 09:37:13 +02:00
Jeremy Kersten 62c0a161ef [FIX] web_planner, account: add support for enterprise module + fix link 'Revenue Recognition'
Now, when the module is not found, instead to display a traceback, we open a popup to upgrade to Enterprise.

That will be wrong in case of outdated / wrong link, but in most cases, it is because it is an enterprise module.

This commit closes #13882

TODO: Remove zindex 1051 on planner in master/saas-14
2016-10-19 18:31:37 +02:00
Jeremy Kersten 24cdbabcc4 [FIX] mail, mrp, purchase, sale_stock, stock: fix retro compatibility
Other modules that was overriding old name method was just ignored.
Drop retro compatibility fixes in next freeze (saas-14) and stop
useless renaming.

This commit closes #13865
2016-10-19 18:09:37 +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
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
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
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
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
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 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
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
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 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
Jairo Llopis 85b34f4be3 [FIX] openerp: tests: make failing PhantomJS tests actually fail 2016-10-17 13:45:23 +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
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
qdp-odoo 001610ece9 [FIX] anglo_saxon_dropshipping: fix accounting entries creating on anglo_saxon + real_time + dropship.
This revert the fix made on 7bdd4de and replace it with a proper one that do create an account entry from stock_input to stock_output on a dropship move. That way, we avoid the manual change of account on supplier invoice. See the whole discussion on odoo#12687
2016-10-17 09:39:53 +02:00
Odoo Translation Bot d1c81f136c [I18N] Update translation terms from Transifex 2016-10-16 02:57:56 +02:00
Odoo Translation Bot 2ce7679032 [I18N] Update translation terms from Transifex 2016-10-16 00:34:35 +02:00