Commit Graph
2854 Commits
Author SHA1 Message Date
Martin Trigaux a9ec2894de [MERGE] forward port of branch saas-6 up to 19fe77b 2015-12-01 08:41:52 +01:00
Denis Ledoux 37c95517c7 [MERGE] forward port of branch 8.0 up to eb5d95b 2015-11-30 15:06:41 +01:00
Denis Ledoux eb5d95b135 [FIX] product: _get_image_variant is used for the field image
This revision is related to 93d4db9d1e.

Usually, for models with an image, the original `image` is stored
in the field `image`, and then the resized value are in the fields
`image_medium` & `image_small`.

In the specific case of the product variant, this is not the case,
the original image is stored in the field `image_variant`,
and the `image` field uses as well the method `_get_image_variant`.

The `image_get_resized_images` must therefore return the "big image"
as well, which is returned with the key `image`, by default.
This is done using the method argument `return_big`.
2015-11-30 13:51:25 +01:00
Denis Ledoux 93d4db9d1e [FIX] product: resized variant images
This is possible to set an image for a specific variant
When this was the case, the image displayed was always the
image within its original size, it wasn't resized
to small and medium sizes.

opw-657055
2015-11-30 13:06:16 +01:00
Odoo Translation Bot b8dfa91613 [I18N] Update translation terms from Transifex 2015-11-29 02:58:05 +01:00
Nicolas Martinelli 2f0135c820 [FIX] product: resets fields
applied_on:

The field applied_on in pricelist rules is not taken into account:
- In the price computation
- In the name computation

When creating a pricelist item, if you select (applied_on = Product)
first and set a product, then select (applied_on = Global), and save the
rule, the computation will still take the product_tmpl_id in the price
computation.

Instead of fixing the whole _price_rule_get_multi method, this patch
sets the fields that should not be taken into account to False.

compute_price:

Add a behavior similar to the applied_on field, to reset unnecessary
fields to zero when the computation method is changed.

Original idea from @tgr-odoo

opw-657148
Closes #9671
2015-11-26 09:57:55 +01:00
Martin Trigaux e8e5405d0c [I18N] Update French translation terms from Transifex
Fixes #9712
2015-11-25 17:22:26 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Nicolas Martinelli 7007cc33d8 [FIX] product, sale*: procurement needed
In v8.0, a procurement is not created by default. Only sale_stock and
sale_service will create procurements, since they are only used for
physical products or task-related services.

In v9.0, the behavior was changed and a procurement was always created.
This is not necessary, since the procurements are still only used for
physical products and task-related services. This behavior will just
lead to the creation of procurements which will fall into exception
(method `_assign` will return False).

This fix switches back to the previous behavior. The other solution was
to prevent the exception, but it will imply that useless procurements
will pile up.

opw-654363
2015-11-24 16:06:42 +01:00
Nicolas Martinelli 1466a0063f [FIX] product: constrain on attribute values
Add a constrains to prevent the selection of more than one value of the
same attribute, as it was the case in v8.

opw-653125
2015-11-23 14:31:29 +01:00
Odoo Translation Bot 3180f80bf9 [I18N] Update translation terms from Transifex 2015-11-22 01:30:36 +01:00
Nicolas Martinelli d38f916cd8 [IMP] purchase, product: suggest minimum quantity for vendor
This commit introduces the suggestion of a minimum quantity for the
chosen vendor. The minimum quantity is suggested only if the quantity on
the line is zero. It still allows the user to set a quantity smaller
than the minimum quantity for the given vendor.

opw-654300
2015-11-20 13:55:04 +01:00
Denis Ledoux d47ee18fef [MERGE] forward port of branch 8.0 up to c9fce1a 2015-11-17 13:19:14 +01:00
Goffin Simon 856b31719c [FIX] product: _check_valid_attribute
To check if the values set for the attribute are valid.

opw:653945
2015-11-16 13:50:19 +01:00
Odoo Translation Bot 396181648c [I18N] Update translation terms from Transifex 2015-11-15 03:03:19 +01:00
Odoo Translation Bot 7a0a649deb [I18N] Update translation terms from Transifex 2015-11-08 03:01:35 +01:00
Odoo Translation Bot 3d7ae73305 [I18N] Update translation terms from Transifex 2015-11-15 01:35:06 +01:00
Odoo Translation Bot 14799a9006 [I18N] Update translation terms from Transifex 2015-11-08 01:32:40 +01:00
Odoo Translation Bot 82cd86f181 [I18N] Update translation terms from Transifex 2015-11-01 03:03:27 +01:00
Odoo Translation Bot e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +01:00
Denis Ledoux 34e90a44f8 [MERGE] forward port of branch saas-6 up to 20dba161d0 2015-10-26 19:17:21 +01:00
Odoo Translation Bot e84c01ebc1 [I18N] Update translation terms from Transifex 2015-10-25 02:02:17 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Odoo Translation Bot a7c474b3a7 [I18N] Update translation terms from Transifex 2015-10-18 03:00:56 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Christophe Simonis 20dba161d0 [MERGE] forward port of branch 8.0 up to c484467 2015-10-10 14:46:23 +02:00
Odoo Translation Bot 8c4f17fd8b [I18N] Update translation terms from Transifex 2015-10-08 10:24:11 +02:00
bramsi 979d23ad8c [FIX] mrp: name_search where args is not defined
In case of name_search with no args (default None, see #8492 for example of
valid scenario, during import)
Construct the domain correcty.

