Commit Graph
112519 Commits
Author SHA1 Message Date
qsm-odoo af8936037f [FIX] web: fix several kanban design issues
- Load more was invisible; now also add a little bit of styling
- Small column records were not centered in their column
- Add a column padding bottom to allow seeing reaching the scrollend
- Column create was misaligned since some padding changes
2017-09-18 13:15:52 +02:00
Jeremy Kersten a62480ad0f [FIX] payment_sips: make it configurable for other sips provider.
Atos is not the only sips provider, clean fix for hack 265f9ab509
2017-09-18 12:37:34 +02:00
Xavier Morel f1a85ba70a [FIX] *: fix a bunch of incorrectly documented docstring
Fix a bunch of ill-documented/incomplete/incorrect method docs
Without this, the automatic doc generation does not work.
2017-09-18 11:54:39 +02:00
Xavier Morel 313f69e948 [ADD] doc: JS document extraction system
* Fix a bunch of ill-documented/incomplete/incorrect method docs
* add start of Sphinx extension to extract & integrate jsdoc into
  Sphinx documentation:

  - parse JS files (and don't blow up), uses a fork of pyjsparser as
    the project currently does not parse comments
  - extract cross-module dependency information
  - parse JsDoc comments using pyjsdoc and infer structure from code &
    jsdoc
  - ``ast`` CLI printing a simplified AST of the input files
  - ``dependencies`` creating a dependency graph of either all modules
    in the provided input files or the modules matching the specified
    filters (warning: will not work if missing dependencies),
    generates a .dot file
  - ``extractor`` generating a plain text module documentation (mix of
    rst and markdown styles, not anything formal)
* sphinx extension with an "automodule" directive taking a module name
  and generating the documentation for it
2017-09-18 11:54:36 +02:00
Christophe Simonis 8defed9536 [REL] 10.saas~18 2017-09-15 19:06:10 +02:00
Christophe Simonis 071b46c227 [MERGE] forward port branch saas-17 up to 5d51950b59 2017-09-15 18:26:41 +02:00
Christophe Simonis 5d51950b59 [FIX] stock: correct view definition 2017-09-15 18:26:06 +02:00
Christophe Simonis 66ca687324 [MERGE] forward port branch saas-17 up to ed901bedcb 2017-09-15 18:09:39 +02:00
Simon Lejeune 6aebc80053 [REF] stock, etc: only expose public method, remove indirection
also, remove now useless api.multi and dummy methods here and there
2017-09-15 17:49:37 +02:00
Christophe Simonis ed901bedcb [MERGE] forward port branch saas-16 up to 80f916e8e0 2017-09-15 17:20:01 +02:00
Christophe Monniez bfa85c84a6 [IMP] website_sale: manage abandoned cart
Purpose: Add button to see the number of
abandoned carts and the ability to send
a recovery email to those customers.

On the abandoned carts menu, you can see
the SO from the website where no reminder
email has been sent.
By selecting them, you can send an email
to the customer to tell him there is still
a cart waiting.
Clicking on the link, he can reuse his old
cart or merge it with his current one.

An abandoned cart is a SO from a website
sales team, and created after a treshold
parametered by a 'delay' settings (number
of hours to be considered as abandoned).
2017-09-15 16:55:17 +02:00
Olivier Dony 35e80c1ab5 [IMP] doc: update P3 compatibility policy 2017-09-15 16:51:47 +02:00
Christophe Simonis 80f916e8e0 [MERGE] forward port branch saas-15 up to 27cd03e032 2017-09-15 16:45:53 +02:00
Yannick Tivisse abc1f0b305 [MERGE] marketing_automation: New marketing campaign yeay!!!! 2017-09-15 16:45:21 +02:00
Martin Geubelle cb540c48eb [FIX] web: correctly display the enterprise label
The `upgrade_boolean` widget should display an `Enterprise` label next to it.

There is however an issue when a `label` is specified for this field. In this case,
the `Enterprise` label should be placed next to the field label (and not the field
itself).

The easiest solution would have been to instantiate the field widget with its label,
but this can't work because the field widget is instantiated before its label.

We thus re-render the widget after its label creation.
2017-09-15 16:36:40 +02:00
Christophe Simonis 27cd03e032 [MERGE] forward port branch saas-14 up to 82aaf1aa17 2017-09-15 16:21:03 +02:00
Thibault Delavallée 2cdf080d5e [IMP] mass_mailing: do not auto commit emails in testing mode
Otherwise the database state is committed and this leads to funny things
when having mass mailing tests.
2017-09-15 15:56:23 +02:00
Thibault Delavallée 0296f198b2 [IMP] mail: tests: add a new simple base model for testing
Purpose: have simple test models to use in various modules and be
independent from standard models behavior / tweaking.
2017-09-15 15:56:23 +02:00
Yannick Tivisse af2620a443 [IMP] web: reference field: add 'hide_model' option
It allows to see only records from a given model without allowing to
change the model. It gives a better experience to users that choose
records using a reference field when the model comes from some other
choice and should not be changed.
2017-09-15 15:56:23 +02:00
Thibault Delavallée d635547760 [IMP] mass_mailing: consider replying to an email imply opening it
Currently when people answers an email its statistics are set to replied
updating its replied field. However if the blank gif used to track the
opening fails for whatever reason we could have mail considered as replies
but not opened.

We consider that it is not common to reply to an email people did not
open. Let us therefore set a replied email as also opened.
2017-09-15 15:56:23 +02:00
Yannick Tivisse 51b5ee7c3c [IMP] mass_mailing: choose model among all chatter models
This commit removes the strange selection box based on a magic flag and
some strange methods returning a string. Instead just allow to send mass
mailing on all models inheriting from mail.thread using the is mail
thread flag.

Various addons are updated to remove the _mail_mass_mailing class
attribute used to determine mass mailing capability.

We consider people could send a mass mailing on every model inheriting
from mail.thread. It makes no sense to limit it to a given set of addons.
2017-09-15 15:56:23 +02:00
Thibault Delavallée e9fca14452 [IMP] mass_mailing: add support of clicked event on statistics
Currently there is no way to know on mail statistics if the customer
clicked on a link or not. This commit adds support of click like what
is already implemented for opened or replied. It stores the date when
the first tracked link has been clicked. A clicked mail is considered
as being opened related to its state if no other statistics has been
checked.
2017-09-15 15:56:23 +02:00
Thibault Delavallée ae455fb1f5 [FIX] mass_mailing: fix issue in _get_mailing_model
getattr crashes and in this case we probably meant to use hasattr as we
have a fallback behavior.
2017-09-15 15:56:23 +02:00
Thibault Delavallée 7accd77999 [REF][FIX] link_tracker, mass_mailing: factorize method creating link tracker click values
This commit factorizes the link.tracker.click values computation out of
the add_click method. This method is called when customers click on links
in email that are tracked in Odoo.

Purpose of this commit is

 * to effectively put mass mailing related code into mass mailing.
   Currently link_tracker holds code related to mass mailing which is
   not in its dependency tree. Let us therefore try to be a bit modular
   and add a proper inheritance in mass mailing;
 * allow addons to inherit from the click values prepare method to add
   specific values depending on their behavior like mass mailing adding
   links to a mass mailing and a mass mailing campaign;
2017-09-15 15:56:23 +02:00
Thibault Delavallée 83d3b281a4 [IMP] mass_mailing: allow to send a mailing on a given set of records
Currently mass mailing automatically computes the remaining recipients
to mail based on existing statistics and A/B testing. However in some
cases we would like to send the mailing on a given set of records. An
example of use is to use the mass mailing mechanism on records coming
from marketing activities. This commit adds this feature by adding an
optional parameter to send. If not given it falls back on the classic
mass mailing behavior.
2017-09-15 15:56:23 +02:00
xmo-odoo 02fe548000 [FIX] link_tracker: no string.letters in Python 3 2017-09-15 15:51:37 +02:00
chv-odoo 2dea77fe21 [FIX] link_tracker: no string.letters in Python 3 2017-09-15 15:50:23 +02:00
Christophe Simonis 82aaf1aa17 [MERGE] forward port branch 10.0 up to bf8f701032 2017-09-15 15:47:58 +02:00
Pratima Gupta 989e5ebc99 [IMP] mrp: usability improvements
1)Improve naming pattern of work order.
2)Default group by added for gantt view of both production and work center.
2017-09-15 15:38:37 +02:00
Pratima Gupta 8b2e0fcc5a [IMP] stock: Show the negative stock in red in inventory 2017-09-15 15:38:37 +02:00
rde 4ecbacaf59 [ADD] website: add new page management
website.page = old ir.ui.view with page=True
website.redirect is a new mechanism to replace in the futur the ir.attachment
mechanism of redirect.

