Commit Graph
121720 Commits
Author SHA1 Message Date
Bruno Paulino 72cc07aae2 [CLA] signature for Bruno Paulino 2018-10-30 16:09:21 +00:00
Yenthe V.G 64c47cdbd6 [IMP] lunch: add sheet and group names to form views
closes odoo/odoo#27343
2018-10-30 16:13:48 +00:00
Raphael Collet 650074e8b2 [IMP] fields: faster x2many fields
Perform all operations in batch, except for updates (command (1, id, vals)).

closes odoo/odoo#28029
2018-10-30 15:08:02 +00:00
jem-odoo 3e3d6c3ce0 [REF] purchase_*: change received qty api
The received quantity on Purchase Order line can be compared
to the delivered qty on Sales Order line. It is now time for
both to share the same mecanism (introduced in
3bf8a62e0d).

This commit sets `qty_received` as a computed field, depending
of a method (`qty_received_method` field) to compute it. The
value can be computed based on
 - manual value; for services (all the time), and consummable
 products (when stock is not installed).
 - stock moves; for stockable and consummable products (when
 stock is installed)

This is now easier to extend the way the received quantity
need to be computed (like in sale).

Task #1850689

closes odoo/odoo#27663
2018-10-30 12:43:53 +00:00
Yenthe V.G 7c1ae0cf49 [IMP] hr_recruitment: add missing sheet to form views
closes odoo/odoo#27341
2018-10-30 13:20:55 +00:00
Yenthe V.G dfbc85cae0 [IMP] account_analytic_default: add sheet to analytic defaults form view
closes odoo/odoo#27349
2018-10-30 11:08:18 +00:00
Yenthe V.G 2f4ca47c43 [IMP] account: add missing sheet to account group form view
closes odoo/odoo#27346
2018-10-30 10:54:08 +00:00
eLBati 95cda104e6 [FIX] digest: resolve unmet dependency on resource module
This commit fixes the following bug:
* On a new DB, install account
* Settings > Technical > Email > Digest emails
* Open Weekly Digest, set Next Send Date to current day
* Settings > Technical > Scheduled Actions > Digest Emails
* Run manually

AttributeError: 'res.company' object has no attribute
'resource_calendar_id'

The field resource_calendar_id is provided by the module resource

closes odoo/odoo#28239
2018-10-29 14:33:17 +00:00
Yannick Tivisseandblaggacao 49fa9973b0 [IMP] hr_holidays: Add leave code for payslips
Purpose
=======

Before this commit, it was not straightforward to use leave records in salary
rules programatically.

This commit implements the standard and python-code compatible way of defining
leave codes which then can be used in the salary rules in the used way.

This way, the naming of leaves will not be restricted to python-attribute
compatible naming, when one wants to use this feature.

Leave names (translatable) are an unreliable identification in python code salary rules.
A language switch would break python salary rules that use a leave type as input

TaskID: 1903964
Closes #28240

Co-authored-by: blaggacao <david@elaleman.co>
2018-10-29 10:52:41 +00:00
Robot Odoo 45c2c3761d [MERGE] utm, link_tracker, mass_mailing: improve views usability and lint module
Purpose of this merge is to clean a bit link_tracker and utm as well as their
use in mass mailing. Main things done in this merge are

  * reorganize link_tracker and utm according to guidelines. Purpose is
    to ease code understanding and prepare future improvements in those
    modules;
  * clean views, add missing fields in views;
  * better integration of link menus and views in mass mailing;

This commit is related to task ID 1896681.

closes odoo/odoo#27975
2018-10-29 13:09:17 +01:00
Robot Odoo d9c1cd4256 [IMP] hr_payroll: Refactor methods and improve performances
Purpose
=======

Some parts of the code are quite old-api-style and could be modified to use recordsets and thus improve performances.

closes odoo/odoo#28182
2018-10-29 12:08:19 +01:00
Thibault Delavallée a758d517d8 [IMP] mass_mailing: better link tracker action redirection for mass mailing
Purpose is to ease use of mass mailing by improving the action linking to
statistics. Form / graph view is added as well as informations related
to mass mailing and campaign.

This commit is linked to task ID 1896681 and PR #27975.
2018-10-29 10:19:53 +00:00
Yannick Tivisse f37a40d74e [IMP] hr_payroll: Modify _get_payslip_lines to use recordsets 2018-10-29 10:09:59 +00:00
Yannick Tivisse e52c407b6e [IMP] hr_payroll: Refactor structures methods to use recordsets 2018-10-29 09:29:52 +00:00
Yannick Tivisse 225708a58f [IMP] hr_payroll: Move the BrowsableObject classes into a separated file
Purpose
=======

These classes are utils classes for the payslip computation.

It's better for the code readability to isolate them into a single file,
and keep the business logic into the payslip model code.
2018-10-29 09:29:52 +00:00
Yannick Tivisse 4d3db78d7f [IMP] hr_payroll: Remove useless method 2018-10-29 09:29:52 +00:00
Yannick Tivisse b1449d24a3 [IMP] hr_payroll: Move get_contract method to hr_contract module
Purpose
=======

