Commit Graph
126133 Commits
Author SHA1 Message Date
Christophe Simonis aafa6e38c4 [MERGE] forward port branch 10.0 up to 342d037373 2018-08-21 11:33:53 +02:00
Raphael Collet 0218c4d506 [FIX] stock: missing decorator 2018-08-21 11:03:44 +02:00
Christophe Simonis 342d037373 [MERGE] forward port branch 9.0 up to f750393030 2018-08-21 10:50:32 +02:00
Pedro M. Baeza 87a6b879a2 [FIX] account: Fix tax summary on invoice report
We want to show the base amount for the tax when there are multiple taxes or the
amount is not the invoice total, not the contrary.
2018-08-21 10:36:53 +02:00
Yanina (Vauxoo) 384f6a6254 [FIX] l10n_mx: bad function renaming in COA creation
_prepare_transfer_account had been renamed _get_default_bank_journals_data instead of _prepare_transfer_account_for_direct_creation, by mistake. The original renaming was made at https://github.com/odoo/odoo/commit/87f0d2eefb77bfc6a9a0fa7f7dcd1475c7c34639#diff-ce53c5491cb2c9ab3dbbd41ecabf594f
2018-08-21 10:28:08 +02:00
jeffery chen fan 53889d9ba5 [ADD] l10n_cn: add all china cities
Make the module depends of base_address_city

Closes #23879
2018-08-21 10:20:08 +02:00
Lucas Perais (lpe) cc72b0c2fa [FIX] crm: fix API
Because of 2917b38f28 which appeared in v9.0 but has not been adapted to the new API
afterwards, the early return was out of sync with what a search returns in new API

in v9.0: search returns a list, so must our early return

in v10.0: search returns a recordset, hence the fix

OPW 1878192
closes #26474
2018-08-21 09:37:54 +02:00
Nicolas Martinelli 07b5f205ab [FIX] models: unlink ir.property
On a new DB with demo data, as Demo User:
- Create a partner
- Unlink the partner

An `AccessError` is raised.

The error is raised on `ir.property`, for the field
`property_product_pricelist`. An entry was indeed automatically created
at partner creation. However, a regular user is not allowed to delete an
`ir.property`.

The property can be safely deleted as SUPERUSER as long as the proper
unlink access rights have been tested beforehand.

opw-1870737
2018-08-21 09:32:01 +02:00
Raphael Collet b1cc28be00 [FIX] tests: clean up code
Closes #26467
2018-08-21 09:21:11 +02:00
dat-odoo ca707502a6 [FIX] purchase_requisition: vendor name management from purchase agreements.
Purchase orders created from purchase agreement behave differently depending on
the agreement type.
On one hand, if the agreement is a blanket order, the vendor must be set automatically on the
purchase order and be the same as the BO. Changing the vendor is forbidden.
On the other hand, if the agreement is a call for tender, multiple purchase order can be
created with different vendors. It that case, the vendor field must be editable in RfQ states.

This commit is related to task ID 1866975.
2018-08-21 09:05:20 +02:00
Akram Ben Aissi cae7c71635 [IMP] cli: allows to run odoo with openshift
For containers using random uids[1], use the higher level method getpass.getuser
which as the same effect but also looks consider the environment variables to
determine the user name.

Details from
http://blog.dscpl.com.au/2015/12/unknown-user-when-running-docker.html

CLA signature for akram

Closes #26452

[1] openshift or docker as explained at
http://blog.dscpl.com.au/2015/12/random-user-ids-when-running-docker.html
2018-08-21 08:34:14 +02:00
Olivier Dony f750393030 [FIX] website_forum: properly catch errors for email activation 2018-08-21 03:28:59 +02:00
Vandan ShahandMohammed Shekha f4ee61f950 [IMP] web: mobile: add swipe support in form views
This rev. allows to navigate, in mobile, through records in form
views by swiping.

We also moved mobile-specific tests involving a form view to the
mobile test suite, since those tests became async because of the
lazy loading of the swipe lib (in the mobile suite, that lib is
already loaded).

Related to task #34727

