Commit Graph
104316 Commits
Author SHA1 Message Date
Josse Colpaert d7595a674e [IMP] mrp: use decoration-danger for not available raw materials even if it gives the same color as when you consume more than foreseen 2016-08-30 13:59:53 +02:00
Josse Colpaert 11c7a87044 [IMP] mrp: products in boms, ... should be stockable by default 2016-08-30 13:59:53 +02:00
Josse Colpaert 17be15fd61 [IMP] mrp: routing of phantom boms in bom
When the routing of the phantom bom is the same as the parent BoM,
the phantom BoM should not recreate the work orders, but use the same
work orders as the parent BoM.  That way, you can create one master
routing and the "consumed in operation" of the phantom bom can be used
linking to the master routing.

If the phantom bom has no routing or the same, it can also use
the "consumed in operation" of his parent bom line if none is defined.
2016-08-30 13:59:53 +02:00
Josse Colpaert d985fa796e [IMP] mrp: Put back field 'priority' to avoid migration problems 2016-08-30 13:59:53 +02:00
Josse Colpaert cc719412d9 [IMP] attachment: binary does not need save as button in widget 2016-08-30 13:59:53 +02:00
Yannick Tivisse ba104eba6a [MERGE] sale,account,project,issue: Notifications review for portal users 2016-08-30 10:20:47 +02:00
Yannick Tivisse b1680bc319 [FIX] project,issue: Correct management of Notifications to portal users
[FIX] website_project: override get_access_action to redirect to my/tasks,projects

[FIX] project_issue: Don't send notif template to portal customers if no website

[FIX] website_project: Portal users can receive notif template
2016-08-30 10:18:53 +02:00
Yannick Tivisse 9a51855008 [FIX] account,sale: Correct management of notifications to portal users
[FIX] sale: Don't display 'View quotation' button on email if no website
If the website module is not installed, the button 'View Quotation' will lead to the backend chatter page, which is not very useful in our case.
As the quotation is already attached in the mail as a pdf, just don't display the button if the website module is not installed

[FIX] account,sale: Don't send notif template to portal customers if no website

[FIX] account: Don't display 'View Invoice' button on email if no website
If the website module is not installed, the button 'View Invoice' will lead to the backend chatter page, which is not very useful in our case.
As the invoice is already attached in the mail as a pdf, just don't display the button if the website module is not installed

[FIX] website_sale: override get_access_action to redirect to my/invoices
2016-08-30 10:17:38 +02:00
Yannick Tivisse df802f9005 [FIX] portal_sale: Move portal access rights to website_portal_sale
Currently as no portal backend view exists anymore, the method 'get_access_action' will return a url to the backend.

For example, if you have only sale installed (with portal_sale in auto install mode), you'll get access rights to sales orders in read mode in backend. The correct way to handle this is to return an access error and give the access rights to these documents only in website_portal_sale is installed, i.e. when the portal view is accessible in frontend under my/orders/ controller.
2016-08-30 10:09:36 +02:00
Yannick Tivisse db28e23e76 [FIX] website_portal_sale: Remove useless/broken link to backend from my/order,quote
portal_sale: Remove invalid 'get_formview_action' overwrite

This commit https://github.com/odoo/odoo/commit/ecd58457ed2311cfec8cae9d01b04ce995b31ec7 has removed some backend portal actions, but didn't remove them from the template links.
2016-08-30 10:09:36 +02:00
qsm-odoo 88d8a2ca8e [FIX] web_editor: hide header in customize dropdown when it has no content
In some snippets, the parent hierarchy has many elements. So, when
selecting a deep child of one of those, the customize dropdown had
many dropdown headers showing the parent hierarchy but without any
option for many of them.

Commit de0d9fd666 already fixed the case
where the dropdown only contains dropdown headers. This commit is an
adaptation to hide these headers one by one.
2016-08-29 18:50:51 +02:00
qsm-odoo ca01e7d7c5 [FIX] web_editor: change margin and resize handle icons on focus
The feature was lost because of a programmation error (use of this in
a non-binded function).
2016-08-29 18:50:51 +02:00
Raphael Collet 63a3c43be7 [FIX] website_crm_partner_assign: remove print statement 2016-08-29 16:18:39 +02:00
Christophe Matthieu 621a7c92b0 [FIX] qweb: wrong result when use the value defined by the t-set
When use t-set the value is replaced by an empty list and can't be use inside the t-set.

Issue: <t t-set="bibi"><t t-raw="bibi"/> other</t> => ["\n "] other
2016-08-29 10:33:45 +02:00
Christophe Matthieu 00f18312bd [FIX] qweb: display a warning when try to use profiling without astor module 2016-08-29 10:33:22 +02:00
Christophe Matthieu 4fd99a9aae [FIX] qweb: wrong profiling result because the calls are not ordered 2016-08-29 10:33:02 +02:00
dut-odoo be3fbd20e2 [FIX] website_portal_sale: fixed archive domain
* Archive isn't working properly because doesn't show elements of
  last day of the month in the wrong month
  Change the domain to take the good days.
