Commit Graph
113800 Commits
Author SHA1 Message Date
Pierre Masereel 2d3e6d7383 [IMP] purchase: edit received quantity on purchase_line when type service
When we purchase products of type services,the received quantity is
always set to the ordered quantity.

We want to be able to manually enter a received quantity on service
products to have a better trace of what have been received or not.

We show the picking stat button olnly if there are picking

We show the columns qty_received, qty_invoiced and invoice_status
depending on the parent state, and not depending on the context passed
in the menu item.
2017-11-08 15:28:07 +01:00
Stefano Rigano 0a5b2ea831 [IMP] account: Configuration steps UI improved
* responsiveness
- Force flex-flow (avoid to apply side-chatter rules)
- Use odoo base padding
- Hide the configuration steps on mobile

* use same name in settings
* improve design

Was PR  #20754
2017-11-08 13:29:28 +01:00
Martin Trigaux 42a402bf0e [FIX] calendar: move event type to demo data
Event type is dependant of the business time

Partially fixes #20634
2017-11-08 10:01:42 +01:00
Olivier Dony eb391c2ae2 [IMP] base: improve consistency of ACL views
Further improves on previous commit:

- Remove some unnecessary cruft
- Make names/labels more consistent
- Make fields and their ordering more consistent in list views
- Change "active" field on rules into an "Archive" button
- Slightly improve inline doc on rules form view
- Add colors for "global" rules and "apply-for-all" access rights
  ('Global' is an info, but "Apply For All" is a warning, as it can
   indicate an ACL problem)
2017-11-07 18:26:40 +01:00
Florent de Labarre 01d5d7b4d9 [IMP] base: improve visibility of ir.rule entries
- Add a tab to view applicable rules on the form view of Models
- Add a few missing fields in the rules list on the form view of user
  Groups

Closes #20702
2017-11-07 18:26:40 +01:00
Christophe Monniez 5048f6e642 [IMP] hr_recruitment_survey: Improve test to cover more features 2017-11-07 16:26:15 +01:00
Christophe Monniez f5bf961258 [IMP] account: Remove unused yml files 2017-11-07 16:26:15 +01:00
Christophe Monniez 16a374c0fe [IMP] l10n_fr: Remove unused yml test 2017-11-07 16:26:15 +01:00
Christophe Monniez 5411fbeae7 [IMP] base: Convert res_partner demo yml file into xml 2017-11-07 16:26:15 +01:00
Christophe Simonis c3746bc3dc [MERGE] forward port branch 11.0 up to 449ec5e29d 2017-11-07 15:33:04 +01:00
Christophe Simonis 449ec5e29d [MERGE] forward port branch saas-16 up to 255478acbd 2017-11-07 15:28:28 +01:00
Christophe Monniez 8670f62e3c [REF] documentation: reorganize setup/install
Odoo setup/install documentation needed a re-organization and an update
to reflect the latest dependencies versions.
There was too much warnings and danger signs on this page.
Finally, the structure was not the same for each install method.

* As CentOs is actually too old to handle python3 dependencies for Odoo,
  rpm install method is explicitely mentioning Fedora 26.
* The "yum" package manager has been deprecated in Fedora and replaced
  with "dnf".
* As Debian and Ubuntu don't ship a python3-num2words package, the
  documentation must provide a hint on how to install the module using pip.
* The documentation was missing the virtualenv way of installing Odoo.
* Paragraphs mentioning configuration file were removed. The
  reference/cmdline page should be updated consequently.
2017-11-07 14:22:43 +01:00
Yannick Tivisse 1c178eb896 [IMP] convert.py: Extend accessible variables in '_tag_record'
Purpose
=======

Currently on <record> tags, it's impossible to use 'datetime' or 'obj' when using 'search' attribute on a field.

The following example won't work:
<record id="foo" model="model.model">
    <field name="bar_id" search="[('company.id', '=', obj([]).env.user.company_id.id)]"/>
</record>

Specification
=============

Use '_get_idref' to extend the accessible variables on the 'safe_eval' computation.
2017-11-07 14:15:13 +01:00
Rémi Rahir e08ce34334 [FIX] doc: iap doc
Added missing images in the documentation.
2017-11-07 14:13:50 +01:00
Martin Geubelle 255478acbd [FIX] web: clear m2o input at creation cancel
After entering a value in a many2one, if one clicks somewhere else, a popup
is opened to suggest the user to create (or not) a new record with the entered
value.

Before this rev, closing this popup resulted in an unclear situation where the
input was still set with the entered value but the new record hadn't been created.