This method has nothing to do on the payslip model.

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

Move the method on the hr_contract module, on the hr.employee model.

Rename the method and return and recordset instead of a list of ids.
2018-10-29 09:29:52 +00:00
qsm-odoo 1f37ec3b0b [REF] account, hr_org_chart: use correct sub-assets
Some variables were placed at the beginning of the backend helper.
While it was working, the normal convention is to place them at the
end of the variables helper.

closes odoo/odoo#28203
2018-10-26 14:13:41 +00:00
Thibault Delavallée 510bad0df3 [REF] link_tracker: clean module views
Purpose is
 * to clean a bit views;
 * to improve link.tracker form view to have information better displayed;
 * to remove unused views;

This commit is linked to task ID 1896681 and PR #27975.
2018-10-26 12:42:49 +00:00
Thibault Delavallée 37fcb1e6ff [REF] link_tracker: reorganize python according to guidelines
This was not correctly done when splitting the module at fd5361c0f7.
Future commits will clean a bit the code in order to better understand how
this module works.

This commit is linked to task ID 1896681 and PR #27975. No functional change
should occur with this commit as it contains only renaming / move.
2018-10-26 12:42:49 +00:00
Thibault Delavallée ae2866a11e [MOV] link_tracker: organize module structure according to guidelines
This module still holds old code and deserves some love. This commit cleans a
bit the init and manifest files as well as renaming view file according to
guidelines.

This commit is linked to task ID 1896681 and PR #27975. No functional change
should occur with this commit as it contains only renaming / move.
2018-10-26 12:42:49 +00:00
Thibault Delavallée 89d50fc3b1 [REF] utm: clean and lint views
Purpose is to give a quick polish to this module code concerning views.
Some ids are updated, indentation is fixed.

This commit is linked to task ID 1896681 and PR #27975.
2018-10-26 12:42:49 +00:00
Thibault Delavallée 65f9840fd2 [MOV] utm: organize module structure according to guidelines
This module holds old code and is still not updated according to guidelines.
Let us update a bit the naming in this module to have readable code.

This commit is linked to task ID 1896681 and PR #27975. No functional change
should occur with this commit as it contains only renaming / move.
2018-10-26 12:42:49 +00:00
qsm-odoo 8c756a32a0 [REF] website: review theme dialog engine
Refactor the code to remove useless parts, simplify behaviors and allow
more customizations in future tasks.

closes odoo/odoo#28167
2018-10-26 09:29:53 +00:00
David Arnold 1bf58d282f [IMP] db: set default user tz through country code
Given a country code is specified and the country only has one timezone, it is
safe to assume that the admin user is operating from that timezone.

Set the default timezone to simplify the onboarding in such particular case.

If a country has more than one timezone, we can not make safe assumptions and
don't provide a default tz.

closes odoo/odoo#26365
2018-10-26 07:21:47 +00:00
Robot Odoo 653b4289c6 [MERGE][FIX] purchase: include refunds in invoice count
If a supplier had a refund, it was not included in the supplier invoice count
nor in the results in the statbutton

On the customer side, fields like total_invoiced works on both the out_invoice
and out_refund

closes odoo/odoo#28161
2018-10-26 09:21:05 +02:00
Cas Vissers 43edf08b26 [FIX] purchase: include refunds in invoice count
If a supplier had a refund, it was not included in the supplier invoice count
nor in the results in the statbutton

On the customer side, fields like total_invoiced works on both the out_invoice
and out_refund
2018-10-25 14:41:14 +00:00
Cas Vissers 3f6deb24ee [CLA] Brahoo signs Odoo CCLA 2018-10-25 14:39:21 +00:00
jem-odoo 3baf8c41e9 [FIX] website_sale: change invoice_policy of a demo data
Otherwise, the product is a service based on delivered
quantity which is not a covered case by the service_policy
field on product form view (the selection will be empty).

Asked in Task-1859308

closes odoo/odoo#28162
2018-10-25 09:28:51 +00:00
Géry Debongnie 5ab5ccba40 [REF] web: remove useless code
The utility function xml_to_json, which is mainly used by the views to
parse their arch (from string to xml tree) had a peculiar behaviour: it
tried to process some attributes as json.  If by chance, these
attributes are valid json, then they are replaced by their parsed value.

It is difficult to say why it could be useful.  Maybe this was done to
prevent using pyeval many times later on.  But if that is the case, it
should be done by the view code and not the utility function (the view
can precompute all attributes once).

Also, this behaviour is annoying for code later in the chain, which
needs to check if what it gets is an object or a string.  With this
change, attributes are always returned as string (at this point).

closes odoo/odoo#28133
2018-10-25 07:56:30 +00:00
mreficent 2924b77b6f [REF] website: rename website.redirect,type to redirect_type
Part of odoo/odoo#27599 to rename fields named 'type' which may conflict