Co-authored-by: Mohammed Shekha <msh@openerp.com>
2018-08-20 21:11:54 +02:00
Jeremy Kersten a7e94f1a83 [FIX] website: remove field from view and security
related to ac58a0ef87
2018-08-20 20:52:02 +02:00
Jeremy Kersten ac58a0ef87 [IMP] website_sale: product.public.category publish feature is useless 2018-08-20 18:07:59 +02:00
Jeremy Kersten 50217184d2 [IMP] website: make abandoned cart parameter website_specific
+ implement specific_user_account option

Now you can choose if when you create an user on a website,
it this user is dedicated to this website or not.
2018-08-20 18:07:59 +02:00
qsm-odoo 4d00958480 [FIX] website_sale: missing href on <a/> element
With BS4, those elements have no style anymore.
2018-08-20 17:59:24 +02:00
qsm-odoo 36430cae5e [FIX] website_event: adapt some layouts to new snippets and BS4 2018-08-20 17:46:46 +02:00
qsm-odoo b4fa0a510e [FIX] website_hr_recruitment: BS4, restore application form layout
Col must be direct children of rows.
2018-08-20 17:46:46 +02:00
qsm-odoo 66a46c3e3a [FIX] website: border-width of inputs was raised for no good reasons 2018-08-20 17:46:46 +02:00
qsm-odoo 604a6673a6 [FIX] website, portal: BS4, force list-group-item colors
Placing a list-group inside an element whose text color is forced is
buggy as the background of list-group items is forced to white and
the text color left untouched.
2018-08-20 17:46:46 +02:00
qsm-odoo fdd89d2a77 [FIX] web: BS4, restore some community nav elements
The 'nav-link' class was added on wrong elements.
2018-08-20 17:46:46 +02:00
qsm-odoo 340d1654f2 [FIX] web: BS4, add a btn-secondary border for community style 2018-08-20 17:46:46 +02:00
qsm-odoo cb83731c21 [FIX] mass_mailing: BS4, restore unsubscribe template
Columns must be direct children of a row.
2018-08-20 17:46:46 +02:00
qsm-odoo 0a6fe87681 [FIX] *: BS4, restore some portal breadcrumb
The new 'breadcrumb-item' class was missing at some places.
2018-08-20 17:46:46 +02:00
Yannick Tivisse 592391d2d7 [FIX] fleet: Move data from 'demo' to 'data' 2018-08-20 17:17:53 +02:00
Florent de Labarre c181033a6d [IMP] tools: replace SQL code
No need to construct the table name, can use the model name

Closes #25659
2018-08-20 16:58:38 +02:00
Denis Roussel f5a8eef02b [FIX] l10n_be_inovice_bba: Missing field in supplier invoices
reference_type was already present in the customer invoice but not in the
supplier invoice

Closes #25732
2018-08-20 16:33:06 +02:00
Adrien Dieudonne 634de21b76 [FIX] web: graph_renderer: check graph data before rendering
Before this commit, we had two different errors when data was
unavailable:
The first one is generated by Odoo: "No data to display, try to[...]"
The second one is generated by nvd3: "No Data Available".

We always want the same message.
So now, we always make some checks before rendering
the graph by calling _render.
2018-08-20 16:10:25 +02:00
XavierDoandRomainLibert 0be33db68a [IMP] mail: refactor activity.js and add some test
activity.js was a little dirty with a lot of copy paste.
Most of the common logic is now in a BasicModel.

This commit also add some tests on activity view

Co-authored-by: RomainLibert <rli@odoo.com>
2018-08-20 16:00:09 +02:00
mreficent 42c2274eac [FIX] test_exceptions: Import correctly safe_eval
Trying to generate an exception using a safe_eval was failing
Introduced at 12634e1
Can be ignored for v10 (fixed at bd00fcd)

Closes #26450
2018-08-20 15:58:10 +02:00
Sébastien Theys c90ff2afd8 [IMP] sale_management: allow using neither sign nor pay on SO template
Previously we required one or the other to be active. We removed this limitation for SO, thus the default value should be the company setting for both on the template as well.

