Commit Graph
97476 Commits
Author SHA1 Message Date
Thibault Delavallée 65dbf8f117 [IMP] crm, hr, project, sales_team: mail-related fixes
- hr, project, sales_team: no subscribe on create

For header records like sales steam, project, jobs and department, do not
subscribe the creator. Indeed those objects allow to automatically follow
child records (opportunities, tasks, issues, applicants). However those
records are often created by IT / technical / administrators that should
not be followers of all child records. Therefore the no subscribe key
is added in context.

- crm: new lead subtype

The 'new' stage is based on the sequence only, not the probability. Indeed
a new lead does not have a probability of 0; otherwise it is already lost.
2015-08-27 17:07:02 +02:00
Thibault Delavallée e755791af8 [FIX] mail: various fixes
- mail_message: fixed internal subtypes

Indeed has_group works only for uid and does not care for any given recordset.
Probably we need a is_in_group method on res.users. Someone smart could code it.

- mail_message: update message before notify

This way in the various notify methods, the message is correclty updated with
needaction and recipients. Also cleaned some comments.

- mail_message: avoid email loops

Do not notify people having the same email as the message / email to propagate.

- mail_message: fix access right issues

When computing recipients and partners to email, use a sudo for some internal
computation to avoid access rights issues. Indeed public user may go through
this method (forum for example).
2015-08-27 17:07:02 +02:00
Thibault Delavallée 09c40cfae8 [FIX] project: task stage access right issue
Employees (base.group_user) can read tasks. However they miss the right to read
task stages (project.task.type). This causes issues when reading the form view
of a task. This commit fixes this issue.
2015-08-27 17:07:02 +02:00
Gaurav Panchal 95cb54b80b [ADD] web: add dynamic widget to toggle boolean button 2015-08-27 16:59:47 +02:00
Gaurav Panchal 40cbf2bea1 [IMP] auth_signup: cleanup of user state (never connected/connected) 2015-08-27 16:45:18 +02:00
Martin Geubelle ec0515750c [IMP] sales_team: invoiced are now a computed field
In sales_team, we had 2 fields for invoicing : invoiced_target and invoiced_forecast.
As forecast is useless because someone has to set it manually, we did something different.
The field invoiced_forecast is now invoiced and is computed according to the invoices
associated to the sales team. We can now only set the target.
2015-08-27 16:12:49 +02:00
Martin Trigaux d13b5e59d9 [I18N] all: reexport terms
To benefit from recent changes to minimise the number of exported terms
2015-08-27 16:11:03 +02:00
Martin Trigaux 263673fd43 [FIX] account: account tag untranslatable
Makes no sense as it's technical information
2015-08-27 15:49:38 +02:00
Martin Trigaux afc9dd61ca [I18N] update Transifex list of modules
Add new website_form module
Spoiler on salepocalypse merge...
2015-08-27 15:25:58 +02:00
Martin Trigaux f12ac47b80 [FIX] account: untranslatable tax name
A tax is not translatable in standard. The translation of tax name is added in
l10n_multilang module but should not be present in base account.
2015-08-27 15:19:04 +02:00
Aaron Bohy 58876e8fef [FIX] web_kanban: records should be 'width: 100%' in mobile
defining directly 'width: 100%' didn't override the o-flex rule defined outside
the media query.
2015-08-28 15:14:12 +02:00
Arthur Maniet ef2890b570 [ADD] stock: name attribute to a view element for extensibility
related to https://github.com/odoo-dev/enterprise-9/commit/9d1327be4940a47769237746bd83a38787fca8ae
2015-08-27 15:05:37 +02:00
Ravi Patel 5c4dfeb190 [IMP] mrp: Removed name field and renamed string of code field in mrp.bom. 2015-08-27 15:03:47 +02:00
pvy 11c12b56b6 [FIX] l10n_it is back, compliant with the new accounting 2015-08-27 15:03:02 +02:00
Christophe Matthieu 0592305126 [REF] web: data.js: refactoring of BufferedDataSet (less code and speed up) 2015-08-27 15:01:09 +02:00
Christophe Matthieu a102a9f3fc [IMP] web: add a test to check the one2many create form and onchange 2015-08-27 15:01:09 +02:00
Simon Lejeune fd01656fb8 Revert "[IMP] Add location_processed in pack operation"
This reverts commit 38ec22ecc9.
2015-08-27 14:36:56 +02:00
Josse Colpaert 38ec22ecc9 [IMP] Add location_processed in pack operation 2015-08-27 14:04:36 +02:00
Arthur Maniet 51c57c7357 [REF] stock: in picking form, remove useless picking_id from X2M 2015-08-27 14:04:36 +02:00
Arthur Maniet ede1071a09 [ADD] product: constraint unique(barcode) 2015-08-27 14:04:36 +02:00
Olivier Dony c889b51f68 [FIX] ir.model.access: leftover renaming of osv_memory field
At 5c0bfaafd1 the osv_memory field
was converted from function field to plain stored boolean field.
Fixes a leftover rename in a domain.
2015-08-27 13:58:04 +02:00
Darshan Kalola 7afe1b0a03 [ADD]stock: added new planner for inventory. 2015-08-27 11:37:07 +02:00
qdp-odoo 16c1ed53e5 [FIX] membership: accounting dependant tests should extend the class AccountingTestCase so that it will be run 'post install' and return True if no chart of account is installed 2015-08-27 10:47:17 +02:00
Ravi Gohil 377a6ecab0 [IMP] account: fiscal positions depending on states and/or zip codes 2015-08-27 10:46:39 +02:00
pvy ebdfab20d2 [IMP] account: ported account.financial.report to v8 api and removed the _get_balance() method (will be integrated in the abstract report model) 2015-08-27 10:16:27 +02:00
Christophe Simonis d61bb94c0f [IMP] base: improved import language wizard
- more user-friendly error
- proper file format check
2015-08-27 10:01:00 +02:00
Jérome Maes b11f1ba70d [IMP] website_sale : add rating into ecommerce
When posting a comment, the user can rate the product using rating star widget. The rating card is display on the product page with average and repartition.
Add a related field 'website_published' on rating in website_sale for performance issue.

