Commit Graph
112461 Commits
Author SHA1 Message Date
stefanorigano 2edcd1cdc0 [REF] web: remove kanban useless LESS rules 2017-09-15 15:04:52 +02:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
Olivier Colson 3e1d46dcc9 [IMP] l10n_es: improves localization package
* PYMES, non-profit associations, complete (large enterprises) CoA
* reviewed taxes, tax groups
* reviewed tags, account types for reports in l10n_es_reports

Thanks for the contribution and the original work, spanish community (esp. Pedro M. Baeza).

Was task 30669. Was PR #19154
2017-09-15 14:04:41 +02:00
stefanorigano 3fb7842864 [REF] web, mail: minors UI fixes
- List view: sortable icon, do not force position to right
- Mail: do not vertically reposition systray's icons
- Form view: oe_subtotal_footer, minor design imp
2017-09-15 13:39:01 +02:00
stefanorigano da21b03661 [REF] base, web: adapt base settings to new design
- Use mixins and default LESS variables whenever possible
- Get rid of useless “!important” rules
2017-09-15 13:39:01 +02:00
stefanorigano 38a1a452cf [REF] account: adapt dashboard header to new design 2017-09-15 13:39:01 +02:00
Mitali Patel 79038055f5 [IMP] base, res.currency: amount_to_text() based on num2words library
Old implementation of tools.amount_to_text() is now deprecated. The new one support more languages

Was task 27215. Was PR #16531
2017-09-15 13:24:02 +02:00
Yannick Tivisse be93768608 [FIX] product: Display product_id on supplier info form view
Purpose
=======

Now if we want to create a product supplier info, it's impossible to select the template if it has no variant, which is rather annoying.

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

Remove the attrs
2017-09-15 12:56:00 +02:00
Deep Patel 1c0befc8a6 [IMP] web: UX improvement on mobile for the sale order view 2017-09-15 11:16:11 +02:00
Simon Lejeune a7fa3cc436 [FIX] stock, purchase: correctly remove stock_calendar 2017-09-15 08:34:35 +02:00
qsm-odoo 814304a227 [MERGE] web, *: add kanban column progressbar feature
* crm, project

See last merge commit for detail.
Work started by @pat-odoo and @stefanorigano
2017-09-14 23:51:48 +02:00
qsm-odoo 33f9e90bd5 [IMP] web, *: add kanban column progress bars
* crm, project

Add a new feature which allows to put a progressbar in the kanban
columns. The progressbar shows with the same color the amount of
records whose value of a given field are the same in the column.
It also indicate the sum of another given field or simply the total
number of records. It also allows to subgroup the column content.

To define a progressbar, add this as a direct child of the kanban
arch:

<progressbar field="<name of the field to use for subgroups>"
             colors="{<one possible value for the above field>: <success, warning or danger>, ...}"
             sum="<name of the field to sum or nothing to use total number of records>"/>

Also:
- Properly update record model data's parentID when moving a record
- ...
2017-09-14 23:48:56 +02:00
qsm-odoo 031dc1d952 [REF] web: allow to perform a standalone read_group
Before this commit, asking the basic model for a 'read_group' operation
was automatically followed by other operations to read groups content
('search_read', 'read', ...). This commit introduces an option to only
perform a 'read_group'.
2017-09-14 23:48:55 +02:00
qsm-odoo 76ad4e71a5 [REF] web: do kanban group manual update before saving a record move
Before this commit, when a record was moved in a kanban view, the
model saved the record change then manually updated the related groups
(to avoid performing a read_group and reloading the whole view). This
manual update can in fact be performed before the record save. This
allows customizing the save operation in some cases where a real
read_group would be needed.
2017-09-14 23:48:55 +02:00
qsm-odoo 8b00628aa2 [REF] web: also use _confirmSave when a kanban record is 'manually' updated
Normal flow for one record's changes to be saved is:

0) (use `_setValue` for fields)
1) `trigger_up('field_changed')`
2) field manager mixin: `_onFieldChanged`
3) model: apply changes and save
4) controller: `_confirmSave`

