Commit Graph
107421 Commits
Author SHA1 Message Date
Fabien Pinckaers cb90aeade6 [IMP] web: pie chart with a percentage label 2017-01-18 15:43:12 -08:00
Fabien Pinckaers d1ee11ff4d [IMP] product: typo default_code is not an internal reference + bug at import because two times the same label 2017-01-18 13:18:34 -08:00
Jérome Maes 65206ea424 [IMP] website_portal: missing dependency portal
Even if portal module may be removed one day ...
2017-01-18 15:48:48 +01:00
Thibault Delavallée 3c9db12c55 [FIX] hr_recruitment: remove unnecessary dependencies 2017-01-18 13:52:42 +01:00
Thibault Delavallée e3699364c1 [MERGE] resource: use default data calendar and ensure company / calendar link is set
Several addons try to use resource calendar to compute time allocation.
However defining and using calendar is currently unclear in Odoo.
Purpose of this merge is to set a resource.calendar as data and ensure
each company uses a calendar. Resource now always take a correct
calendar.

Future commits will aim to improve the use of resource calendar in
Odoo.
2017-01-18 10:39:23 +01:00
Thibault Delavallée 2b90398cb6 [REF] resource: strengthen link between companies and calendars
Purpose of this commit is to always have a default calendar for each
company and ensure it is correctly set on resources.

Some cleaning is also performed in resource models to remove unused
fields, improve labels and make views a bit more odoo-ish.

 * [REF] res_company: add a m2o to the default calendar to use in the
   company as well as a o2m linking all resource calendars used in the
   company. Some code has been added to correctly update existing
   companies when installing the module;
 * [REF] resource_calendar
  * [REM] manager field on resource.calendar: this field is never used
    and is not necessary anyway
  * [ADD] global_leave_ids: filter leaves on a calendar to see global
    company leaves
  * [IMP] better default company / calendar computation to ensure there
    is always a calendar attached to a resource
  * [IMP] improve resource and calendar views in order to look more like
    other odoo views
2017-01-18 10:26:53 +01:00
Thibault Delavallée 2015cfd175 [MOV] resource: reorganize view definition to ease understanding
No functional or code change in this commit. Purpose is to clearly
separate views to ease future improvements.
2017-01-18 10:25:18 +01:00
Thibault Delavallée 9250cc60e1 [IMP] resource: set default calendar as data
Currently there is no default resource calendar. This leads to calendar
being rarely used as it is not clear how to define them and how to use
them. Moreover some code handle default-like calendar by trying to
use 8-16 work hours; this should be replaced by having a real default
calendar.

This commit replaces the demo calendar by a real data calendar. It will
soon be used as default everywhere a resource calendar can be defined.

Future improvements will come to make resource easier to use and clean
its API. This commit is only the beginning !
2017-01-18 10:24:41 +01:00
Thibault Delavallée 1c4ea80f78 [IMP] resource: clean tests code
This commit cleans resource test code by removing unnecessary stuff
and simplifying code. Purpose is to lessen number of lines and improve
readability of tests. Some duplicated tests have been removed.
2017-01-18 10:24:24 +01:00
Thibault Delavallée eda76ee350 [REF] crm: remove unused field resource calendar on sales team model
It is not used in the code. It is not used as a placeholder or information
field. Thereforelet us remove it.
2017-01-18 10:23:57 +01:00
Jérome Maes 006dff00ce [FIX] google_calendar: correct previous fix, and set correct context
The first fix (de21eda9f4) was not enough ...
2017-01-18 09:23:21 +01:00
Nicolas Martinelli dfd5cf9563 [IMP] stock_account: Counter-Part Account
In commit 40bd4a2f05, the counter-part account is made selectable and
required when changing the price of a product.

However, the same wizard is reused for the "Compute from BOM" feature,
in module `product_extended`. This forces the user to set an account
even if the product valuation is not "Perpetual (automated)".

In this commit, the field becomes required only if the product valuation
is "Perpetual (automated)".