Part of this commit could be moved in 'website_rating', if the feature is required in other modules. Since it is only used in ecommerce, the code belong to website_sale.
2015-08-27 09:36:35 +02:00
Jérome Maes 9cc25d1c38 [IMP] website_mail : widgetize the Frontend Chatter. Prepare to include rating feature with posting mail.message 2015-08-27 09:36:35 +02:00
Jérome Maes a960eb9ff5 [IMP] rating : add generic star widget
- star widget and rating card to post and display rating
- Linked rating.rating to mail.message
- method to extract more statistics about the rating of an object.
2015-08-27 09:36:35 +02:00
Antony Lesuisse 97cc5b4dc5 [FIX] hr: more hr.config.settings removal
hr.config.settings was still inherited in python by hr_timesheet_sheet
2015-08-26 22:03:45 +02:00
Antony Lesuisse 2fbb0fe5d8 [REM] hr_evaluation: deprecated by hr_appraisal 2015-08-26 17:51:14 +02:00
Antony Lesuisse 37053a407c [REM] hr: unused and deprecated res.config 2015-08-26 17:49:07 +02:00
Raphael Collet 3ec52a3cfc [FIX] sale: unremove boring, old-fashioned onchange method on pricelist_id 2015-08-26 17:22:48 +02:00
Xavier Morel f5a1693f06 [ADD] base_import: support for XLS and ODS files
* added intermediate ``_read_file`` step dispatching between CSV, ODS
  and XLS(X) parsing
  - primary dispatch on mime type, secondary on file extension:
    + OS may not provide a relevant mime type if no software locally
      installed for the filetype (e.g. Windows sends excel files as
      application/octet-stream if excel is not installed, and ODS files as
      zip if OpenOffice/LibreOffice isn't installed)
    + applications may re-register extensions to non-standard mimetypes
      breaking the dispatcher

    So if the mimetype is found trust it, otherwise try with the
    filename's extension (if any)
  - all readers skip lines with only empty cells in their output
  - ODS and XLS content are "CSVified", rows are converted to arrays of
    unicode strings
* UI altered to not assume CSV files everywhere, and avoid returning
  garbage preview data for non-CSV imports

Various:
* added a ``can_import`` utility function to tests.common, can be used
  to skip tests if an optional Python dependency is not installed (but
  one would like tests to run if the dependency is available)
* fixed datetime issue in ir_fields
* added converter for monetary fields (iso float)
* spreadsheet don't have integers, twiddling required to ensure integral
  values won't be serialized as floats (breaking conversion back to
  Python)