Kanban records are using another system for an unknown reason. This
system was calling the right model functions but was not calling the
controller `_confirmSave` and was instead re-coding it. This commit
makes sure that `_confirmSave` is now called.
2017-09-14 23:48:55 +02:00
qsm-odoo 5c6a7c9ea9 [REF] web: do not update groups model ID on read_group update
Performing a 'read_group' was creating new model group data which were
saving some properties of the old model group data. As KanbanColumn
widgets may not be updated in each case where we might want to re-do
a (partial) 'read_group', this commit changes the system so that old
model group data are simply updated with the useful new group data
properties (instead of being entirely replaced).
2017-09-14 23:48:54 +02:00
qsm-odoo f1370dfa0a [REF] web: allow adding custom stuff in kanban header
Previous kanban header was a div with `flex-flow: row nowrap`. So if
someone tried to add some stuff in it, it will be forced to stay on
the same row as the title and config buttons. This commit wraps these
row elements in a new div to allow kanban header customization (this
prepares for the kanban progressbars).
2017-09-14 23:48:54 +02:00
qsm-odoo 8496a31421 [REF] web: move misplaced kanban quick create code 2017-09-14 23:48:53 +02:00
qsm-odoo 268b4a5a1d [FIX] web: fix kanban alignments
Previous implementation contained negative paddings which are not valid
values for browsers. This also prepares for the kanban progressbars.
2017-09-14 22:46:04 +02:00
Prakash Prajapati 0c04aaa303 [IMP] account: generic PDF tax report for community.
Was PR #19097. Was task 35751.
2017-09-14 17:49:01 +02:00
Simon Lejeune 5ec4401712 [FIX] sale_stock: adapt to procurements removal
Now, the move is directly linked to the sale order line.
2017-09-14 15:13:02 +02:00
Jérome Maes 406ba5dcc0 [MERGE] sale_expense: reinvoicing flow
This merge provides some changes in the
expense flow.

The most important one is to reinvoice
an expense, employee set a SO on its expense
and not an analytic anymore (since it
requires special access group, ...)

This commit also bring back the auto
creation of analytic account when confirming
SO if expense product is sold (since AA is
required to generated analytic line of
the operation).

Some usability changes, and code cleaning
are also available. See subcommits for details.
2017-09-14 14:50:36 +02:00
Jérome Maes c8e23968d3 [IMP] sale_expense: add test cases 2017-09-14 14:48:07 +02:00
Dhawal Limbuwala 10a497011d [IMP] hr_expense: new tour for user onboarding
Steps:
- In home, expense app icon: "Go to the expense
to attach a receipt"
- In list, on create button : "Click here to create
your first expense and add it to below."
- In form, on save button : "Once your Expense is
ready, you can save it."
- In form, point out the chatter "Attach your
receipt here."
- In list, point out record selection: "Select
expenses to submit them to your manager"
- Point out "Action": "Click on Action Submit To
Manager to submit selected expenses to your manager"
- In expense sheet point out approve “Approve the
sheet here. Tip: if you refuse, don’t forget to
give the reason thanks to the hereunder message
tool".
2017-09-14 14:48:07 +02:00
Jérome Maes 04dd0a2dd4 [IMP] sale: create an ananlytic on SO confirmation when at least an expense product
This behavior kind of disappear with 48ea59d46e

Moreover, since the Analytic Accounting is hidden, and
a AA on expense is required to reinvoice product on
SO, an AA should be on the SO as default value.
2017-09-14 14:48:07 +02:00
Jérome Maes 751330a843 [IMP] sale_expense: reinvoice expense flow
The main change is we use SO and not analytic account
anymore to reinvoice expense.

When encoding an expense, each employee can directly
set the SO to allow re-invoicing the expense to a
client. Before this commit, this was done by determining
the SO based on the Analytic Account (magically) on the
expense.
This solution is less confusing and more explicit for
the end user.

This commit also bring usability improvements to
improve user experience during this flow:
- better expense product view
- access group on menu items
- ...
2017-09-14 14:48:07 +02:00
Jérome Maes 2dda108cb3 [IMP] hr_expense: link move line and expense for better tracking
Each move line generated from an expense posting will
be linked to the original expense. Some of those move
lines are for taxes, one for the product, ... but they
are all link to the same expense.
This will allow better reporting, and allow to access
the expense record from the move or its analytic lines
for futher developement.
2017-09-14 14:48:07 +02:00
Jérome Maes 84e96fe7dd [IMP] sale: add name_get and name_search on SO
The goal is to have a name_get for SO returning
a value like 'SO0002 - Michel F.'

