Commit Graph
117156 Commits
Author SHA1 Message Date
tbe-odoo f65d13fc94 [FIX] website_sale: Fix terms & conditions
- Fixed accept terms & conditions button when paying on e-commerce.
2017-09-04 14:53:54 +02:00
Cedric Snauwaert c39ad11d44 [FIX] account: when opening reconciliation from an account, only open view for that particular account 2017-09-04 14:44:01 +02:00
Thibault Delavallée e986f0986e [CLN] payment: lint newly-introduced payment form
This commit performs just some linting in order to ease code reading and
prepare future updates.

 * extract duplicate variable computation;
 * link spaces and indentation;
 * light renaming to ease code understanding;
2017-09-04 14:09:58 +02:00
Thibault Delavallée 7cb704a324 [IMP] payment: add acquirer computation tools to ease future additions
* add a method computing available acquirers and payment tokens for a
   given partner and company. Those data will be used notably in customer
   portal when displaying the payment form;
 * raise if no partner_id set in s2s process. Indeed this field is
   required but values come from a dict. Current code raises an error
   about None being converted to Int instead of giving the real error;
2017-09-04 14:09:54 +02:00
Christophe Simonis dad095de30 [MERGE] forward port branch 9.0 up to dc88a1ac42 2017-09-04 11:58:43 +02:00
Patel Jalpesh dc88a1ac42 [FIX] l10n_fr: migrate tags on taxes
Closes #19231
2017-09-04 11:55:45 +02:00
Thibault Delavallée 4b746b3b9b [REF] account: factorize portal code to ease future additions
* get invoice access right check in its own method. Purpose is to allow
   its use in other methods and avoid writing same code several times;
 * factorize invoice customer view values computation. Purpose is to allow
   adding values when displaying the page through inheritance. For example
   to add available payment means in sale_payment;
2017-09-04 11:15:49 +02:00
Thibault Delavallée 2ec4dbeb49 [MOV] sale: put all assets in same file and rename portal templates 2017-09-04 11:15:38 +02:00
Thibault Delavallée 44c062a2f8 [REF] sale: portal: factorize some portal code to ease future additions
* get order access right check in its own method. Purpose is to allow
   its use in other methods and avoid writing same code several times;
 * factorize order customer view values computation. Purpose is to allow
   adding values when displaying the page through inheritance. For example
   to add available payment means in sale_payment.
2017-09-04 11:15:30 +02:00
Lucas Perais (lpe) f98bb2b86b [FIX] website_sale: correct images of product and variants
Before this commit, when trying to edit through the website editor the product image, it was in fact the product variant that we edited.

This commit corrects it and when an image is displayed, the model it comes from is reliable

OPW 767539

closes #19168
2017-09-04 10:19:25 +02:00
Nicolas Martinelli abea8d3513 [FIX] crm: expected closing
Complement of commit 9d2f48dc7f