2016-08-26 18:04:38 +02:00
Christophe Simonis 78e9c7f567 [FIX] website_event: use new t-options attribute in qweb vie 2016-08-26 17:29:15 +02:00
Christophe Simonis de0d503421 [MERGE] forward port branch saas-11 up to f0c8224 2016-08-26 16:59:45 +02:00
Pierre Masereel c855126069 [FIX] website_portal: remove keep_query on archives
It was impossible to pass from  an archive to another because of
the keep_query in the url generated that set multiple times the
same argument in the url. Removing this allow to have a 'date_begin'
and a 'date_end' corresponding to the selected archive.
2016-08-26 16:32:07 +02:00
Martin Trigaux f0c8224175 [FIX] update saas-11 translations by merging 9.0 and master
using the --uses-first parameter on msgmerge this time
2016-08-26 15:19:04 +02:00
Christophe Simonis 717a4a51a5 [MERGE] forward port branch saas-10 up to 7a4116c 2016-08-26 14:57:43 +02:00
Christophe Simonis 7a4116cd03 [MERGE] forward port branch 9.0 up to 1b15aa5 2016-08-26 14:43:03 +02:00
Christophe Simonis 57972b8754 [FIX] point_of_sale: group pos entries by tax
Forward-port of dc975f3b0b which have
been forgotten during previous commit
2016-08-26 14:37:55 +02:00
Richard deMeester 1b15aa590b [FIX] account_budget: reset correctly result variable
If a budget line has no analytic account id, the code is intentional
about returning a value of 0 for it.  It is possible, that in some
cases, depending on the order of lines processed, the routine returns
the previous value, as it does not initialise an important
variable on each iteration of the loop.

Closes #13303
2016-08-26 14:19:57 +02:00
Thibault Delavallée 012270b59d [REV] "[FIX] product: avoid search returning two times the same product"
This reverts commit c34972a296.

Please check what you are doing or stop committing in official branches.
2016-08-26 13:11:07 +02:00
Jeremy Kersten 8a6ce978ff [FIX] website_crm_partner_assign: fix traceback when save 'Edit Opportunity'
Add label for usability, didn't understand what was the date field e.g.

Fix bug when no priority, 'priority' field was not submitted -> save function crash
Fix bug textarea, if title_action is False, not textarea, so no field
title_action submitted -> save function crash

After this commit, we can click on save and it should work...

No priority or 0 => 0
No title or "" => ""
2016-08-26 13:05:07 +02:00
Jeremy Kersten 925b480aa9 [FIX] website_blog: link send by mail crash
/mail/view?model=blog.post&res_id=1

crash in 'res_id': self.id

AttributeError: 'blog.post' object has no attribute '_ids'
2016-08-26 13:05:07 +02:00
Jeremy Kersten 7d0f1cc23d [IMP] website_portal: increase default items per page to 20
Feedback: 10 is very few
2016-08-26 13:05:07 +02:00
Renato Lima e23e018285 [FIX] product, purchase: move purchase_ok from purchase to product module
Account uses this field from purchase module, but account don't depend of
 purchase.

Already done for sale_ok previously.

See #13268 #315 #13271
2016-08-26 13:05:07 +02:00
Fabien Pinckaers eda49b91d4 [IMP] mrp: lots quantity aloways visible (the + and - icons are not clear at all) 2016-08-26 11:48:06 +02:00
Fabien Pinckaers c34972a296 [FIX] product: avoid search returning two times the same product 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 6a35009306 [IMP] mrp: better kanban view for attachments 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 8765353fa7 [FIX] mrp: allows to select the BOM on workorder messages 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 2b2351a644 [FIX] mrp: empty list message on product attachments 2016-08-26 11:48:06 +02:00
Josse Colpaert 2c3db076f9 [IMP] mrp: normal/phantom bom filters on bom search 2016-08-26 11:45:44 +02:00
Josse Colpaert 4f9af6838f [FIX] mrp: use unit_factor when generating lots in work orders and make sure to generate lots when necessary
When (re)generating the stock.move.lots in the workorder,
it should use the unit_factor on the move like everywhere else.
This makes sure we do well with the explosion of phantom boms too.

It is also important that if there is no operation_id given
explicitly in the "consumed in operation" on the bom line,
that it still generates the necessary stock.move.lots in the last work order.

Also, in the work order it is better to set the quantities done already.
That way we don't forget to consume them.
2016-08-26 11:45:44 +02:00
Dhaval Suthar 5cef19c165 [FIX] sale_service_rating: rating of issue
* When an issue was set in stage that has a rating email template
  and that the project was set on 'rating when changing state',
  there was a warning with Failed to render template.
  There was a small error in a condition that fired exception.
2016-08-26 11:35:41 +02:00
Cedric Snauwaert a86143276b [FIX] account: fix exchange rate entries
When a reconciliation creating an exchange rate entry was done, the newly account_move_line corresponding to the exchange entry was not given a full_reconcile_id.

Also when doing a full reconciliation in different currency, full_reconcile_id was not set on account_partial_reconcile object resulting in problem when trying to unreconcile entries.