This commit fixes this by clearing the input value if the record is not created.

See task#36055
2017-11-07 14:12:18 +01:00
Simon Lejeune 2fe84fd217 [FIX] stock: a view location cannot contain any quant 2017-11-07 14:01:33 +01:00
Martin Trigaux d0e1650042 [FIX] sms: correctly fetch the phone number
`records` is the `active_model` object
from `records`, we retrieve `partners` on which there is a field mobile

Fixes #20134
2017-11-07 13:50:59 +01:00
Martin Trigaux 35b66c8f9e [FIX] sale_timesheet: clarify field label
Was unclear
Courtesy of the translators team
2017-11-07 12:17:39 +01:00
Nicolas Martinelli 02dfd4fed8 [FIX] l10n_us: ABA/Routing number
Edit/create a bank account:
- Add a correct ABA number => nothing is displayed
- Add an incorrect number (e.g. with letters) => it crashes

Combining an `Integer` field with a `char` widget is just a bad idea...

opw-781069
2017-11-07 12:14:45 +01:00
Christophe Simonis 45958ab312 [MERGE] forward port branch saas-16 up to 5f9c3f51a8 2017-11-07 11:45:42 +01:00
Yannick Tivisse 70a521205a [IMP] l10n*: CoA loading yml files to xml 2017-11-07 11:43:46 +01:00
Yannick Tivisse 5b8e4a370e [IMP] hr_recruitment_survey: Convert yml test into python 2017-11-07 11:43:46 +01:00
Jeremy Kersten f8bf66b6de [FIX] website_crm_partner_assign: assign opportunity to the commercial_partner_id
Before this commit, an opp created from a contact via the portal was assign to
himself instead of the commercial_partner_id.

So the saleperson was not assigned to the opportunity, and the opp created was
not for the company but for the contact only.

That make sense to share the opp to the company and assign the saleman directly.

Thanks to GBR for the reporting.
2017-11-07 11:38:12 +01:00
Christophe Simonis 5f9c3f51a8 [MERGE] forward port branch saas-15 up to db4886d511 2017-11-07 11:01:14 +01:00
Christophe Simonis db4886d511 [MERGE] forward port branch saas-14 up to 928a284b11 2017-11-07 10:59:45 +01:00
Nicolas Martinelli a824b9121f [FIX] l10n_us: ABA/Routing number
Edit/create a bank account:
- Add a correct ABA number => nothing is displayed
- Add an incorrect number (e.g. with letters) => it crashes

Combining an `Integer` field with a `char` widget is just a bad idea.
Therefore we simply change the type of field and add the appropriate
contraint.

opw-781069
2017-11-07 10:52:21 +01:00
Dhaval Panchal 0a8c5c12e5 [IMP] sale_stock: display quantity available in other warehouses
When we are creating a sale order line of a product that doesn't have
sufficient quantity in stock, we get a warning saying that you don't
have the quantity entered in stock.

We improved this warnig by showing the remaining quantities in the other
warehouses of the company.
2017-11-07 10:44:56 +01:00
Martin Trigaux 8e298f69cd [FIX] base: correct ISO language code
Bad ISO 639-1 code
In 9.0 iso_code was guessed with `get_iso_codes` which was too simplistic
e.g. it_IT => it (correct) but ja_JP => ja_JP (incorrect)

Fixes tw:tashiropen/status/927779483041415168
2017-11-07 09:49:29 +01:00
Christophe Monniez 77ca51f089 [FIX] base: set mimetype on js and css assets
On MS Windows, the mimetypes module relies on the Windows Registry to
guess mimetypes. As a consequence, when generating assets bundle for
javascript files, the mime type of js files may be wrong. In that
particular case, the Odoo user is facing an empty web page.
This commit enforce 'application/javascript' for js assets when they are
saved as ir_attachment in the database.
2017-11-07 09:28:25 +01:00
Hbto [ Vauxoo ] 99989ad84b [FIX] account: fix _compute_parent_state() if called on more than 1 record
Was PR#20479. Courtesy of Vauxoo
2017-11-07 09:19:01 +01:00
jem-odoo e6d4bdf72b [FIX] resource: avoid duplicate attendances when updating module
Since some calendar are in data, and their attendances
in an 'eval' with '0' ORM command, we need to put them
in noupdate mode to avoid duplicating attendances when
we update the module.
2017-11-07 08:57:29 +01:00
Simon Lejeune 4a5f07654f [FIX] stock: origin and partner_id when procurement group is set
We chose to erase the partner_id and ref field on a picking when its
content may refer to multile records. Note that the partner_id field was
already hidden in the view of internal picking.
2017-11-07 08:23:16 +01:00
Joren Van Onder 82a90bc094 [FIX] pos_mercury: decode bytes from ir.ui.view render and requests
Due to switching to P3.

