Commit Graph
85 Commits
Author SHA1 Message Date
Wolfgang Taferner 61eccf212b [FIX] payment_stripe: backwards compatibility IE 11
closes odoo/odoo#35944

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-22 08:03:10 +00:00
Wolfgang Taferner d82c0d133e [FIX] stock: tell the user which product is causing the issue
closes odoo/odoo#29857
2019-01-02 10:36:57 +00:00
Wolfgang Taferner 138550fd2e [FIX] stock_picking_batch: do not lock batch model on transient model
closes odoo/odoo#29722
2018-12-23 07:57:27 +00:00
Wolfgang TafernerandNicolas Martinelli c5eeae0d5a [FIX] account: negative bank statement amount
- Create a bank statement for a negative amount, e.g. -100.
- Click 'Reconcile'.
- Create a counterpart line for this bank statement, but specify
  receivable account.

The payment created has `partner_type` set as `supplier`.

Although a receivable account is used for customers.

This use case can arise in case of a credit note to a customer: the
reimbursement should create a customer payment, not a supplier payment.

Co-authored-by: Nicolas Martinelli <nim@odoo.com>

opw-1910807

closes odoo/odoo#30232
2019-01-28 10:13:31 +00:00
Wolfgang Taferner 284eb622d6 [FIX] sale_coupon: typo in variable
closes odoo/enterprise#3143
2018-11-24 10:42:48 +00:00
Wolfgang Taferner 0246887f7b [FIX] account: wrong default journal based on type available in vals
As the journal is mostly set in the Odoo world the _default_journal
method is not needed during create, but in case you only have
partner_id, account_id and type in vals you will have retrieved a wrong
journal in case you have an incoming invoice.

closes odoo/odoo#28635
2018-11-13 16:20:42 +00:00
Wolfgang Taferner 66f8ffe729 [FIX] stock: do not crash move_lines return a tuple with empty list
Typically if you use an onchange method to retrieve values on the server
and convert them to write it will also try to write empty values like
[(6, 0, [])] and this will crash as it has also the length of 3 but no
dictionary but a list

closes odoo/odoo#27937
2018-10-18 12:05:35 +00:00
Wolfgang Taferner d14e9e62c6 [FIX] website_sale: remove redundant order definition
As the order on the product itself is destroying the functional sequence
in the backend of the module product (handle widget is ineffective on
the view) and is individually set since 4dce861 for its original
purpose, it should not be of any risk to remove the redefinition of
product order for website sale.

This commit closes #26118
2018-09-25 19:40:42 +02:00
Wolfgang Taferner 8e15dc87a4 [IMP] account: extract_payment_vals + explicit communication hand-over 2018-09-12 15:12:42 +02:00
Wolfgang Taferner a4a9196c8d [FIX] account: regression - display partner_name as placeholder 2018-08-08 09:50:31 +02:00
Wolfgang Taferner 62770ae9b8 [FIX] stock: test should actually fail, but did not for months
Commit dc1681b1 did change the name of the inventory creation from
direct qty update, but test still tries to compare the product.name

closes odoo/odoo#25948
2018-07-24 14:17:38 +00:00
Wolfgang Taferner e239cd810f [FIX] stock: comparing apples and oranges it is for category_id
We need to split this magical one-liner in order to not compare apples
and oranges.

opw:1865614
2018-07-17 11:28:13 +02:00
Wolfgang Taferner 46b8c07249 [FIX] product: bring back description in product views
Somehow the internal description got lost in the product views in
https://github.com/odoo/odoo/commit/af9d21b379f1dd42e83dcfa164af489c9261542d.
As the field is still used for demo data and is highly needed to
describe the product without exposing in one of the other new fields, it
is brought back.

