Commit Graph
117156 Commits
Author SHA1 Message Date
Nicolas Martinelli 0e7f3be6b6 [FIX] stock: incorrect decorator 2017-11-03 08:57:27 +01:00
xmo-odoo b62bb5add2 IAP doc: tutorial (#20317)
* [ADD] doc: iap tutorial

Should be easier to approach than the raw APIDoc. 
contains:
- overview of the flow
- tutorial (coalroller) with guidelines
- technical description of objects/helpers
2017-11-02 19:06:33 +01:00
qsm-odoo 9818f1c535 [FIX] web_editor: allow selecting an uploaded img without crash
Somehow, fixing multi selection with https://github.com/odoo/odoo/commit/e011d58bee140411ccfb1ef9115dddc090d573c3
broke the use of the image upload button combined with no selected
image at the beginning.
2017-11-02 17:02:00 +01:00
Martin Trigaux be7927d629 [FIX] payment_buckaroo: remove bad link
The link does not work anymore.
Even when it was, it did not provide any information as can be seen in
https://web.archive.org/web/20160608025556/http://www.buckaroo-payments.com:80/business/customers/online-payment/

Fixes #16987
2017-11-02 16:34:11 +01:00
Martin Geubelle 3e63f01cf1 [FIX] web: FieldSelector: add model in field attributes
The key `model` was missing in the FieldSelector selected fields.
The model can be useful for example to create a one2many related field.
2017-11-02 16:02:11 +01:00
Simon Lejeune b2466c80ae [FIX] mrp: default view of stock move line
This view was introduced by rev[1] to be more adequate in the usecase
of the finished move line in mrp. A priority was not set and thus it
became the default view for stock move line, even in the stock
application. Moreover, it used a field only used in mrp in a domain
resulting traceback when displayed in the context of stock.

[1] f6c89de81e

Fixes #20610
2017-11-02 15:33:47 +01:00
Moises Lopez - https://www.vauxoo.com/ 534f91d496 [I18N] base_vat: VAT Translation for es_MX
Closes #20613
2017-11-02 15:26:45 +01:00
Martin Trigaux a7fda25301 [FIX] mrp: unclear label
Missing verb or something
Courtesy of Translators
2017-11-02 15:19:01 +01:00
Simon Lejeune 50a6f50df1 [FIX] mrp: production chained to a done or cancelled move
Do not try to run `action_assign` on the next move if it is done or
cancelled. The issue is that `action_assign` will first unlink the
existing pack operations before creating new ones, and the system
forbids to unlink these ones.

To reproduce this issue:
1. Create a product, routes manufacturing and MTO
2. Create SO with that product
3. Go to DO and force assign then cancel the delivery
4. Go to Manufacturing order created and produce

opw 778897
2017-11-02 14:02:18 +01:00
Laurent Smet 455b5aaff8 [FIX] account, point_of_sale: fix rounding issues with taxes computation (#20573)
Suppose a tax of 20% with price_included = True and apply this tax on 399.99:
- base = 399.99 / 1.2 = 333.32500000000005
- tax_amount = base * 0.2 = 66.665
- round(base) + round(tax_amount) = 333.33 + 66.67 = 400.0 (!= 399.99: WRONG)

-opw: 777925
2017-11-02 14:02:04 +01:00
Yenthe V.G 112ed4f54d [FIX] base: correct typo
Closes #20601
2017-11-02 13:57:01 +01:00
Xavier Morel e134dde867 [FIX] base: make partner.company_type properly writeable
In 7eab8e26d3 res.partner was converted
to the new API, at that point company_type was changed from a stored
field manually synchronised with is_company (through create/write
overrides) into a proper computed field.

However to make it "editable" it was simply marked as
"readonly=False", which means even though UI-wise it looks editable
editing it does not actually do anything (things work in the partners
form because there's also an onchange which updates is_company on the
fly).

Fix by implementing an inverse function and actually do this
correctly.

Fixes #20623
2017-11-02 13:14:59 +01:00
Nicolas Martinelli 75b7f62783 [FIX] maintenance: default supplier
- Go to Maintenance Requests, Create
- Go to 'Equipment' field, 'Create and edit'
- Go to 'Product Information' tab
- Click on 'Vendor' field, 'Create and edit'

'Is a Vendor' field is False

opw-779200
2017-11-02 11:51:24 +01:00
Olivier Dony ec00c27ca3 [FIX] auth_signup: correct leftover from 6d16915d39
The /web/signup controller was also supposed to get the special frame
header, like all sign-in/up pages.
2017-11-01 23:38:56 +01:00
Simon Lejeune ee2b9fae35 [FIX] sale_stock: launch procurement rule and locked
If the user chose to "lock confirmed orders" in the sales's settings,
the procurements where not runned correctly and the associated delivery
orders were not created.

This issue is caused by the fact that `_action_launch_procurement_rule`
was done on done sale order line. We refactore the method so that we
call this method always when the sale order line are in `sale` state.

Fixes #20599
2017-10-31 17:20:46 +01:00
Simon Lejeune 3b91780bc0 [REF] stock: result package consistency
Make sure that the all move lines having the same result package have
the some destination location. This should not happen with the
previous commit.

Adapt the tests accordingly, their behaviour was wrong.
2017-10-31 17:13:27 +01:00
Simon Lejeune f4866ab7f9 [REF] stock: domain on packages fields on move line
The user can only chose packages from the same location as the move line
as a source package.

The user can only chose packages
  - of the same destination location as the move ine
  - without location (meaning, empty)
  - of the same id as the source location
as a destination location.
2017-10-31 17:12:55 +01:00
Martin Trigaux 498bbb3fe7 [I18N] better string labels
Courtesy of the translators
2017-10-31 16:57:24 +01:00
Christophe Simonis 8f1e2044cd [MERGE] forward port branch saas-16 up to 810b6aa760 2017-10-31 16:29:07 +01:00
Simon Lejeune c8b2f5ca9e [FIX] stock: show detailed operations view
When enabling the unit of measures, it was not possible to save a move
line as product_uom_id is required in the model and readonly in the
view. We add the "force_save" attribute.

Courtesy of @lap-odoo
2017-10-31 15:48:10 +01:00
Christophe Simonis 810b6aa760 [MERGE] forward port branch saas-15 up to d1fcca1504 2017-10-31 15:25:01 +01:00
Richard Mathot b9b6deff8e [FIX] l10n_br: wrong & pointless field redefinition
Fields `amount_type` on `account.tax` and `account.tax.template` are
already defined in the `account` module.
Redefining them here (with the same parameters) breaks every other
module that would have used `selection_add=` on those fields.

Actually, it is the case in `account_tax_python`, and thus, all the
localizations/customizations that depend on it were broken by this one.

~ Old API backport of 5d0d80afa5 ~
2017-10-31 13:21:16 +01:00
Stefan Rijnhart 5d0d80afa5 [FIX] l10n_br: wrong & pointless field redefinition
Fields `amount_type` on `account.tax` and `account.tax.template` are
already defined in the `account` module.
Redefining them here (with the same parameters) breaks every other
module that would have used `selection_add=` on those fields.

Actually, it is the case in `account_tax_python`, and thus, all the
localizations/customizations that depend on it were broken by this one.

(issue spotted by 11.0-nightly)

Closes #19812 #20596
2017-10-31 13:13:16 +01:00
Christophe Simonis d1fcca1504 [MERGE] forward port branch saas-14 up to a0157f104f 2017-10-31 12:36:47 +01:00
Christophe Simonis a0157f104f [MERGE] forward port branch 10.0 up to dcce040a63 2017-10-31 12:07:15 +01:00
Christophe Simonis dcce040a63 [MERGE] forward port branch 9.0 up to f41690538d 2017-10-31 11:47:35 +01:00
Martin Geubelle 81a5c1563a [FIX] web: FieldSelector: always keep first page
In the FieldSelector, after clearing the chain and closing the popover,
the very first page was removed from the widget `pages`. This was causing
issue when trying to select a new field again.

This commit ensures that the first page is not sliced.
2017-10-31 11:38:29 +01:00
Richard Mathot 78e46637a2 [FIX] point_of_sale: dead file 2017-10-31 11:05:18 +01:00
Fabien Meghazi df0cc479fc [FIX] doc: fix typo 2017-10-31 09:57:48 +01:00
Adrian Torres ba9381ed2a [FIX] base_import_module: display correct error
Previous to this commit, when importing a studio module with unmet
dependencies that were not studio the error message would just display
the Studio is required to install Studio customizations.

With this commit it should now correctly display the missing
dependencies by checking if only web_studio is in the set of unmet
dependencies

opw-777642
2017-10-31 08:22:59 +01:00
Deep Patel 0e9197c562 [FIX] website: bg element not found when using big parallax snippet
qsm:
This is because of multiple animations during edition (which is not
occuring afterwards). This is not supported, but as it does not break
anything, it can be kept as it is. However, we cannot access the
animation via 'snippet-view' anymore, which is fine as I am about to
deprecate it in master.
2017-10-30 17:35:02 +01:00
Martin Trigaux 0634b04a08 [CLA] correct dxFactory CCLA
opw-778925
2017-10-30 17:18:50 +01:00
Raphael Collet 2c61c54ffa [FIX] models: nonsensical special case in CSV export (#20499)
Remove weird special case: when the first field of the first line of a one2many
is empty, replace this first field by the comma-separated names of the lines,
and discard the other lines.
2017-10-30 17:12:45 +01:00
Goffin Simon 6e06c54c8e [FIX] product: Inventory at Date does not show the correct valuation
Fine tuning of this commit: 51d072db44

When clicking on the group of the Inventory at Date, the
product.price.inventory must follow the same order as the
read_group in stock.history.

opw:747857
2017-10-30 17:02:38 +01:00
Martin Trigaux 5309ac2876 [CLA] dxFactory signs CCLA
Done at opw-778925
2017-10-30 16:49:47 +01:00
xmo-odoo 8e1ab16441 [FIX] core: mode of output file for t9n export
trans_export has been decided to use a *bytes* output buffer as some of
the output formats are text-ish (e.g. po) but others are definitely
binary content (e.g. XML). Therefore, when calling trans_export with a
*file*, it needs to be open in *binary mode*.

Fixes #20555
2017-10-30 16:18:04 +01:00
Xavier Morel e8dc72fd69 [FIX] doc: handle unknown browser globals better
Before this, if a new global was added to JS code (module toplevel,
function bodies are not considered) it would blow up when attempting
to resolve variable refs & uses.

Make the toplevel scope a defaultdict such that if e.g. a "foo" is
looked up in a module but not a local variable of that module it's
assumed to be an UnknownNS object (from which further UnknownNS can be
deref'd).
2017-10-30 16:16:41 +01:00
Géry Debongnie 3c55407f11 [FIX] web: allow dropdown selection in m2o
Before this commit, many2one fields were not (fully) usable in a list view: if
the user wrote some text, then when a dropdown with various choices
opened, pressed the 'down' key (to select a choice), the down keypress
caused a navigation move to the next line, which cancelled the
selection.

In this commit, we make the assumption that if the many2one dropdown is
opened, then navigation moves are not what the user wants.
2017-10-30 16:04:43 +01:00
qsm-odoo 9417afa4f6 [FIX] base: use email widget on contacts email fields
Before this commit, no widget was used which resulted in the emails
being able to overflow the kanban cards.
2017-10-30 14:14:44 +01:00
Webkul 467b800f5f [CLA] Webkul sing CCLA
Done at #20534
2017-10-30 13:20:10 +01:00
Nicolas Martinelli 185820e134 [FIX] google_calendar: P3 compat
In P3, `dict.keys()` returns a `dict_keys` object, which cannot be used
in a domain.

We convert to a list.

opw-779139
2017-10-30 12:37:18 +01:00
Odoo Translation Bot c7a51e69bc [I18N] Update translation terms from Transifex 2017-10-30 12:23:21 +01:00
Nicolas Martinelli bb8f41d2a6 [FIX] account_asset: do not create move
- Create an asset, post one line.
- Go back to the asset => the button is green
- Click again on the line => the button is orange

There is no protection to prevent the user to post the same entry
several times (a new account move is created every time it is clicked).

We fix the JS widget, but we add an extra layer of protection at the
Python level.

opw-778756
2017-10-30 12:21:19 +01:00
Vailiy Korobatov f476d069f4 [FIX] doc: correct view reference
Closes #20556
Closes #20557
2017-10-30 11:56:24 +01:00
Pierre Masereel 5e3b86b90c [FIX] stock,product_expiry: simple view of lots
When a lot is quick created, we don't want to be able to select a
product different than the one passed as default. So we have defined
where the product_id is readonly, and we still use the old view when a
lot is created from the menuitem lot.
2017-10-30 11:30:57 +01:00
Lucas Perais (lpe) ce8b51d867 [FIX] point_of_sale: keep keypress handler on body (barcode usability)
Commit b131e9b0ef changed the way the keypress event was bound from vanilla JS to JQuery

In the pos, since it cleans up every jquery event for performances' sake, this binding was cancelled.

This commit cleans up the cleanup process of event at pos startup and rebind the keypress event to the now clean body.

OPW 778565

[FIX] point_of_sale: barcode bindings other strategy

closes #20535
2017-10-30 11:29:42 +01:00
Martin Trigaux c3bf1618bd [FIX] auth_signup: properly display the error message
Was "('Passwords do not match; please retype them.', '')"

Introduced at 676022e3
2017-10-30 11:19:00 +01:00
qsm-odoo 81fffdbdc4 [FIX] website: restore snippet animation API
Before the website refactoring, snippet animations were cleaned thanks
to the `stop` method. As those animations are now extensions of the
standard `Widget` class, the `stop` method was replaced by the standard
`destroy` method. This was tweaked so that the $el is not removed from
the DOM, but with proper cleaning of events. However, this changed the
way the `stop` method content has to be called. Indeed, we should be
allowed to call the `_super` method and then use the $el variable.
2017-10-30 10:46:22 +01:00
Yenthe V.G a9274dcd24 [FIX] stock: typo in UserError
Closes #20565
2017-10-30 10:41:03 +01:00
Martin Trigaux e1e3b5a56e [IMP] i18n: better terms and labels
add missing string labels
rephrase the error message
add missing _description
removed forward-ported hr_equipment.pot

was unclear, courtesy of the translators
2017-10-30 10:40:01 +01:00