Commit Graph
112123 Commits
Author SHA1 Message Date
jpr-odoo 46699c5214 [IMP] mail: Add a preview popup for attachments
Purpose
=======

The goal is that when you click on an attachment, you should get a preview of it and then you get the possibility to download it.
2017-09-05 15:52:15 +02:00
Yannick Tivisse fa432175e9 [FIX] mail: Don't compute channel history if no channel
Purpose
=======

As the method `channel_fetch_message` calls self.ensure_one(), we shouldn't load the channel history if no channel is already existing for the external user.

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

Return a empty list if channel_id is False
2017-09-05 15:52:15 +02:00
Yannick Tivisse 2e3848b394 [IMP] web: Add the possibility to crop an image in web/image controller
Purpose
=======

Could be useful if you want to load a preview of an image as a thumbnail
2017-09-05 15:52:15 +02:00
Yannick Tivisse 6801baa662 [IMP] image.py: Crop image with maximum size instead of ratio
Purpose
=======

It makes no sense to crop an image from a ration. We don't say "I don't know my image size, but divide it by 2"

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

Pass a maximum size argument instead of a thumbnail ratio
2017-09-05 15:52:15 +02:00
Laurent Smet fe2bdc2649 [FIX] l10n_ch: fix missing renaming of settings
account.config.settings has been renamed by res.config.settings, see 781a03b2bc
2017-09-05 15:02:30 +02:00
Sanjay Jamod 160001ca68 [IMP] mrp: Improve settings labels and installable modules
Purpose
=======

Improve settings of manufacturing app

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

https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrMndPb2ZWbUY2Tm8/view?usp=drivesdk
2017-09-05 13:29:16 +02:00
Kirti Choudhary 36a2bfb9cf [IMP] *: add and improve kanban views for mobile
This commit improves readability in kanban views.
The default view in mobile is kanban and many of them
needed to be improved.

task-33438
closes 17853
2017-09-05 13:21:58 +02:00
qsm-odoo 41e7a1374f [MERGE] web, mail: introduce new chatter/discuss design 2017-09-05 12:16:28 +02:00
qsm-odoo 489db80101 [REF] web: better mock images routes
Before this commit, only the routes which began by '/web/image' were
mocked (simply ignored). This forgot the case were it is a full URL
(http://www.test.com/web/image). Now, also mock the static images
routes (for .png and .jpg).
2017-09-05 12:13:55 +02:00
qsm-odoo 24ea61163d [REF] mail: review new chatter design
- Use classes instead of repeated mixins
- Add real user avatar instead of fake one
- Reorganize LESS rules
2017-09-05 12:13:55 +02:00
stefanorigano 12b818d375 [REF] mail: introduce new chatter/discuss design
- Improve overall design
- Better use of UI colours
- Replace planned activities icon
- Vertically align kanban icons
- Remove the 'bell shtcut' and followers caret
- Use a mixin to style the chatter (inline, not inline, compact)
2017-09-05 12:13:55 +02:00
stefanorigano 378fe92b60 [REF] web: add btn-links variations
Create variations for btn-link with UI color classes.
These btns appear as default text (muted necessary) and they will use
an UI color on hover.
2017-09-05 12:13:55 +02:00
stefanorigano 1f78ae3c18 [REF] web, mail: change minors top-menu design
- Remove carets
- Fix badges position
- Vertical align user avatar
- If a dropdown is open, the menu-toggle should appear active
- Dropdown menus' widths should be at least as the dropdown-toggle
2017-09-05 12:13:55 +02:00
Yannick Tivisse 7a4de30cee [IMP] base: Rename 'Cancel' Call-to-action into 'Discard'
Purpose
=======

Be consistent with other screens

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

Replace "cancel" by "discard" in all setting page.
2017-09-05 11:55:10 +02:00
Yannick Tivisse a22dee58e1 [IMP] project: Hide email_cc field on tasks 2017-09-04 16:53:57 +02:00
Yannick Tivisse 76fdd10b18 [IMP] web: Modify timeout duration on test_js.py 2017-09-04 16:53:39 +02:00
Yannick Tivisse d48b0c40bd [IMP] settings: Remove unnecessary field redefinitions in config models 2017-09-04 16:52:30 +02:00
Yannick Tivisse c39abeeefe [IMP] settings: Remove redefinition of company_id in settings.
On the other hand, create a new field for the configuration of the inter company rules.
2017-09-04 16:52:30 +02:00
Yannick Tivisse 955ad1d85d [FIX] crm,hr_expense: Give 2 different names for alias prefix
Purpose
=======

Now that the res.config model have been merged into a single model, the 2 alias prefixes should have different names to avoid conflicts.
2017-09-04 16:52:30 +02:00
Yannick Tivisse eb4ad33513 [IMP] project: Remove field use_tasks
Purpose
=======

This isn't useful now that project issues and tasks have been merged.

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

Keep the label field, remove the checkbox
2017-09-04 16:52:30 +02:00
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
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
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
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
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
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
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
qdp-odoo f395735201 [FIX] account: setup bar test requires an opening move to be created
This is usually made through the action of the setup bar but in the test we create manually the wizard, so we have to force the opening entry creation first
2017-08-31 18:21:08 +02:00
Christophe Matthieu 95c2bd33a2 [IMP] web: lazy load nvd3, ace and fullCalendar lib to reduce asset size 2017-08-31 16:26:11 +02:00
Christophe Matthieu 6f60a9a179 [REM] web: kill zombies 2017-08-31 16:26:11 +02:00
Olivier Colson 2d1b8e9f34 [IMP] account: new setup bar
Add a setup bar on account's dashboard, so that the user can more easily enter the initial data of his Odoo installation, following the steps that are proposed to him.

Was PR #16864
Was task 32119
2017-08-31 15:58:22 +02:00
rde efecf22b45 [FIX] website: fix sitemap
typo during python3 convertion
2017-08-31 15:43:04 +02:00
Christophe Simonis 324caf2f6b [FIX] account: adapt code to previous forward-port changes 2017-08-31 14:23:38 +02:00
Parth Gajjar b6ef149b0d [IMP] web: filter when clicking on tags in Kanban
This commit adds a feature to the widget Many2ManyTags for kanban
views. When a tag is clicked, records are filtered on the given
tag, in addition to the active filters in the search view.
2017-08-31 14:09:32 +02:00
Christophe Simonis db546a3880 [FIX] web: correct test 2017-08-31 13:32:02 +02:00
Christophe Simonis daaaaa552e [FIX] core,test_new_api: adapt code to removal of ir.values 2017-08-31 13:22:39 +02:00
Christophe Simonis 4879ce0407 [MERGE] forward port branch saas-17 up to fe77df3ba4 2017-08-31 12:55:41 +02:00
Thibault Delavallée dae6178a0a [FIX] payment: fix issue about required fields in payment form
It seems like even a correctly-filled field triggers an empty input
error because variable about empty error is always True.
2017-08-31 10:20:51 +02:00
Haresh Shyara fe77df3ba4 [IMP] stock, stock_picking_batch: improve tree, form view of product moves and menus 2017-08-30 21:17:33 -07:00
Jignesh Rathod 23e77b8033 [IMP] stock: restructure menus of stock. 2017-08-30 21:17:33 -07:00
Jignesh Rathod 2e5fd48362 [IMP] stock: stock move lines form view. 2017-08-30 21:17:33 -07:00