This is a backward fix of commit: 9b5fed4976 and cda132bba5
2016-08-26 09:44:13 +02:00
Nicolas Martinelli 5f76928f9f [FIX] website, website_event: Google Maps image
Google made the use of an API key mandatory to use the "Google Static
Maps API". The API key field will be created for the upcoming version.

opw-686510
2016-08-25 18:25:33 +02:00
Christophe Simonis 5c2025a3af [MERGE] forward port branch 9.0 up to c578fb7 2016-08-25 18:23:47 +02:00
Pierre Masereel 4ccc1f9bc8 [FIX] website_sale_digital: fix attachments stat button domain
Due to a syntax error in the domain of product attachement
a traceback was given.
2016-08-25 16:44:30 +02:00
Christophe Simonis c578fb792c [FIX] website_blog: read field from browserecord 2016-08-25 16:28:11 +02:00
Yannick Tivisse ce4d207741 [MERGE] hr_expense: Usability review + Mail gateway integration with alias_contacs + Fixes
Merge branch 'saas-12-expense-fixes-yti' into saas-12
2016-08-25 16:13:04 +02:00
Yannick Tivisse 3b5d6da5c1 [FIX] hr_expense: Solve several usability issues on the flow
Review the subtypes
===================

- Add a subtype for the paid expenses
- Correct subtypes wording

Prevent expense report for several employees
============================================

- Can add lines from every employee, leading to account issues (payable / receivable)
  Raise an error if you try to report several expenses for different employees

Don't track onchanges on journal_id
===================================

- Expense Sheet, click on Post Journal Entries: you have 2 produced messages, and
  one is strange (Journal Entry: * 1 ?)

Remove useless message on chatter
=================================

- Remove the message to say that the expense report has been validated by ...
  It's redundant as the visibility tracker already logs this change

Remove unused method
====================

- 'refuse_expense_sheets' is declared but never used

Log a link to the payment on chatter
====================================

Expense Sheet, click on Register Payment: you have a message containing the
payment name (SUPP.OUT/2016/0001). Add a link to the form view.

Expense duplication
===================

Do not copy 'sheet_id' on duplication. It's wrong and has as secondary effect
to duplicate the state too.

Expense Report tree view
========================

Display correctly the widget monetary
2016-08-25 16:06:44 +02:00
Yannick Tivisse 47728ccd40 [FIX] hr, hr_expense: Allow employees to send emails to aliases
New feature in mail module
==========================

Currently, an email can be sent to an alias from:
- Everyone
- Authenticated Partners
- Followers

This commit is intended to add another category: Employees
The main purpose of this new feature is to allow employees to send an email
to an 'expense' alias in order to create automatically their expenses with
their mobile phones.

Use this new mechanism in hr_expense
====================================

Currenlty, we're overriding message_new to make a security check and create
an expense if the sender is an employee or bounce otherwise, which is not the
correct way to achieve this. A better way is to use the alias mechanism now
that it has been extended to employees too.

Don't hardcode email_from
=========================

The email_from of the bounce email is hardcoded to "help@odoo.com". I am sure
they will be happy to receive all answers from any odoo instance

Review the bounce email content
===============================

content: Your expense has not been created because your email address is not set
on an employee or on a employee's user. Configure your employee's information correctly and try again.
-> this is a message for the admin, not an employee or anyone else

Now the content is generical for aliase defined for employees.
2016-08-25 14:55:08 +02:00
Yannick Tivisse 920b791ac5 [FIX] hr_employee: Don't create expenses from every email address
This is simply useless and the open door to spam. The inital goal for this
option was to be able to create an expense from any email in the onboarding.
It was even commented with 'Don't use this in production' which is another
point to remove it.

It is wrong because:
- In a saas instance, the employee email = the admin email = the email you
  entered while filling the form. So, if the user sends an email with his phone,
  the expense will be created. If the user sends an email with another email address
  then the expense won't be created but he'll receive an automated email explaining
  that he should register his email address either on it's user information or on it's
  employee information (professional on employee, private on user for example).
- With this modified behavior, if no email address is matching the sender email address
  the system will create an expense with the-first-employee-linked-to-an-user as employee,
  which is totally wrong. Furthermore, the guy that sent the email will not see the created
  expense because it hasn't been assigned to him.
- Everyone can create expenses, I don't even imagine how fast we can overload the database
  with a huge pile of crap
2016-08-25 14:55:08 +02:00
Yannick Tivisse 1bf327d985 [IMP] hr_expense: Reorganize menuitems usability wise 2016-08-25 14:55:08 +02:00
xmo-odoo 0a02325cd7 [FIX] web_kanban: value not in selection states
Non-required selection fields and incorrectly updated fields (e.g.
changed options but didn't fix existing values) trips KanbanSelection
badly leading to the entire kanban view failing to appear: the rendering
phase does not find the state in its states list and blows up when
trying to access the state's class.

Fix by adding a fallback default state with an empty class.
2016-08-25 14:54:46 +02:00
Martin Trigaux cb0484d562 [FIX] Update Arabic translation terms from Transifex
To correct wrong %s translations.
Fixes #13281
2016-08-25 14:50:29 +02:00