Commit Graph
112438 Commits
Author SHA1 Message Date
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
Jérome Maes 6552ae68d1 [IMP] sale,stock: rename DHL label on settings 2017-09-13 12:10:31 +02:00
Christophe Simonis 1788c3f584 [FIX] P3: url_for text model
Correctly forward-port 30a9e6602c
2017-09-13 11:27:15 +02:00
Martin Trigaux 052bc38805 [FIX] google_calendar: do not create an event with an invalid id
The id is useful to update existing events but sometimes we are getting some
ids that are not accepted by Google

Getting an error:
odoo.addons.google_account.models.google_service: Bad google request : {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid resource id value."
   }
  ],
  "code": 400,
  "message": "Invalid resource id value."
 }
}

Looks like existing events can have a _ in their id but new one, no longer.
It seems that these events are created by outlook calendar when synchronized
with Google Calendar.

opw-749752
opw-751294
opw-751348
2017-09-13 11:23:35 +02:00
Dan Čermák a52369274a [CLA] signature for D4N
Closes #19425
2017-09-13 11:22:00 +02:00
Prakash Prajapati 8bca882b56 [REF] stock: remove one level of menu in operations 2017-09-13 11:17:23 +02:00
Prakash Prajapati e9d8c7a097 [REF] stock: returns: wording of origin 2017-09-13 11:17:23 +02:00
Prakash Prajapati 7857770fe1 [REF] stock: wording when unlinking done move lines 2017-09-13 11:17:23 +02:00
Prakash Prajapati 9ba7f28062 [REF] stock_picking_batch: wording on name 2017-09-13 11:17:23 +02:00
Prakash Prajapati be55159342 [REF] stock: scrap: no quick create on product_id 2017-09-13 11:17:23 +02:00
David Arnold cc955698ce [FIX]sale_stock: copy devolution move without decreasing respective SO values
-Make a return picking from a SO, and condigure the items to be refunded on SO(in the wizard)
-Copy the return picking.
-Validate it.

Without this fix, it would just keep decreasing the delivered value on SO.

opw:767429
2017-09-13 11:02:56 +02:00
pro-odoo 23ddd7d0fa [IMP] account: usability improvements
- menuitems reworked to add submenus for more clarity
- settings reworked

Was task 36452. Was PR#19301
2017-09-13 10:59:12 +02:00
Goffin Simon 8fbee7978f [FIX] purchase: PO state when validated
When nothing has been invoiced and the PO is validated with nothing to invoice
then the state of the PO must be "Nothing to invoice"

opw:769919
2017-09-13 10:16:34 +02:00
Raphael Collet 886003af93 [FIX] models: in onchange, consider all levels of subfields 2017-09-13 10:12:16 +02:00
Fabien Meghazi f2f99dc091 [FIX] bus: compatibility with Odoo's PAAS external long polling handler
Add a `peek` option in the bus event dispatcher polling in order to let
an external event dispatcher fetch the notifications and their
corresponding channels.
2017-09-13 09:48:25 +02:00
Fabien Meghazi a2ed3d3d5b [FIX] bus: compatibility with Odoo's PAAS external long polling handler
Only start the bus events dispatcher when needed (lazy starting).
On Odoo PAAS it's never started because the platform has its own event
dispatcher.
2017-09-13 09:48:19 +02:00
Jérome Maes aea183212e [MERGE] sale_timesheet: improvements for service company
Impacted modules: hr_timesheet, sale_timesheet, sale
and project_timesheet_holidays

The main change is the product configuration: a service
can create a task or a project, even if the update of
delivered quantities is manual.

Some code cleaning were done to ease comprehension and
maintenability.

This merge also bring usability changes and fine tuning
to manage your service like a pro.

For details, please have a look at sub commits.

Thanks for Thibault for the review and Benjamin (and Indian
Testing Team) for testing this. And Martin Trigaux that
did nothing, since he was on a stupid mountain ...
2017-09-13 08:42:40 +02:00
Jérome Maes 65bf4e4065 [IMP] sale_timesheet: ordered quantities are invoiced when timesheeted
When a so line base on ordered quantities is invoiced, the timesheet
logged after the invoice validation are not marked as invoiced. This
shows wrong number on the Project overview.
2017-09-13 08:41:32 +02:00
Jérome Maes 2e2cd56db3 [IMP] hr_timesheet: hide timesheet stuff according to user groups
You should be timesheet user to see 'Timesheet' tab
on task form view, and the project overview (on kanban
project).
2017-09-13 08:41:32 +02:00
Jérome Maes a9d5e45f2b [IMP] sale_timesheet: hide stat button on SO if user does not have the good rights
Only project user can see stat button for project and
task on SO form view, and only timesheet user can
see the detailled timesheet stat button.
This avoid to give malny access rights to user that
does not required them for their daily business.
2017-09-13 08:41:32 +02:00
Jérome Maes 04836cc257 [IMP] sale_timesheet: timesheet overview improvements
- Adding stat button for tasks, projects, and
timesheets
- Human readable hours amount
- ...
2017-09-13 08:41:31 +02:00
Jérome Maes d9cece2ef8 [IMP] project_timesheet_holidays: ease leave type configuration
A leave type now generate timesheet by default. So
the internal project/task are taken from the leave
type company (a default value for the company has
been added).
To allow the hr leave manager to select a project,
he should be alble to read the analytic account
(otherwise, crash when calling name_get).

Setting the default internal project/task is advanced,
so hidden in debug mode on timesheet config.
2017-09-13 08:41:31 +02:00
Jérome Maes d29242356a [IMP] hr_timesheet: menus and view usability
- better reporting menus
- views usability
- reporting split: entries for grouping by employee,
projet, and task, and billable rates
- ...
2017-09-13 08:41:31 +02:00
Jérome Maes fda8d77c69 [IMP] sale_timesheet: split non billable type for timesheet
Timesheet logged on project created from a SO line are
not exactly the same as the non billable ones.

To ease the reporting, we split the non billable type
of timesheet: when timesheeting directly on a project
(whatever the product config), the billable type will
be 'no task found'.
The Overview is adapt to display the 2 'non billable'
categories.
2017-09-13 08:41:31 +02:00