Closes #24164
2018-06-20 13:05:34 +02:00
Wolfgang Taferner 3310d842f6 [FIX] sale: wrong key was communicating wrong references 2018-04-17 09:24:24 +02:00
Wolfgang Taferner 0f9bf4b0d0 [CLA] add ap-wtioit to WT-IO-IT's CCLA
Closes #24001
2018-04-03 13:38:19 +02:00
Wolfgang Taferner 90ab699d90 [CLA] WT-IO-IT GmbH signature of Corporate CLA
Closes #22825
2018-02-06 12:43:23 +05:30
Wolfgang Taferner 3b8ba47f11 [FIX] purchase: Display a more accurate title on purchase report 2018-02-06 06:32:17 +01:00
Wolfgang Taferner 211226a725 [FIX] purchase: test rounding issue 2018-01-02 14:54:34 +01:00
Wolfgang Taferner ec520b871c [FIX] account: bank statement line order should be by natural date first 2017-12-27 10:18:57 +01:00
Wolfgang Taferner 30d0861f0a [FIX] base: ir.sequence better fallback
Zero is an non-acceptable value for sequences, so the fallback should be
one instead.

Fixes #21267
2017-12-13 08:51:05 +01:00
Wolfgang Taferner 193b55eae9 [FIX] sale_stock: update procurement group if necessary
Closes #21034
2017-11-29 13:40:55 +01:00
Wolfgang Taferner 2fbbf0b1ff [FIX] sale_stock: cancelled moves should not block product modification 2017-11-27 12:50:10 +01:00
Wolfgang Taferner 712b008709 [IMP] stock: Give a clear error message
Use case(stock_picking.py):

- Sell a product which has tracking enabled
- Reserve the stock on the delivery order and assign to all stock.move.line a lot/serial, but leave the qty_done zero
- You will get an error message which is not correct

(stock_quant.py)

Give more information about the source of failure

opw:783828
2017-11-22 16:50:55 +01:00
Wolfgang Taferner 483c9bb7eb [FIX] portal: internal server error if name is boolean 2017-11-21 09:38:47 +01:00
Wolfgang Taferner e5aea5e78f [FIX] sale: remove duplicated field in tree view 2017-11-20 13:47:03 +01:00
Wolfgang Taferner 0dcf139aa7 [FIX] website_sale: missing sudo for website public + portal user
Portal user and public user do not have access on account.tax

Was already fixed at  #19153 but lost in forward port

Closes #20802
2017-11-14 15:46:10 +01:00
Wolfgang Taferner 66a82fd4e4 [FIX] stock: drop useless access rights "reduction" for manager
As a stock manager has anyway implied access rights from the user who
has all rights for stock.production.lot
2017-11-13 17:34:21 +01:00
Wolfgang Taferner 13f9d8a502 [FIX] stock: key error due to bad search/replace -> typo 2017-11-08 08:41:31 +01:00
Wolfgang Taferner 939e00abc4 [FIX] account: remove duplicated methods 2017-11-06 12:51:03 +01:00
Wolfgang Taferner 088f1e3fdc [FIX] base: load translation files in correct dependency order
Fixes #19824
opw-776928
2017-10-27 09:52:20 +02:00
Wolfgang Taferner faff276e92 [FIX] sale, purchase: do not merge sale order and purchase order lines 2017-10-18 17:52:25 +02:00
Wolfgang Taferner ef592ffa3d [FIX] stock: make it possible to inherit easier in _merge_moves 2017-10-18 17:52:19 +02:00
Wolfgang Taferner c30f8c50a3 [FIX] stock, sale_stock: blocking a process twice due to cancelled moves 2017-10-17 16:05:53 +02:00
Wolfgang Taferner 61b63e9f81 [FIX] stock: only if the type was changed we should trigger an error
opw-776927
Closes #19973

Due to the fact that some products might be maintained in a module and
will write on the product on upgrade we need to take care that it will
allow to write not changed product types.
2017-10-17 13:43:24 +02:00
Wolfgang Taferner 29c326a8aa [IMP] website_sale_delivery: use the preferred carrier of the partner (if available)
In case you have a delivery partner set on your shipping contact,
when checkouting your cart, the preferred carrier will be used instead
of the first available carrier.
2017-10-03 16:59:27 +02:00
Wolfgang Taferner 236a24de96 [FIX] account: handling of text domains in _query_get
1df72cb01b added a stringification of
the domain parameter to handle situations where an actual
domain (list/tuple) is being provided rather than a string, however
this causes issues when the string input is text (unicode) containing
non-ascii data as in Python 2 `str()` will then raise a
UnicodeEncodeError.

Rather than stringify the input, bypass safe_eval when the input is
already a proper domain.