opw-724375
2017-09-04 10:13:12 +02:00
Lucas Perais (lpe) d22d4dcc23 [FIX] website_crm: fix lead creation through website_form
Before this commit, a message received through the contact us form did create a Lead, but any notification was impossible (even if a user was a follower of the relevant sales team.
This was because the default sales team is integrated in the values for create in models.py, which mail_thread can't see, but needs in order to notify

This commit corrects the behavior which now converge with standard lead creation by adding the default sales_team earlier in the values for create

OPW 762651

closes #19180
2017-09-04 10:09:06 +02:00
Nicolas Lempereur 004eab9e8a [FIX] sale_timesheet: sudo() order != task company
As in a7985a5ab the SO could be in another company than the linked task
and this should not hamper creating / modifying timesheet lines in the
task company that happened since 71bb9a09.

opw-34138
closes #19234
2017-09-04 09:50:14 +02:00
Goffin Simon 23f0fb6168 [FIX] website_sale: product category tree not clickable in eCommerce
When  the last selected category or search criteria in eCommerce had
no products(No product defined), the website category tree was not
clickable.

opw:767021
2017-09-04 09:39:05 +02:00
Aaron Bohy b7c92ecaac [FIX] web: dialog: remove setTimeout making tests fail
... sometimes.

When a dialog is destroyed, the last opened dialog (the one which
is just below), if any, is focused. This allows to close it
directly by pressing ESC. For an unknown reason, this was done in
a setTimeout (delay 0).

The problem is that the setTimeout made some JS tests fail
randomly, when a test ending by closing a dialog was executed
right before a test using a many2one inside a dialog. When this
happened, the second test failed sometimes because its dialog was
focused (because of the previous test) while waiting for the
autocomplete dropdown to open, triggering a blur event on the m2o
input, and thus making jquery autocomplete aborting the search,
and the opening of the dropdown.
2017-09-04 09:31:59 +02:00
Nicolas Martinelli 8813e9cffc [FIX] website_sale_delivery: disable 'Pay Now' button
- Enable several shippers
- Enable Paypal acquier
- Buy a product on the eCommerce, go to payment page
- Change the shipper

While the page is reloading, the user has time to click on the 'Pay Now'
button.

opw-748467
2017-09-04 09:12:47 +02:00
Nicolas Martinelli 04990288a5 [FIX] website_sale: archived products
Archived products still published on the website will trigger a
traceback when accessed (the link might still exist in a search engine
results).

opw-767740
2017-09-04 08:46:46 +02:00
Wolfgang Taferner 85213a49b5 [FIX] mrp: generating raw move based on bom line should copy sequence
Closes #19182
opw-769259
2017-09-04 08:40:25 +02:00
Wolfgang Taferner bfa6394383 [FIX] hr_attendance: only if the check_out is later than the check_in
You can not create a check-in at 09:00 in case you have an attendance
where you checked out at 09:00.

Complement of bfa55e42f9

Closes #19226
opw-769773
2017-09-04 08:28:32 +02:00
Nicolas Martinelli 5d1dafbf9b [FIX] hr_expense: prevent deletion of posted expense
Prevent the deletion of expense or expense sheet if they are linked to a
journal entry.

Closes #19128
Closes #19044

opw-767549
2017-09-04 08:22:40 +02:00
Odoo Translation Bot 39dafce595 [I18N] Update translation terms from Transifex 2017-09-03 07:07:46 +02:00
Odoo Translation Bot 0e0771e319 [I18N] Update translation terms from Transifex 2017-09-03 04:40:05 +02:00
Odoo Translation Bot 11ce4d228d [I18N] Update translation terms from Transifex 2017-09-03 00:30:50 +02:00
Laurent Smet aee43c0d14 [ADD] account: add cash rounding managment
In some countries, we need to be able to make appear on an invoice a rounding line, appearing there only because the smallest
    coinage has been removed from the circulation.
    For example, in Switerzland invoices have to be rounded to 0.05 CHF because coins of 0.01 CHF and 0.02 CHF aren't used anymore.

    Was PR #15231
    Was task 30904
2017-09-01 18:23:45 +02:00
Lucas Perais (lpe) b6778ee752 [FIX] account: reconciliation_widget: rounding of reconciliation_amount computation
Use case:
- a tax of 10%, computation method: percentage of tax included
- a account_reconciliation_model with an amount of 90%
- make a statement of 1.31 (or something weird when it comes to digits)
- reconcile it with a counterpart
- prefill that counterpart with the account_reconciliation just created
- push on reconcile

Before this commit, the amount that was computed was not rounded, resulting in making unbalanced account_moves (by 0.001)
This was invisble since the display of monetary is rounded
After this commit, the rounding is done according to the currency's parameters and produces correct move_lines

OPW 751881
2017-09-01 17:15:47 +02:00
d-fence c030213fa3 [IMP] hr_expense: Allow a user to refuse an expense sheet from a line
Purpose
=======

Currently, a manager or a accountant can only refuse one expense report with a justification message.

If there are a lot of lines too comment individually or if only one line should be modified, the manager or the accountant can now refused one line and give a reason for it. That will refused the expense report automatically while waiting the employee to make the modifications.

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

- Rename wizard files, models and ids according to the model

- Allow to refuse one or several lines with a reason

- Use a qweb template to log messages, use message_post_with_view instead of message_post

- Print expense name instead of sheet name. In the log when expense is refused, it prints expense report name instead of expense

- Prevent modifying approved expenses
	* A user should not be able to modify an expense once approved
	* Method refuse_expense renamed to refuse_sheet when applied to a whole
	expense report/sheet
	* 'model' dict key renamed to something more explicit and less prone to
	confusion (passed in context to the refuse wizard)
	* Usage of explicit fields in the wizard to avoid confusion
	* Overriding 'default_get' to get default values for those fields

- When an expense is paid or reported, it must be impossible to refuse it.

- Replace refused expenses tree
	Purpose: The menu 'Refused expenses' is confusing. This improvement
	replaces it by 'Refused Reports' and leads to the refused reports tree
	view. That way, it's easier for the user to find back his refused
	expenses reports.

- Hide create button on refused
2017-09-01 15:30:30 +02:00
Adrien Dieudonne c2563dbb0d [FIX] web: BasicModel: correctly sort editable lists
This rev. fixes several issues with the sorting of dataPoints of
type list in the BasicModel.

First, only 'static' lists (i.e. x2many lists) must be sorted
client-side, and results of search_read RPCs must remain unsorted
as they are already retrieved sorted from the server.

Second, editable and non-editable x2many lists don't behave the
same with respect to sorting (we reproduced in this commit the
behavior of saas-15). With editable lists, the edited rows are
unsorted, except if the user explicitely ask for a sort (by
clicking on a column header), until the form view is saved. With
non-editable lists (as for x2many kanban), the sort is performed
directly when a record is created or updated (as the edition is
done from a dialog).
2017-09-01 14:30:06 +02:00
Aaron Bohy 0694caabfb [FIX] mail: FieldMany2ManyTagsEmail: apply changes
The FieldMany2ManyTagsEmail requires that the records in the
relation have an email address set. However, it didn't take into
account the changes that might have been done on the field's
value (i.e. the check wasn't applied on subrecords that just had
been added to the relation).
2017-09-01 14:29:55 +02:00
Yannick Tivisse 5b7e991c42 [FIX] test_main_flows: Fix induced error from 23e77b8 2017-09-01 13:46:31 +02:00
Yannick Tivisse 781a03b2bc [IMP] res_config: Update file names, xmlids, class names according to guidelines
Now that we only have one model (res.config.settings). Uniformize everything according to the guidelines.
2017-09-01 13:03:18 +02:00
Deep Patel 898224f110 [IMP] web,account,...: Regroup settings, add a nav and search bar
Purpose
=======

Settings are often way too long and hard to scan and sometimes you don't know where to find the settings you're looking for.
By adding a left navigation, you can already have an overview of the settings, and switch easily between them.

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

- Add a search bar on all the apps that have settings which can search results from all the installed apps.
  (If i'm on sales settings,and I search anything then it shows results from sales settings and also shows
  all the other matching results from all the other apps such as, Inventory...etc) with app name.
- Able to activate feature from the current page results (no matter if the searched result is from another apps).
- Highlight searched word in results
- Delete the sheet, have a full white background
- Add left navigation bar on setting
- Left navigation bar fixed
- List displayed based on installed apps
- On right panel, by default display current app setting and change accordingly
- [Mobile] Left navigation bar displayed on top
- Add Breadcrumb on top of the page: have the name "Settings" + Save / discard CTA + Search
- Add General Settings on the nav bar
- remove "save this page..." notif in all settings
- Delete all recommanded apps section + all checkbox that install app should disappear:
	payroll: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrSkMzWVpuZ0ZoaFE/view?usp=drivesdk
	Events: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrYXlHMHd2NTM2blE/view?usp=drivesdk
	Manufacturing: Delete Repair - Quality Control - Maintenance - Product Lifecycle Management [LAP][ok]
	Timesheets: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrdFg5XzNydkd2TlU/view?usp=drivesdk
	project: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraWo3NE04TktwcTQ/view?usp=drivesdk
	inventory: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrQkRaVUR5ekFQYTQ/view?usp=drivesdk
	recruitment: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrbDdqLWQweF80UkE/view?usp=drivesdk
	purchase: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrRlAyUDBnb0trQWs/view?usp=drivesdk
	email marketing: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrOUZONjhvX2k3Y2s/view?usp=drivesdk
	expenses: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrR0JpN1ZpQmtxU3M/view?usp=drivesdk
	attendances: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrralpjZ1VJclNpMWs/view?usp=drivesdk
- About duplicate settings:
	Docsaway: Delete from Sales + delete Default Print Provider
	Attributs & Variants: Delete from Purchases - Manufacturing
	Multi-currencies: delete from Sales
	Unit Of Measures: Delete from Purchase & Expenses
- Add a scroll bar on the left bar when there's too many apps
- Keep the navbar visible even when you search
- Move General Settings to the bottom of the list
- Update on Settings:
    - Accounting:
        - rename automatic rates
        - Anglo Saxon Account: Should be in technical feature
        - Place Accounting Reports section before Taxes section
    - CRM:
        - Phone Validation: Enforce international format becomes
        - Local Numbers: (2 radio buttons proposals) Add international prefix / No prefix
    - Fleet: typo " ... a new car if ..." + text is too long <br>
    - project: fix tooltip for colab pads
2017-09-01 13:02:54 +02:00
Jérome Maes a980376bfa [FIX] sale_timesheet: avoid crash when comparing UoM of different category
If not UoM set, timesheet UoM is hours by default
and product one is Units. We can consider 1 unit =
1 hour.
2017-09-01 11:39:26 +02:00
Denis Ledoux cdbe2f0ed4 [FIX] hr_timesheet: security, do not require all timesheets user to be HR officer.
Regular employees are added to the timesheets user group
so they can access to the Timesheets modules.

Requiring timesheets users to be HR Officer would almost mean to
require all employees to be HR officer, which is not the case.

The above is the result of the revision
a806f96fa2

Before, the timesheets user group was the
timesheets officer group, and it was the only
group for the module timesheets. There
were no timesheets manager or user group.
This group implied the HR Officer groups,
but it made sense as it was the Timesheets
Officer group.

Now that it is the timesheets user group,
it doesn't make sense to imply
the HR Officer group.
2017-09-01 11:39:17 +02:00
Pierre Masereel 84f0e84d14 [FIX] stock_account: standard price update move done
When you change the quantity done of a done move of a product valuated
by standard price in perpetual valuation, the price used to update
create the corrective journal entry is the price unit of the move
instead of the standard price.

This behaviour leads to iconsistancy like having a empty stock and still
have a valuation on the stock valuation account.

To fix this issue, we check if we are working in standard price and use
the standard price of the product instead of the move unit price.
2017-09-01 11:28:43 +02:00
qsm-odoo 8e2ddfe92b [REF] web: prepare for new form view design 2017-09-01 10:34:50 +02:00
qsm-odoo b781565e36 [REF] web: allow to distinguish kanban/list x2m in LESS 2017-09-01 10:33:11 +02:00
qsm-odoo 6b6651be86 [FIX] web: properly display statusbar arrows 2017-09-01 10:33:05 +02:00
stefanorigano 66701258f7 [REF] web: introduce new form-view layout 2017-09-01 10:32:49 +02:00
Fabien Pinckaers 15a066dd34 [IMP] project: UX visibility of "Assign to me" button
It's weird to click on the "assign to me" button and nothing happens.
The button should disappear is someone is already assigned.
2017-09-01 08:49:57 +02:00
Pratima Gupta 83f2557d72 [IMP] mrp: restructure the consume_line_ids tree view
Also adds strings that are more appropriate in an MRP context.
2017-08-31 21:22:48 -07:00
Pratima Gupta c679c99121 [IMP] mrp: show date_planned_finished only if date_planned_start is set 2017-08-31 21:22:48 -07:00
Pratima Gupta f942876579 [IMP] mrp: display the quantity in the uom defined on the move line 2017-08-31 21:22:48 -07:00
Pratima Gupta 1fe828c496 [IMP] mrp: reserved_availability before product_uom_qty in move_raw_ids
Also change 'Quantity Reserved' string to 'Reserved' to have a more
concise tree view.
2017-08-31 21:22:48 -07:00
Pratima Gupta ca71643694 [IMP] mrp_repair: make stock.moves generated by a repair refer to repair
Instead of the mrp.repair.line.
2017-08-31 21:22:48 -07:00
Pratima Gupta 096f8c56b7 [IMP] stock: make traceability button on product.* open stock.move.line
Instead of stock.move.
2017-08-31 21:22:48 -07:00
Prakash Prajapati a3e7a60b38 [IMP] mrp: hide source/destination from MO report to avoid confusion 2017-08-31 21:19:40 -07:00
Prakash Prajapati 1ef042eee8 [IMP] mrp: remove barcode on MO report as this is not yet implemented 2017-08-31 21:19:33 -07:00
Odoo Translation Bot 8e6f65b469 [I18N] Update translation terms from Transifex 2017-09-01 02:40:20 +02:00
Joren Van Onder 6c41a0faa3 [FIX] test_main_flows: only expand schedulers submenu in community
In enterprise these types of submenus are always expanded.
2017-08-31 15:08:32 -07:00
Haresh Shyara 5121e151dc [FIX] stock: add invisible name field for move_lines in picking form
Mistakenly removed in 7cbca2582c.
2017-08-31 11:17:55 -07:00