Task: 1876864
PR: none
2018-08-20 15:52:54 +02:00
qsm-odoo a4a414f356 [FIX] calendar: adapt tests to https://github.com/odoo/odoo/commit/287501abbc92f7fe152dc61a296613f32c48b32c 2018-08-20 15:49:18 +02:00
Pieter Paulussen 00eb2e3e6d [CLA] update Dynapps N.V. CLA agreement
Closes #25336
2018-08-20 15:48:28 +02:00
Rohan Patel 7b50bda171 [FIX] l10n_fr_hr_payroll: correct typo
correct attribute in xml, style instead of stype

opw-1878290

Closes #26471
2018-08-20 15:43:25 +02:00
Habib Ayob 13252a7daf [CLA] Paradigm Digital signs Odoo's CCLA
Closes #26468
2018-08-20 15:40:26 +02:00
Alexandre Moens 429f785426 [REV] Revert "[FIX] Stock : deliveryslip report - prioritize partner_id (#25709)" (#26458)
This reverts commit 6e8f1fcc63.

Reverted commit broke more than it fixed.

What it fixed : Show partner info when partner is changed after the
movelines are created (very specific used case, could be considered to
be the wrong way to do things)

What it broke : dropshipping
2018-08-20 15:29:29 +02:00
oleksandrpaziuk aab2fc0e33 [FIX] l10n_ch: Improvements of VAT report and implementation TVA return charge
Was PR #25190
2018-08-20 14:57:30 +02:00
Aaron Bohy fd2ff51ba3 [FIX] web: Dialog: do not open fullscreen by default
Introduced by a105e5f2. Doc was ok, code wasn't. This feature is
for mobile only, and for now it is restricted to ViewDialogs.
2018-08-20 14:45:49 +02:00
Benoit 03395ea103 [FIX] manual creation of serialized field from the interface 2018-08-20 13:56:29 +02:00
Deep Patel 287501abbc [FIX] web: restore many2manytags colorpicker dropdown
Bug revealed with BS4.
2018-08-20 13:40:20 +02:00
Pierre Masereel 49b5a5ba25 [REF] stock: remove unused field from_loc and to_loc
On move lines the field from_loc and to_loc are not used anymore
2018-08-20 13:14:45 +02:00
Pierre Masereel 8c6a363e85 [REF] stock: remove unused field ordered_qty
The field ordered_qty on move line and move is not used anymore, so we
remove it.
2018-08-20 13:14:45 +02:00
Adrien Dieudonne fb35180ee8 [FIX] web: test in graph_tests
previously added in 102a63b815
2018-08-20 12:53:40 +02:00
Toufik Benjaa 21430a4d02 [FIX] hr_holidays: Leaves approval fails on multicompany
- When trying to approve a leave with a manager in a different company
an access rights error is triggered.
2018-08-20 12:52:58 +02:00
Cocographique 3babdebc5b [FIX] website: snippets usability improvements
- Suggest correct colors for <hr/> snippet
- Make alignment options more obvious for s_three_column
- Add alignment options for s_share snippet
- Review carousel design
2018-08-20 12:22:33 +02:00
Cocographique 5637dea114 [IMP] web_editor, website: review we options' style 2018-08-20 12:21:32 +02:00
Christophe Monniez 0da58f4133 [FIX] hr_holidays: fix _compute_leave_status
Click on the employee app causes a traceback when hr_holidays is
installed.

With this commit, leave_date_from and leave_date_to receive a date as
expected instead of a datetime when computing the leave status.
2018-08-20 11:16:19 +02:00
Kirti Choudhary acbd7beb1d [IMP] mrp: domain on Effectiveness Category
When users create new productivity losses of type productivity or performance,
they could not be used. Only one is selected randomly. So it makes no sense to allow
that configuration.

Related to task: 58625
2018-08-20 11:14:33 +02:00
Kirti Choudhary 5b0a84f702 [IMP] mrp: Productivity Losses usability improvements
Rename 'Reason' in 'Blocking Reasons'.
Rename 'Effectiveness Category' in 'Category'.
Remove 'Is a Blocking Reason'.
'manual' field become a technical field.
workorder: Change label Efficiency -> Productivity.

The purpose is to make it easier for the user and remove
blocking keywork since it's already in productivity losses views.

Related to task: 58625
PR #23341
2018-08-20 11:14:33 +02:00