Fixes #8492
2015-10-07 12:50:32 +02:00
Christophe Matthieu afa361f86e [FIX] product: update the name of the pricelist items on change
Issue: when the user create a pricelist item, the function fields (name, price) are updated only on save (the form view) and not on change.
In the pricelist form view, the 'item_ids' one2many receive empty value from the modal (name, price).

Fix: update 'name' and 'price' field to the new v8 api.
2015-10-06 10:40:04 +02:00
Nicolas Martinelli f12e1c26e9 [FIX] product: check parent company when selecting supplier
When searching for a matching supplier, we now accept the parent company
of the supplier.

Fixes #8874
2015-10-05 10:29:56 +02:00
Odoo Translation Bot 04c6ee54d8 [I18N] Update translation terms from Transifex 2015-10-04 03:03:19 +02:00
Christophe Simonis d750206c49 [MERGE] forward port of branch saas-6 up to e9f1ee4 2015-10-01 15:16:59 +02:00
Martin Trigaux 055918370d [I18N] Update translation terms from Transifex 2015-10-01 09:58:29 +02:00
Olivier Dony af4a60b941 [MERGE] Forward-port 8.0 up to rev. 26d0fe6d9f 2015-09-30 02:53:59 +02:00
Stefan Rijnhart 0333e4da02 [FIX] product: default category on UoM quick creation
This revision adds the possibility to use the key
`default_category_id` in the context to set
the UoM category when quick creating a new UoM,
like it's the case everywhere else with the
`default_*` keys passed in the context.

Closes #4407
2015-09-29 16:24:22 +02:00
Martin Trigaux e0eaaee2db [I18N] add l10n_sa and pos_cache terms + reexport
One last export before v9!
2015-09-29 14:40:59 +02:00
Richard Mathot bb78aecc29 [IMP] product: add some demo weights
It is easier to demonstrate the shipping connectors
2015-09-28 17:25:43 +02:00
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Odoo Translation Bot 3dec9e5804 [I18N] Update translation terms from Transifex 2015-09-27 03:07:16 +02:00
Odoo Translation Bot c764b703ca [I18N] Update translation terms from Transifex 2015-09-27 01:58:59 +02:00
Nicolas Martinelli 9577f4e419 [REF] product: do not use selected_seller_id
The function field selected_seller_id is removed  and must be replaced
by a direct call to method `_select_seller`. This is more conventional
than the previous 'browse with context' way of doing.
2015-09-25 11:34:01 +02:00
Nicolas Martinelli b65c67a259 [IMP] product: new product_id field on supplierinfo
We introduce a new field on supplierinfo: product_id. Thanks to this
field, the vendor information which will be used in a purchase order can
be specific to the product variant.
2015-09-25 11:34:01 +02:00
Christophe Simonis 57168a9e90 [MERGE] forward port of branch saas-6 up to a669433 2015-09-23 14:34:26 +02:00
qsm-odoo 3b87ef6dda [FIX] product_*,website_sale: wrong template inheritance
In v8, some fields were added for the product.pricelist formview by
template inheritance : after the active field. For v9, this active
field was moved in a button_box button (archive stat_button), so the
added fields (inheritance) landed in the stat_button too.
2015-09-22 14:28:23 +02:00
qsm-odoo 250b3ba506 [IMP] product: pricelist items formview layout
* Group with 6 columns caused problem when inside a dialog because of
wrong use of labels.
* Use o_row to align input followed by a '%' sign.
* col=6 group should not be in a parent group (moreover: this group was
alone in this parent group).
2015-09-22 13:02:59 +02:00
Odoo Translation Bot b85dd39814 [I18N] Update translation terms from Transifex 2015-09-20 03:04:41 +02:00
Martin Trigaux 387ff476dc [I18N] all: reexport translatable source terms 2015-09-18 10:40:52 +02:00
qsm-odoo 9e8e1b3de7 [REF] *: product categories templates
* = (product,purchase,stock,account,stock_account)
2015-09-17 17:32:02 +02:00
Nicolas Martinelli 86400364af [IMP] product, purchase: demo data
With the new pricelist system, a price should be specified for any
supplier, otherwise the price chosen for a PO is zero.

Also add unit price for existing PO
2015-09-17 15:17:35 +02:00
Josse Colpaert 9ac8d9830e [FIX] Change price history and stock valuation report to standard_price on variant
As the standard price on the product template changed towards the product variant,
we should also change the product price history to be by variant.

Also the inventory value calculated in the Stock Valuation report should be by variant.
2015-09-16 15:25:03 +02:00