To avoid performance problem, the chosen solution
is to add a context key 'sale_show_partner_name' to
provide the partner name in name_get(), otherwise
it will always add it and kill the performance.
This solution is preferred over adding a stored
related field for partner name (trigger recompute
when partner is renamed for all SO is bad).
2017-09-14 14:48:07 +02:00
Simon Lejeune 64c848a047 [REM] stock_calendar 2017-09-14 14:35:25 +02:00
Xavier Morel fccbe4ff4f [FIX] website_form: custom field thing blows up in P3
Custory reading seems to denote that field names are probably already
text in the normal case, and thus should not need decoding? It only
blows up in a tour so...
2017-09-14 12:21:26 +02:00
Christophe Simonis 97a9384c3e [MERGE] forward port branch saas-17 up to 4a878fa4dc 2017-09-14 11:45:54 +02:00
Mitali Patel ad79fed261 [IMP] im_livechat: add copy to clipboard for the website live chat widget code
This commit adds 2 buttons to copy directly the code needed to add the livechat
in the website.
2017-09-14 10:54:00 +02:00
Monish Soni 5228daf195 [IMP] web_setting_dashboard: improved dashboard responsivity 2017-09-14 10:53:26 +02:00
Parth Patel 84c0b81c6a [IMP] discuss: Adjust chat window to avoid overlapping the scrollbar 2017-09-14 10:53:01 +02:00
Xavier Morel 4a878fa4dc [FIX] P3: metadata update
* gitignore pycache folders (apparently appear for some)
* update xlwt requirement: 1.1.2 does not work with Python 3.6, 1.2 should work, 1.3 officially supports it
2017-09-14 10:18:06 +02:00
Mitali Patel 70942e4cfb [IMP] base: improve view rng validation (#17902)
Split big universal RNG into view-specific schemas and moved rng based view validation
into view_validation.py file.
Adapt old views, and remove deprecated tag `version="7.0"` from views.
2017-09-14 10:16:00 +02:00
Florent de Labarre 93d4da977a [IMP] account: improve error message raised
Add the code/name of deprecated account on the error message when it is used.

Was PR #19392. Courtesy of Florent de Labarre
2017-09-14 09:59:24 +02:00
Christophe Simonis e390b0d640 [MERGE] forward port branch saas-17 up to 1e17035f71 2017-09-13 20:07:38 +02:00
Christophe Simonis 1e17035f71 [MERGE] forward port branch saas-16 up to 268cf9d04a 2017-09-13 19:32:35 +02:00
Christophe Simonis 268cf9d04a [MERGE] forward port branch saas-15 up to 127dea7f66 2017-09-13 18:45:07 +02:00
Christophe Simonis 127dea7f66 [MERGE] forward port branch saas-14 up to 3d2a7a0d12 2017-09-13 18:21:23 +02:00
Christophe Simonis 3d2a7a0d12 [MERGE] forward port branch 10.0 up to 5b69f1a333 2017-09-13 17:48:37 +02:00
Christophe Simonis 5b69f1a333 [FIX] account_tax_python: correctly forward-port 7eb7e9fd6e 2017-09-13 17:47:34 +02:00
amoyaux 0f9302af1f [FIX] stock: recheck availability on mts move bypassing reservation
When running action_assign on a mts move bypassing the reservation,
we always created a new stock move line with the quantity of the move.
This proved to be too naive when running recheck availability.

Exemple: Let’s say I have a reserved move of quantity 5.
If I edit the initial demand to 7 and click on recheck availability,
I end up with a move line of 5 and a move line of 7. We adadapt the
code in a similar way that what’s done in _update_reserved_quantity,
by looking for a candidate move line and only increasing the reserved
quantity by what still needs to be reserved.
2017-09-13 17:30:20 +02:00
Christophe Simonis c8194a7647 [MERGE] forward port branch 10.0 up to c8b5c01340 2017-09-13 16:55:42 +02:00
Christophe Simonis c8b5c01340 [MERGE] forward port branch 9.0 up to 7eb7e9fd6e 2017-09-13 16:49:16 +02:00
Simon Lejeune 5b66c17ed2 [FIX] test_main_flows: adapt to rev 8bca882b56 2017-09-13 15:46:43 +02:00
Christophe Simonis 2bb30173ff [FIX] http_routing: python3 compat
In python3, exception variables are cleared at the end of the `except`
clause [1]

[1] https://docs.python.org/3/reference/compound_stmts.html#the-try-statement
2017-09-13 15:16:15 +02:00
Géry Debongnie 93cf24f73a [FIX] web: reimplement custom widgets in basic views
With the new views, we lost a (almost unused and undocumented) feature:
the ability to instantiate custom widgets in a form view, not linked to
a particular field.  For example:

<widget type="weekly_timesheet" attrs="{'readonly': [['state', 'not in', ['new', 'draft']]]}"/>

We reintroduce this feature in this commit, with a nice twist: it also
works for the list view and the kanban view.
2017-09-13 14:04:34 +02:00
Kishan Gajjar c1fa3b8ab3 [IMP] mail: pdf preview and small improvement
When you click on pdf it should show preview of pdf.
Don't show the previous/next arrows if there is only one attachment.
2017-09-13 12:46:52 +02:00