opw-697866
2017-01-16 08:35:35 +01:00
mmo cd45a1acb4 [IMP] account: add domain on products accessible to invoices
Customer invoices: products to sell
Supplier invoices: products to buy
2017-01-13 14:49:42 +01:00
Kishan Gajjar bf82638bb0 [IMP] event: Improve the settings form view 2017-01-12 13:13:27 +01:00
Fabien Meghazi 402379a48a [IMP] Remove arbitrary file upload limit (25Mb) and turn it to an option (Fixes #14824)
The hard coded limit dates back to a time where the browsers would crash
when using FileReader#readAsDataURL() on files of serveral dozens of Mb.
This limit is now obsolete and even IE Edge now supports the FileReader
api.

This commit removes the limit and turns it into an option so it's
possible to limit a particular binary field to a given amount from the
form views, eg:

    <field name="image" widget="image" options='{"max_file_size": "200k"}'/>

Note: this feature only works when the FileReader api is available.
      At time of writing, all major browsers supports this feature:
      http://caniuse.com/#search=FileReader
2017-01-12 10:50:14 +01:00
dut-odoo 3345256579 [IMP] project: Improve the settings form view 2017-01-10 15:49:38 +01:00
dut-odoo 1b82b3acb1 [IMP] hr_timesheet: Improve the settings form view 2017-01-10 15:45:21 +01:00
Nicolas Martinelli a2319b431b [IMP] point_of_sale: reconcile payment
When a PoS order is closed, the payment and the sales journal item are
not automatically reconciled. This potentially leaves a lot of
unreconciled entries for a customer, which will appear in his follow-up
report.

This introduces an auto-reconciliation process upon order closing. The
process restricts the reconciliation to an order individually, i.e. we
don't try to cross-reconcile several orders for a customer.

opw-697565
2017-01-10 15:32:54 +01:00
Dhawal Limbuwala 72fa8f4e6b [IMP] mass_mailing: Improve the settings form view 2017-01-10 15:25:33 +01:00
Denis Vermylen fd9b562efe [IMP] website_portal_sale: display product images
on quotations and sales orders for portal users.
2017-01-10 14:34:19 +01:00
Rohan Patel 8aa66e36a3 [IMP] website_quote: use template's Terms & Conditions
by default, if not the company's configured terms & Conditions will be applied.

Also change the placeholder of Terms & Conditions in the quotation template.
2017-01-10 14:34:18 +01:00
Rohan Patel 623f3cda93 [IMP] website_quote: remove empty suggested products
section after the customer added them in order lines of quotation.
2017-01-10 14:34:18 +01:00
Rohan Patel c4ea772ddb [IMP] website_quote: add currency symbol
to discounted price on quotations in the front-end.
2017-01-10 14:34:18 +01:00
Rohan Patel 7be3f7eee9 [IMP] website_quote: Hide taxes if none are set
if there are no taxes in quotation then no need to display subtotal and taxes
in front-end quotation.
2017-01-10 14:34:18 +01:00
Rohan Patel 9fb08ad860 [ADD] website_quote: Added payment term in online quotation template 2017-01-10 14:34:18 +01:00
Christophe Simonis a2c1df8b9c [MERGE] forward port branch saas-14 up to 557feb950c 2017-01-10 13:52:44 +01:00
Christophe Simonis 557feb950c [MERGE] forward port branch 10.0 up to 482fd04167 2017-01-10 13:50:48 +01:00
Christophe Simonis 482fd04167 [MERGE] forward port branch saas-11 up to f1583504ce 2017-01-10 13:46:17 +01:00
Christophe Simonis f1583504ce [MERGE] forward port branch 9.0 up to 3f7b1f6083 2017-01-10 12:07:44 +01:00
Frank Petrilli d38e00031f [CLA] Singature for FrankPetrilli
Signed at #14853
2017-01-10 10:43:33 +01:00
Frank Petrilli a83e670b96 [FIX] crm: Typo in "Ready to boost you sales?" 2017-01-10 10:41:43 +01:00
Jitendra Prajapati e9e2e0cbb5 [IMP] account: Add a payment receipt report that can be sent by mail
- create a report for payment to print a receipt. Simple report with the amount received and name of the partner header of the company
- add a new action in action menu for print receipt
- add a new button action menu to send the receipt by email :  STRING of the button = Send Receipt
- default template of payment receipt like sales
- add chatter history same as sales object
- this report use for both ('customer payment' & 'vendor payment)
2017-01-10 10:38:50 +01:00
Ravi Gohil 23d07478e3 [FIX] mrp: fix migration issue using recordset instead of record in loop 2017-01-10 09:44:35 +01:00
fgi-odoo d7bca63e36 [IMP] account: remove space in reference bracket 2017-01-10 08:34:35 +01:00
Nicolas Lempereur 3f7b1f6083 [FIX] web_editor: ignore read only + debug + write
In some case (for example the one solved with b51d21c5) we can have
write done on a field text in read only mode.

With 98ed53ce if :

- such a case happened (in b51d21c5 the fix only worked after the given
  field was written one time) or a similar instance,
- and the user was in debug mode,
- and the widget used was TextFieldHtmlSimple

this could lead to an issue with the code trying to toggle the code view
mode whilst the editor is closed.
2017-01-10 08:31:38 +01:00
Nicolas Lempereur 41c64a89a5 [FIX] stock: use avg for cost in group by report
When doing pivot table data visualization, the Unit Cost of several
lines are summed up but there has more meaning if they were averaged.

This will probably still not be perfect (such as averaging two line
with different quantities the quantities would not be taken into
accounts) but it is already slightly better.

opw-694068
2017-01-09 16:53:40 +01:00
Pratima Gupta c965f3f67d [FIX] account: Rename filter name from 'State' to 'Status' as in the model 2017-01-09 16:42:04 +01:00
Yannick Tivisse 27fc71507e [MERGE] web,mail: Support multi attachment upload 2017-01-09 16:38:25 +01:00
Yannick Tivisse 4895c9fbad [IMP] mail: Allow to upload multiple files in the mail composer 2017-01-09 16:37:16 +01:00
Yannick Tivisse 43fcbe3318 [IMP] web: allow to upload multiple files in many2many_binary widget 2017-01-09 16:37:16 +01:00
Simon Lejeune 17adc2e09e [FIX] barcodes: form view barcode handler: concurrency
Suppose the following usecase: you scan the first product of the
picking. A server onchange is then triggered. You scan the same product
a second time, before the first onchange has returned. You expect that
the first onchange is completely executed before running the second one.
This was not the case. Moreover, some onchanges were not be able to
work with the invalid  state of the formview at some times, and crashed.

The previous implementation was wrong because id didn't run the main
barcode processing mechanism inside a Mutex. It was also wrong because
it didn't correctly wait for the onchange to execute (a previous  barcode
onchanges or some classic ones) before setting the barcode field.
2017-01-09 16:36:00 +01:00
Jérome Maes 2bfee397b5 [MERGE] rating: cleaning and improvements
- add form and list view for rating
- better use in livechat rating
- better filters
- improve kanban rating view
- remove rating when uninstalling module
- ...
2017-01-09 16:34:25 +01:00
Jérome Maes 8e10f6adf9 [IMP] rating: delete rating when needed
Automatically deleting a rating was not implemented
yet. We find 2 cases :
- when uninstalling a module, the same mecanism as
mail.follower is used, via a res_model_id field
pointing on ir.model. When this model does not
exist anymore, remove all related rating.
- when deleting a record, its rating should be
deleted too.
2017-01-09 16:33:21 +01:00
Nicolas Lempereur f27e69eced [FIX] web_editor: harmless ; missing in 98ed53ce 2017-01-09 16:26:15 +01:00
Jérome Maes 567ae3137f [IMP] rating,livechat: better use of rating mixin
- use rating.mixin field instead of rating_ids to
display rating on form view
- clean controller method
- ...
2017-01-09 16:19:26 +01:00
Jigar Patel f7379b1c7f [IMP] rating_*: cleaning and improvements
In rating module
- provide list and form view for rating
- better kanban view (remove js code, ellispsis
for long name, better feedback display, ...)
- provide more field on the mixin to cover
more case
- update res_name of rating when the ressource name
is changed (for consistency)
- make the rating web page, a correct html page (by
using web.layout template)
- some guidelines compliance

In rating_project and rating_project_issue:
- add filter for rated document
- some guidelines compliance
2017-01-09 16:19:25 +01:00
Jérome Maes 4495cb897c [IMP] rating: guidelines compliance 2017-01-09 16:19:25 +01:00
Nicolas Lempereur 81b668c3e3 [IMP] web_editor: tour testing inline editor saving (up to s11)
With 98ed53ce when a form view is saved when a html field is in code
view mode, the change is not lost.

This new backend tour check that when saving in or not in code view, the
content is saved effectively.

The test not in code view would ensure issues like #14381 #14351 #14394
are detected on runbot.

closes #14475
opw-693052

note: the old test system is used so this test is only for up to saas-11
2017-01-09 16:06:46 +01:00
Nicolas Lempereur 98ed53ce3a [FIX] web_editor: don't lose modified code view content
The intended scenario when using the code view is the following:

1) click on code view button to use code view
2) make changes
3) click on code view button to get back to wysiwyg view
4) save from the wysiwyg view

If the 3rd step was not done:

- for the inline editor, we lose the changes that have been done in
  code view,
- for the iframe editor, we lose the entirety of the content.

At one time the user was forced to go back to wysiwyg before being able
to save, but this have been removed hence the present usability issue.

With this fix, when the editor content is saved, if the user is in code
view he is automatically set back to wysiwyg view.

fixes #14648
closes #14475
opw-678677
opw-693052
2017-01-09 16:04:42 +01:00
abh 718290a530 [IMP] website_quote: applied padding on the title hidden in the navagitaion bar 2017-01-09 15:55:30 +01:00