Closes #19367
2017-09-12 11:20:09 +02:00
Wolfgang Taferner 85213a49b5 [FIX] mrp: generating raw move based on bom line should copy sequence
Closes #19182
opw-769259
2017-09-04 08:40:25 +02:00
Wolfgang Taferner bfa6394383 [FIX] hr_attendance: only if the check_out is later than the check_in
You can not create a check-in at 09:00 in case you have an attendance
where you checked out at 09:00.

Complement of bfa55e42f9

Closes #19226
opw-769773
2017-09-04 08:28:32 +02:00
Wolfgang Taferner 901d777591 [FIX] website_sale_stock: use sale order warehouse default first
Taking unrelated first warehouse can only be the last fallback, so we
check first if there is a default value for the SO.

opw-756265
2017-07-25 18:33:37 +02:00
Wolfgang Taferner bfa55e42f9 [FIX] hr_attendance: constraint must allow same time for check out/in
The constraint does not allow the same check out time as the next
check in time which might be rare but a possible and likely use case.

opw-756694
Closes #18400
2017-07-25 15:51:56 +02:00
Wolfgang Taferner 77b68a170d [FIX] purchase: fiscal position change must trigger a tax recomputation
It applies the same behavior than in the Sales module.

opw-756556
Closes #18377
2017-07-25 14:36:10 +02:00
Wolfgang Taferner 170db9e03d purchase: order field must be changed only in invoice draft state 2017-07-10 15:57:47 +02:00
Wolfgang Taferner 69028f9997 [FIX] google_calendar: fix wrong recurrency field name used when updating event
Google API: recurrence | Odoo field: recurrency

Closes #17307 .
2017-06-01 12:25:23 +02:00
Wolfgang Taferner c444b5a293 [FIX] google_account: fix google request exception management
Error thrown by google request is an urllib2.HTTPError that can be read
and loaded in JSON. However in some cases the result of the read may
be void or not JSON-ready. This was causing a crash in the error
management and hid the actual issue.

This commit tries to read and JSON-load the error but fall back on
simply displaying the raw error in case of issue when handling it.

Closes #17308 .
2017-06-01 11:28:43 +02:00
Wolfgang Taferner 26e88569c5 [IMP] account: fields of refunds streamlined for better inheritance
Closed 17065
2017-05-29 14:21:33 +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
Wolfgang Taferner fe70f0711f [FIX] point_of_sale: backport of a2319b4 + fix
When a PoS order is closed, the payment and the sales journal item are
not automatically reconciled. This potentially leaves a lot of
unreconciled entries for a customer, which will appear in his follow-up
report.

This introduces an auto-reconciliation process upon order closing. The
process restricts the reconciliation to an order individually, i.e. we
don't try to cross-reconcile several orders for a customer.

opw-697565

Add missing sudo to allow a user without accounting rights to close a session
and reconcile entries.

Closes #16517
2017-04-26 17:00:46 +02:00
Wolfgang Taferner 29bc0d811d [FIX] base: Make sure start time is not undefined
As debugging might be enabled during runtime we need to make sure that
the condition does only pass in case start time is defined
2017-04-25 12:43:33 +02:00
Wolfgang Taferner 46e10baeac [FIX] point of sale: readonly attributes incomplete
We do not want to allow the change of a related config via a pos.order
and in case the pos.order is done or invoiced we should not be able to
change the user_id anymore and the fiscal position should never ever be
changed after the order is not in draft anymore.
User editable introduced at dca370d7.

Closes #16372
2017-04-11 15:09:14 +02:00
Wolfgang Taferner bf781cf740 [FIX] mrp: BoM count detection in case it is a single variant
In case a product is a single variant we should not leave it with a BoM
of zero as soon there is a BoM for its template. This would for example
hide the `compute_price` object button which relies on the `bom_count`to
be visible.

BoM is not found for a single variant product and compute price not
possible from the `product.product` view although it is implemented
actually there.

Closes #16237
2017-04-05 12:00:39 +02:00
Wolfgang Taferner 51975ccf5a [FIX] doc: wrong header syntax for field 2017-04-03 10:08:37 +02:00
Wolfgang Taferner 0fd502ed9f [IMP] point_of_sale: allow to override auto printing
As show is needed to call super it is impossible to override the
function without running into the immediate print. It is possible though
that you might need some delay that local CPU has rendered everything on
the PoS Ticket before printing...based on this you are able to override
the handle_auto_print and add a delay there.