From now, we don't have a specific /page controller to serve 'page'.

We use a new model website.page which is rendered if none route matches the url
 and that the field 'url' on website.page matches the request.httprequest.path.

The order to serve a path is:
    - Routes defines in controllers (/shop, /blog, ...)
    - ir.attachment with name matching the path
    - website.page with url matching the path
    - website.redirect with url_from matching the path
    - 404

To improve:
    - allow regexp in website.redirect model
    - allow to edit the view_arch from the page.management via redirect backend
      (needed when traceback in the page, or when modifying a js/css/less/...)
2017-09-15 15:29:37 +02:00
Aaron Bohy 13a44d33bd [MERGE] im_livechat, mail: new Discuss mobile UI
- Brand new UI for Discuss client action (with tabs for for
  Discuss client action (with tabs for Inbox, chats,
  channels...)
- In mobile, conversations always open in Chat Windows
- Chat window UI improved (both mobile and desktop)
- Channels preview (used in the systray menu, and now in the mobile
  UI of Discuss) improved
- Other minor less tweaks

Task #31446
PR #16995
2017-09-15 15:25:16 +02:00
Aaron Bohy 7a91d87614 [IMP] im_livechat, mail: Discuss UI in mobile
- Extract mobile specific code for the client action to a specific
  file
- Massive clean of less rules
- Unify channels preview of the systray dropdown and the mobile UI
  of Discuss
- Ensure to only load the last message of each channel in mobile,
  as this is not used in desktop (unless the user opens the systray
  menu)
- Make livechat available in Discuss mobile UI
2017-09-15 15:25:06 +02:00
Aaron Bohy 9850cb1c3c [REF] mail: client action: convert to new guidelines
And refactor the code to ease the development of the mobile
version.
2017-09-15 15:25:06 +02:00
Dharmang Soni 4685e4bc7f [IMP] mail: improve Discuss UI for mobile devices
- Brand new UI for Discuss client action (with tabs for Inbox,
  chats, channels...)
- In mobile, conversations always open in Chat Windows
- Chat window UI improved (both mobile and desktop)
- Channels preview (used in the systray menu, and now in the mobile
  UI of Discuss) improved
- Other minor less tweaks
2017-09-15 15:25:06 +02:00
qsm-odoo a8e7d096b8 [REF] web: adjust kanban dashboards layout
Crop long texts avoiding issues with <a> tags.
Use flex to align cards' content in order to place the latest block
at the end of the card.
2017-09-15 15:04:52 +02:00
stefanorigano 2edcd1cdc0 [REF] web: remove kanban useless LESS rules 2017-09-15 15:04:52 +02:00
Pierre Masereel ab31d43fb9 [FIX] stock: stock user create lot
When a stock user want to create a lot an exception is raised saying
that he cannot modify a product.

This is caused by the field 'product_uom_id' on the model
'stock.production.lot' that is a related to 'product.product' and not
set as readonly in the 'stock.production.lot' view.

So by setting it as readonly, we don't set the uom to the server, and so
don't try to re-write it on the product
2017-09-15 14:51:03 +02:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
qsm-odoo ae7f4c0485 [FIX] web: always quickcreate in the first kanban column
KanbanColumn instances are saved in an array in the renderer. The quick
create widget is always put in the first column found in this array.
Unfortunately, the array elements' order was broken after some
operations where column(s) are rerendered (like moving records).
2017-09-15 14:32:26 +02:00
Nhomar Hernández [Vauxoo] b1368d56be [FIX] base_vat: Regex need 'br' insted only 'r' now on python3 2017-09-15 14:24:30 +02:00
Olivier Colson 3e1d46dcc9 [IMP] l10n_es: improves localization package
* PYMES, non-profit associations, complete (large enterprises) CoA
* reviewed taxes, tax groups
* reviewed tags, account types for reports in l10n_es_reports

Thanks for the contribution and the original work, spanish community (esp. Pedro M. Baeza).

Was task 30669. Was PR #19154
2017-09-15 14:04:41 +02:00
stefanorigano 3fb7842864 [REF] web, mail: minors UI fixes
- List view: sortable icon, do not force position to right
- Mail: do not vertically reposition systray's icons
- Form view: oe_subtotal_footer, minor design imp
2017-09-15 13:39:01 +02:00
stefanorigano da21b03661 [REF] base, web: adapt base settings to new design
- Use mixins and default LESS variables whenever possible
- Get rid of useless “!important” rules
2017-09-15 13:39:01 +02:00
stefanorigano 38a1a452cf [REF] account: adapt dashboard header to new design 2017-09-15 13:39:01 +02:00
Mitali Patel 79038055f5 [IMP] base, res.currency: amount_to_text() based on num2words library
Old implementation of tools.amount_to_text() is now deprecated. The new one support more languages

Was task 27215. Was PR #16531
2017-09-15 13:24:02 +02:00
Yannick Tivisse be93768608 [FIX] product: Display product_id on supplier info form view
Purpose
=======

Now if we want to create a product supplier info, it's impossible to select the template if it has no variant, which is rather annoying.

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

Remove the attrs
2017-09-15 12:56:00 +02:00
Pierre Masereel 470577c129 [CLEAN] stock: remove unused methods since stock refactoring 2017-09-15 12:00:40 +02:00
Pierre Masereel 62c6d6fc81 [FIX] stock: move_view without suggest
The move line view when the option no suggest is checked doesn't work
because it hasen't been adapted during the refactoring of stock module.

So to avoid having differences between the view in no suggest and in
suggest, we use the same tree view that we reference. Because the views
shouldn't be different if we are either in suggest or no suggest
2017-09-15 11:48:11 +02:00
Deep Patel 1c0befc8a6 [IMP] web: UX improvement on mobile for the sale order view 2017-09-15 11:16:11 +02:00