* improved some tests by asserting no error is generated (bonus: logs
  the error message if there is one, rather than just saying the result
  is blown)
* because some systems only provide elderly versions of
  XLRD (e.g. current debian stable provides 0.9.2 from April 2013)
  - keep using xldate_as_tuple instead of 0.9.3's xldate_as_datetime,
    workaround is simple
  - check for xlrd.xlsx in case of pre-0.8 XLRD

Authorship:
Ronak Baxi <rba@odoo.com>
Mohammed Shekha <msh@openerp.com>

Task 10792
Closes #7285
2015-08-26 16:50:09 +02:00
qsm-odoo aa6ee3fddf [IMP] mail: design for template use in mail dialog 2015-08-26 16:41:56 +02:00
qsm-odoo 09d7250ab6 [IMP] web_tip: Convert CSS to LESS
This was needed so that the border radius of tips was set
correctly in both community and enterprise versions.
2015-08-26 16:41:56 +02:00
qsm-odoo 6d439ec6df [IMP] web: backport of utils.less file
Add mixins for transition, animation and text-overflow.
2015-08-26 16:41:56 +02:00
Martin Trigaux 40efdccc3d [IMP] tools: skip small html elements
Small one letter terms are ignored when pushing the translations.
If these are included inside xml tags (e.g. <strong>#1</strong>, the term should
also be ignored.
Strip xml eventual tags when checking the length of a term.
2015-08-26 16:11:51 +02:00
David Monjoie b322536aa6 [FIX] web_editor: fixed typos introduced by 88c0ce0
It seems this.BuildingBlock was changed to this.buildingBlock
by 8c559044a5. Care should be
taken when forward porting code using this.BuildingBlock.
2015-08-26 16:01:19 +02:00
David Monjoie a77f5cf42f [ADD] website_form: generic form controller
Contains a new ajax post function that comes from mdo's
original code and that I was not able to get rid of.
2015-08-26 16:01:19 +02:00
Jeremy Kersten 57c4787d09 [FIX] tests: use 127.0.0.1 instead of localhost
Cookies can't be set on 'localhost' using werkzeug set_cookie.
2015-08-26 16:01:18 +02:00
Christophe Matthieu 8eb8a982f9 [FIX] web_editor: clean_for_save all dirty options
Clean for save was only called on o_dirty nodes but o_dirty is added only on o_editable nodes.
Could use a simple jQuery selector '.o_dirty, .o_dirty *' but need to improve speed for user experience.
2015-08-26 16:01:18 +02:00
Darshan Kalola ea26a62712 [IMP]crm planner: general improvement in crm planner. 2015-08-26 15:19:44 +02:00
Divyesh Makwana 6e5db46626 [IMP] account: payment terms usability improvement 2015-08-26 15:08:48 +02:00
aso-odoo 43d1bc3fda [ADD]account: added new planner for account. 2015-08-26 15:06:29 +02:00
Simon Lejeune 5e3396d4c7 [FIX] crm: typos in planner data 2015-08-26 14:53:00 +02:00
Simon Lejeune 5c374313f6 [REF] planner: back again in a modal
fp's request
2015-08-26 14:53:00 +02:00
Martin Geubelle 1e4e1644a9 [FIX] web: add a default value for progressbar
Remove the value in the input leaded to a traceback.
2015-08-26 14:29:20 +02:00
qdp-odoo 66d97cb7e4 [REF] l10n_us: removing deprecated files as l10n_us is now an alias for the generic chart of account 2015-08-26 13:59:26 +02:00
Yannick Tivisse 98d8210042 [FIX] New res_partner in orderpoint_calendar.yml instead of res_patner_2
The res_partner squash has added several information to the res_partner_2
Now the is a purchase order for which he's the supplier. In that case, the
planned date on the purchase order line is influenced by the planned date
of the other purchase orders where this partner is the supplier.

Here we create a new res_partner for this test who has no purchase orders related
In that case, the planned date will always the date planned in the calendar at the
basis, which is 3.
2015-08-26 12:40:29 +02:00