Closes #16174
2017-03-31 10:12:42 +02:00
Wolfgang Taferner 8e7f34c323 [FIX] web: domains might be undefined, so we check
Introduced recently in b2d66d0c14

opw-726354
Closes #16068
2017-03-28 15:02:47 +02:00
Wolfgang Taferner 17caa7076d [FIX] point_of_sale: restore removed but used images
Used in the big scrollbars display in CSS

Closes #15523
2017-02-17 15:00:05 +01:00
Wolfgang Taferner 896f5c0886 [FIX] Invoiced orders should never create a duplicated account move 2017-01-23 12:39:45 +01:00
Wolfgang Taferner 3ea4fb92b3 [FIX] base: user partner must be kept global on company switch
Introduced when migrating base to new API with 7eab8e2.

closes #14374
opw-694319
2016-11-21 16:28:55 +01:00
Wolfgang Taferner f8c8715188 [FIX] account: partner of account move
The partner of an account move is defined as a related on the partner of
the move lines. This kind of relation implies that the partner of the
account move is the partner of the first account move line. This is
arbitrary and doesn't make much sense.

Closes #14167
opw-693289
2016-11-08 15:56:21 +01:00
Wolfgang Taferner c39ca45c6d [FIX] config: avoid to accept server-wide-modules with None as a module
Fixes #14048
Fixes #14045
Closes #14051
2016-10-28 15:02:52 +02:00
Wolfgang Taferner cb5fd87e7f [FIX] point_of_sale: handle returns always correctly
We support 'returns' in the POS frontend by allowing the user to
specify a negative quantity. Before this patch however, the backend
would always generate a single picking per pos.order. This is
problematic when a pos.order contains both lines with a positive and
negative quantity. The generated move lines would not all have the same
source and destination location and so could not be added to the same
picking.

This commit creates an extra 'return' picking when required and assigns
the generated moves to the correct picking.

opw-690812

Closes #13929

Forward-port of 19cca50e7c
2016-10-27 15:52:43 +02:00
Wolfgang Taferner 19cca50e7c [FIX] point_of_sale: create two pickings for one POS order when required
We support 'returns' in the POS frontend by allowing the user to
specify a negative quantity. Before this patch however, the backend
would always generate a single picking per pos.order. This is
problematic when a pos.order contains both lines with a positive and
negative quantity. The generated move lines would not all have the same
source and destination location and so could not be added to the same
picking.

This commit creates an extra 'return' picking when required and assigns
the generated moves to the correct picking.

Closes #13699
Closes #13762

opw-690812
2016-10-24 17:25:15 -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
Wolfgang Taferner 71fd0829ef [FIX] anonymization: intercept exception in case of removed models and fields 2016-09-21 21:34:11 +02:00
Wolfgang Taferner a2fa7ec75f [FIX] Remove useless nested class as it breaks compilation 2016-08-25 10:46:48 +02:00
Wolfgang Taferner cba50c30ab [FIX] base: harmonize state code ISO 3166-2 without country prefix
This commit closes #13080
This commit closes #13069
2016-08-10 21:46:34 +02:00
Wolfgang Taferner 05645343c3 [FIX] account: fix typo introduced by forward-port
Broken by forward-port 3cdcc670fc

Fixed by using correct model and method name.

Closes #12818
2016-07-18 19:46:56 +02:00
Wolfgang Taferner 272c7b26fc [FIX] account: fix potential traceback
`all([]) = True`, therefore if there is no `matched_debit_ids` or
`matched_credit_ids` on a payment ==> boom when you access
`payment.matched_debit_ids[0]`

opw-677157
Closes #12232
Closes #12242
2016-05-31 14:47:37 +02:00
Wolfgang Taferner 29d28b05e4 [FIX] account_check_writing: modify voucher amount without company
The code used the key vals['company_id'] while it was not checked it was present
in the write call (and it should not necessary).
If a key is not present, browse the record instead.

Fixes #8906
2015-10-07 12:14:30 +02:00
Wolfgang Taferner 4f41c3327c [FIX] website_sale: make checkout fields customizable
[FIX] Valuable checkout hooks for website_sale
[FIX] Values might need to be changed for different field mappings
[FIX] Make definition of form fields inheritable within a function
[FIX] Make shipping_info values available for inherited module manipulation