closes odoo/odoo#28112
2018-10-24 14:32:49 +00:00
Yenthe V.G b6c3ad1b8d [IMP] sale_management: allow easy xpath on tab
closes odoo/odoo#27771
2018-10-24 08:21:29 +00:00
David BeguinandFMDL 0b1a3da01f [IMP] base : adds direct access to groups, record rules and access rights from user form
Adds 3 smart buttons with count to see :
- Groups
- Access Controls
- Record Rules
Buttons available in debug mode only
Every user that have access to user form has at least admin / Settings or Admin / Access rights.
Admin / Settings includes Admin / Access Rights

Create and delete are not allowed for those views.
Indeed users may think they are modifying current user's access
whereas they are modifying the whole group access.
To avoid confusion, the user's access rights list is now not editable.
Clicking on a row redirects to form view that can be edited.
A warning has been added on access rights form to be sure the user
is aware of what he is doing.

Task ID : 1830142
Closes PR #25587

Co-authored-by: David Beguin <dbe@odoo.com>
Co-authored-by: FMDL <florent.mirieu@gmail.com>
2018-10-24 07:31:06 +00:00
Martin Geubelle 70560d1f11 [IMP] web: add showSearchInput option on ModelFieldSelector
The option `showSearchInput` has been added on the ModelFieldSelector to allow
the user to easily filter the displayed fields. An input is displayed in the
popover title.

The search method is fuzzy for optimal results.

closes odoo/odoo#27788
2018-10-15 11:59:33 +00:00
Yenthe V.G 9e3583fc87 [IMP] survey: remove debug statements
Leftovers from debugging

closes odoo/odoo#27768
2018-10-24 08:29:26 +00:00
Yenthe V.G d4f83da1c3 [IMP] hr_salary: add sheet to form views
Adapt xpath that was no longer working
Add name attribute on some missing groups

closes odoo/odoo#27340
2018-10-24 08:37:51 +00:00
Romain Derie 2876b216d2 [IMP] delivery, stock: reorganize stock.picking form view
This commit will avoid having the company_id and/or website_id field(s) alone
on the top right of the 'extra' tab if the `picking_type_code` is in `incoming`

task-1894793

closes odoo/odoo#28016
2018-10-23 09:17:33 +00:00
Aaron Bohy 03fe95d6af [REF] web: small refactoring pass on some web components
(mainly views and ActionManager)

- add missing docstrings
- fix typos
- correctly order functions and imports
- put functions in correct sections
- stop using 'event' as argument of handlers
- don't call handlers directly
- remove trailing spaces/tabs
- move module created in stable version to its own file
- follow js guidelines in general

closes odoo/odoo#28024
2018-10-23 10:56:12 +00:00
Christophe Monniez 3c59add416 [FIX] survey: fix sent_survey domain
survey.user_input type was renamed to input_type in 35a5db9.
This domain was forgotten and made the click_everywhere test fail.

closes odoo/odoo#28010
2018-10-22 12:53:45 +00:00
Christophe Simonis c9356a1096 [FIX] core: adapt forward-ported code after 4d581e26c2 2018-10-22 19:26:18 +02:00
Christophe Simonis 9dbb7d199c [MERGE] forward port branch 12.0 up to b81c2bce84 2018-10-22 17:57:08 +02:00
Christophe Simonis b81c2bce84 [MERGE] forward port branch saas-11.4 up to 3c108977c1 2018-10-22 16:59:51 +02:00
Christophe Simonis 3c108977c1 [MERGE] forward port branch saas-11.3 up to 80df540dd0 2018-10-22 14:13:33 +02:00
Christophe Simonis 80df540dd0 [FIX] hr_expense: correct group xmlid 2018-10-22 12:34:05 +02:00
Martin Trigaux 933165ec3a [FIX] models: restore warning on wrong record
Was lost during d5b687a48f

Set the module name in the context to be able to detect errors in xml and csv import

closes odoo/odoo#27680
2018-10-21 08:41:22 +00:00
Odoo Translation Bot 26da2e183b [I18N] Update translation terms from Transifex 2018-10-21 06:02:27 +02:00
Odoo Translation Bot de265ce63e [I18N] Update translation terms from Transifex 2018-10-21 01:25:56 +02:00
Xavier Morel 238e561ad9 [FIX] website: current website caching
Not taking fallback in account means incorrect values can get cached/retrieved
on fallback v not fallback cases

closes odoo/odoo#27989
2018-10-19 15:28:43 +00:00
Christophe Simonis d4c343588f [FIX] test_mail: bump query count margin
Needed to make test pass with `mail_push` (enterprise module) installed.
2018-10-19 16:13:05 +02:00
Christophe Simonis 0fcb28c97b [MERGE] forward port branch saas-11.3 up to d82a907728 2018-10-19 14:32:09 +02:00