opw-779720
2017-11-06 19:56:26 -08:00
Joren Van Onder 2dfcc18950 [FIX] pos_mercury: escape_html does not exist
It's called html_escape. Introduced in
e2f1af78c4.

opw-779720
2017-11-06 19:56:18 -08:00
Christophe Simonis 928a284b11 [MERGE] forward port branch 10.0 up to 08ab28a66c 2017-11-06 16:00:15 +01:00
Martin Trigaux dc6757032f [I18N] mail: clarify the view button
View may be the action or the object
It is not translated the same way in some languages (e.g. Fi)

Fixes #20595
2017-11-06 14:39:10 +01:00
Nicolas Martinelli 08ab28a66c [FIX] sale_expense: fields consistency
Use case to reproduce:
- Set a product to be expensed
- Set the expense_policy to something else than no
- Do a delivery order with a picking
- Validate the picking
-> Delivered quantity to 0 and impossible to create an invoice
if the invoice_policy is delivered_quantity

It happens due to this commit 48ea59d
What does it do:
- The move could be generated by an expense.
- If the move has 'no' as expense policy thus we won't add it in the invoice
Problem we can't guess if the move come from an expense or not (limitation).

This commit add an onchange on can_be_expense is order to set the expense
policy back to 'no' when the user uncheck it.

Courtesy of amoyaux

opw-777139
2017-11-06 13:05:37 +01:00
Alexandre Kühn d8714effc5 [DOC] views: gantt with create/edit tags
Gantt views support the tags 'create' and 'edit'.
see corresponding commit: https://github.com/odoo/enterprise/commit/34110057583a23070a9bb47011bec4fb1a1c98db
2017-11-06 13:03:50 +01:00
Wolfgang Taferner 939e00abc4 [FIX] account: remove duplicated methods 2017-11-06 12:51:03 +01:00
Christophe Simonis 88c641e6dc [MERGE] forward port branch 10.0 up to 6c1c1f6e9e 2017-11-06 12:42:56 +01:00
Géry Debongnie 8bb6bf4e44 [DOC] base: improve error message in asset bundles
When compiling a less file in the asset bundles, we make sure that the
@import statements are 'sanitized', which is really non intuitive to
many developers.  With this commit, we simply add more information to
the error message, to give them a better chance of not wasting their
time.

Thank you yenthe for the message...
2017-11-06 11:45:03 +01:00
rde fae62ea457 [FIX] website_sale: promo code remove duplicate display and popover
Before this commit:
1. The promo code form would be displayed in the cart popover (when you
   mouseover the 'My Cart' menu in the navbar.)
2. The promo code form would appear twice at the 'Payment' step at the checkout

Now:
1.  The promo code form is not displayed in the popover anymore
2.  The promo code form will only be shown once at the checkout 'Payment' step

This closes #20539
2017-11-06 11:19:46 +01:00
Yannick Tivisse 117351e121 [REM] account: Remove unused yml tests 2017-11-06 10:58:28 +01:00
Yenthe V.G 8787f5acee [FIX] website: Redirect search to correct controller
This commit closes #20706 and closes #20074
2017-11-05 22:49:45 +01:00
Jeremy Kersten 15b88ee15a [FIX] website: fix 404 page when asset not yet generated
This commit closes #20554
2017-11-05 22:47:25 +01:00
Odoo Translation Bot 11a8728c74 [I18N] Update translation terms from Transifex 2017-11-05 04:37:27 +01:00
Odoo Translation Bot 6c1c1f6e9e [I18N] Update translation terms from Transifex 2017-11-05 01:11:44 +01:00
Fabien Pinckaers b7cb6fe536 [IMP] project: misc typos 2017-11-03 21:13:13 +01:00
Mehul Patel 35182f45eb [IMP] product_margin: Replace yml test by a meaningful python test
Purpose
=======

The original yml doesn't test anything except a read on the related fields.

Specification
=============

Replace the test by a python test that compares the values with the expected ones.
2017-11-03 14:53:53 +01:00
Christophe Simonis bf102b4cbc [MERGE] forward port branch 9.0 up to 6c996723b2 2017-11-03 14:36:22 +01:00