Close #8490
2015-09-18 21:17:51 +02:00
Wolfgang Taferner b89b7e0554 [FIX] website_sale, website_sale_delivery: Improve GA eCommerce data
As eCommerce is not complete and could be improved easily and was
not working anyway until
https://github.com/odoo/odoo/commit/9d0cb024fdc784fa7d53fecd3f0b9125c6f06481

- Use EAN13 instead of internal product id if available
- Add tax to transaction data
- Add shipping costs if available to transaction data
2015-09-08 18:06:38 +02:00
Wolfgang Taferner f41026631f [FIX] account: add missing onchange attribute for payment term computation
Fixes #5118
Closes #7777
2015-08-11 10:36:04 +02:00
Wolfgang Taferner 52edf789c2 [FIX] auth_crypt: safer import of base module
Commit 856bc6f2b1
may cause an issue if the auth_crypt module
is loaded before the base module. That should never
happen in normal circumstances, but forcing an
explicit import does not hurt and makes it safer.

Closes #6742
2015-07-29 12:19:55 +02:00
Wolfgang Taferner 9d0cb024fd [FIX] website_sale: fix google analytics variable from google snippet 2015-07-27 21:58:33 +02:00
Wolfgang Taferner c776dce531 Revert "[FIX] product_extended: cost price computation from BOM"
This reverts commit 2f5d681135.

The previous commit was intended to fix a wrong assumption in case the
purchase uom was different to the standard uom.

The wrong assumption:
- price is related to purchase uom
- therefore it was tried to convert the bom price accordingly
- as the price needs to be already in standard uom it does lead to a
wrong calculation now

Closes #7421
2015-07-03 12:16:55 +02:00
Wolfgang Taferner 0ec704f8ec [FIX] stock: UoM of a product should not be changed when done stock moves exist.
Backport from saas-6 (242a76cc97)

Closes #7224
opw-643168
2015-06-23 16:16:50 +02:00
Wolfgang Taferner 2f5d681135 [FIX] product_extended: cost price computation from BOM
having lines with products using a different UOM for
sales and purchases

If a product does have a (different) purchase uom, we should first
take it as a base for calculating prices as the standard price relates
to it and not the sale (normal) uom.

Closes #6829
opw-640616
2015-06-08 11:13:05 +02:00
Wolfgang Taferner e5a8d21a60 [FIX] Return picking moves do not match the return picking type and also
do not have a warehouse set (which can be retrieved based on the
picking_type in use)
2015-05-26 19:59:16 +02:00
Wolfgang Taferner b4802bbdd9 [CLA] Wolfgang Taferner 2015-05-26 15:30:45 +02:00
Wolfgang Taferner 6b1f475bb5 [FIX] Missing possibility to define a file_type on creation/write of a
document which leads to an error message in case the indexer could not
retrieve the content type automatically.
2015-03-06 10:10:41 +01:00
Wolfgang Taferner 1e5c68f7a6 [FIX] warning: domain was lost in onchange result
Closes #3127
2015-01-08 17:48:01 +01:00
Wolfgang Taferner 51e399d9ac [FIX] website_sale: shopping cart quantity width (qty > 9) 2014-10-02 18:45:14 +02:00
Wolfgang Taferner 9056c58cb8 [FIX] website_sale: too tiny quantity input (if qty > 9) for all occurences 2014-10-02 18:28:33 +02:00
Wolfgang Taferner 29fefafcd6 [FIX] paymnet_ogon: add missing SHA OUT keys
The SHA OUT list was incomplete and therefore SHASIGN was not matching anymore
List of keys from https://viveum.v-psp.com/Ncol/Viveum_e-Com-BAS_EN.pdf
2014-09-25 15:01:16 +02:00
Wolfgang Taferner b09a766f0a [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR)
Makes ordering transitions easier and more deterministic.

(Rebase of #1564)
2014-08-05 12:26:28 +02:00
Wolfgang Taferner fd223b1d5d Add quantity in variable factor too...
I forgot to add the changes before committing
2014-05-17 16:02:15 +02:00
Wolfgang Taferner 65cd88d216 [IMP] Added quantity as type and variable_factor + sequence for flexibility to delivery grid line 2014-05-17 09:08:25 +02:00