Commit Graph
127612 Commits
Author SHA1 Message Date
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
Adrien Dieudonne 102a63b815 [FIX] web: graph_renderer: check graph data before rendering
Before this commit, a crash occured when you tried to load
a bar chart without any data.
Example in Purchase -> Reporting.

Since this commit 3d2ca810, we do some data processing without
checking if data exists.
To fix this, we have to always makes some checks before rendering
the graph by calling _render.
2018-08-20 11:11:59 +02:00
Hetashree Chauhan 984addefe6 [IMP] stock: Error message when trying to create lot
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 9b523fc548 [IMP] mrp: set work center name field required in view.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi c94cf3d180 [IMP] mrp: set quantity 1 by default when creating unbuild order.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 1e5096a002 [IMP] stock_account: hide the create and edit button on product valuation.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 8a81c6d0a4 [IMP] stock: differentiate traceability and package settings
We put the settings for traceability and packages in different groups
view of operation type.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 3d94d82aff [IMP] stock: scrap only stockable and consumable
You can only scrap stockable products and consumable ones, so we've
added a domain on product_id.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 6ffda36229 [IMP] stock: move operation type on picking view
Move the operation type field from the additional info tab because
it's mandatory field so user have to know before saving fill this field.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Priyanka Kakadiya 8889d00f4f [IMP] website_sale: filter website categories based on search.
task-34786
2018-08-20 10:59:50 +02:00
Martin Trigaux 7d234fe640 [FIX] fleet: don't convert a date to date
date is already a Date field
2018-08-20 10:36:43 +02:00
Martin Trigaux b4e00018d6 [IMP] sale_mrp: increase test delta
The test was comparing a scheduled date was correctly computed.
The runbot build 363053 failed because runbot12 is a bit slower and computed
the delay in 2 seconds instead of the 1 previously tolerated.

Increase the delta to 10 seconds.

The delay is a matter of days. Having a difference of 1, 10 or even 100 seconds
should be equivalent functionnaly.

Having a 100 seconds delay could indicate a serious performance issue though...
2018-08-20 10:28:33 +02:00
Lucas Perais (lpe) b2be451c7c [FIX] point_of_sale: fix rounding logic
Use case specifically for round globally, but the justifications hold anyway
Have a session with one tax, multiple partners, and returns of freight (negative amounts)

When validating a pos.session, the computation of amls was a bit out of logic,
Namely, we grouped tax lines by :
1. their tax id (correct)
2. their partner_id (not wrong but limited)
3. their balance > 0 (wrong)

The justification for point 2 and 3 is two fold:
- Ultimately, the order is level of granularity that really makes sense
It's the order that is paid and therefore that has both legal and business meaning
and on which the amounts are retrieved anyway
- On the order, we litterally make the sum of tax amounts of each line, aggregating
credit and debit under the same variable
It is only logic to do the same for grouping the taxes at validation time

This commit only corrects the behavior for the rounding method 'globally'

OPW 1865700
closes #26203
2018-08-20 10:23:27 +02:00
Jeremy Kersten c89c1c23c9 [FIX] website_forum: fix typo introduced by #bae90d8
This commit closes opw-1877970
2018-08-20 10:10:04 +02:00
Grzegorz Krukar 48b492b086 [FIX] gamification: correctly set computed values
Field incorrected named
Introduced at 0c64964

Closes #25307
2018-08-20 09:10:20 +02:00
Tommy Tran 89bea8ef43 [FIX] hr_maintenance: fix singleton error in _compute_owner
avoid singleton error when accessing on multiple records

Iontroduced at 9a20c6556f

Closes #25379
2018-08-20 09:04:00 +02:00
Nicolas Martinelli a456161680 [FIX] sales_team: AccessError on default team
- Create 2 companies C1 and C2
- Assign User U1 in C1
- Assign the default Sales Team (`sales_team.team_sales_department`) to
  C2
- Create an invoice with U1

An `AccessError` is raised because the user is not allowed to access the
default Sales Team.

We fall back on `sales_team.team_sales_department` only if the user has
read access.

opw-1876966
2018-08-20 08:41:10 +02:00
Antony Lesuisse c25b88bd4e [IMP] mail: odoo-mailgate.py script
This replace the antiquated openerp_mailgate script.

This version only supports mail.alias, direct model support is deprecated.

Error handling is based on exit status code which will cause a bounced mail
to be generated by the mail server, that bounced mail will containt a nicely
formatted traceback to help debugging.
2018-08-20 06:17:02 +02:00
Siddarth Gajjar c0629cd757 [FIX] web: BS4, restore statusbar "more" dropdown 2018-08-19 16:57:14 +02:00
qsm-odoo 6b84bdeaf9 [REF] website: BS4, smaller footer titles
Using <h5/> for those seems semantically more consistent and looks
better with default BS4 sizes.
2018-08-19 16:57:14 +02:00
qsm-odoo 2b18c1e114 [REF] website_sale(_*): review product item display
* comparison

There is a somewhat big difference between BS3 and BS4: <h5> titles
were the size as normal text and <h6> were smaller while, now, <h5>
titles are a lot bigger (1.25x) than normal text and <h6> are the
same size as normal text.

While both system may be consistent, we feel that standing for BS4 is
the best approach. That way, the smallest <hx> (<h6/>) should be used
for titles of items that are numerous in the page. This is the case
for our shop listing, each product as its own title and before, we used
<h5/> element. Using <h6/> for those feels semantically more consistent
and goes with default BS4 style.

Also review the product comparator popover.
2018-08-19 16:57:14 +02:00
qsm-odoo 7debf9deb0 [FIX] website: BS4, language selector should be smaller 2018-08-19 16:57:14 +02:00
qsm-odoo 7e73a4b1c9 [FIX] website: BS4, smaller btn-sm buttons
Before BS4 migration, Odoo was not very consistent and used mainly
btn-sm buttons and btn-xs buttons. We took advantage of the fact
BS4 removed the btn-xs class to convert our btn-sm to standard btn
and our btn-xs to standard btn-sm.

While this is perfect in theory, the new btn-sm class does not
generated small enough design for us. This commit changes the BS4
standard style for our website, making btn-sm smaller.
2018-08-19 16:57:14 +02:00