Commit Graph
106314 Commits
Author SHA1 Message Date
dut-odoo 78b2aa4ce5 [IMP] account: show send by email button on invoice for pro-forma stage too
- when we send invoice by email, the template shows `False` at invoice number,
we will show `pro-forma` invoice instead of `False`
2016-11-03 11:49:28 +01:00
Nicolas Martinelli 018144b8ac [IMP] lunch: new lunch widget
The JS widget is simplified, which a cleaner approach.
For the rendering part:
  - the server reads the data
  - the JS widget formats/organizes the data
  - the template renders the data prepared by the widget

Quick summary of the modifications:
1. The associated field is a text field which contains JSON-encoded
data. The data are read server-side, and not client-side anymore.

2. The widget is an AbstractField, no need of ReinitializeWidgetMixin
anymore. No use of the FieldMonetary widget directly, but use a similar
format_value instead (inspired by ShowPaymentLineWidget).

3. Data formatting (call to format_value) is done in the widget, not in
the template anymore. This seems to be the standard way of doing, since
lunch was the only module where format_value was in the template and not
in the widget.

4. The addition of an order line is cleaner since all necessary data
are prepared server-side.
2016-11-03 11:41:39 +01:00
Vipul Bhatt 7cf554af54 [IMP] website_event_track: display event time in website language format 2016-11-03 09:25:30 +01:00
Christophe Simonis 4d9f5bbf5b [MERGE] forward port branch 10.0 up to ab98523 2016-11-02 18:02:11 +01:00
Christophe Simonis ab98523315 [MERGE] forward port branch saas-12 up to 0ca99ff 2016-11-02 17:56:37 +01:00
Christophe Simonis 0ca99ffc1f [MERGE] forward port branch saas-11 up to 0304bf8 2016-11-02 17:53:45 +01:00
Christophe Simonis 0304bf8c59 [MERGE] forward port branch 9.0 up to 92c81dc 2016-11-02 17:40:34 +01:00
Christophe Simonis 92c81dc440 [MERGE] forward port branch saas-6 up to ab8d07c 2016-11-02 17:26:05 +01:00
Christophe Simonis ab8d07cf1f [MERGE] forward port branch 8.0 up to 86a9b78 2016-11-02 16:50:10 +01:00
Christophe Simonis b59333c5c6 [FIX] point_of_sale: force no-tax on demo product
The javascript tour (test) will verify the total amount based on sale
price of the product without taking taxes into account.
However, if any l10n_* module is installed and defined a default value
for product taxes, the test will fail this check.
2016-11-02 16:31:22 +01:00
Ankit Joshi a28b23f9d3 [ADD] product: add contraint on product internal category type
Constrain the 'internal category' (categ_id) type of a product.template, it
shouldn't be of type view.
2016-11-02 16:12:38 +01:00
Ankit Joshi b9c2be76d1 [ADD] stock: Add group to Routes for product.category
Add the 'stock.group_adv_location' group to the 'Routes' field in the
product.category form view.
2016-11-02 16:12:38 +01:00
Denis Vermylen (dve) 6b293d6d1c [FIX] sale_crm: use date_invoice field for dashboard computation
Model account.invoice has "date" and "date_invoice" fields.
("Accounting Date" and "Invoice Date" respectively)

The dashboard was incorrectly using the "date" field from account.invoice to
look up the corresponding invoices.

NOTE: account.invoice.report renames the date_invoice to date and doesn't use
      the date field from account.invoice, it can be very confusing.
2016-11-02 15:16:54 +01:00
Ravi Gadhia a11a3b3215 [IMP] account: add month filters for invoice analysis
For invoices analysis(account.invoice.report) add this month and last month
filters in search view and set appropriate default filter on dashboard actions.
2016-11-02 15:16:54 +01:00
Ravi Gadhia ec3372567e [IMP] crm: add month filters for pipeline analysis
For pipeline analysis(crm.opportunity.report) add this month and last month
filters in search view and set appropriate default filter on dashboard actions.
2016-11-02 15:16:54 +01:00
Ravi Gadhia 0932a95115 [IMP] crm: add month filters for activity analysis
For activities analysis(crm.activity.report) add current month and last month
filters in search view and set appropriate default filter on dashboard actions.
2016-11-02 15:16:54 +01:00
Ravi Gadhia cdf7d0a115 [IMP] sales_team : remove hardcoded js actions
instead allow to pass context from template(xml) with `data-context` attribute
for the crm dashboard.
2016-11-02 15:16:53 +01:00
Foram Shah 4022a47de2 [IMP] mrp,sale_mrp: add origin of MO in chatter
Set sale order and production order link on Mo. override make_mo method in sale_mrp module to set sale order reference in mo.
.and to find final destination move, i created one common private method to get parent move.

MESSAGES TO DISPLAY:

-Set a Reordering Rule (stock.warehouse.orderpoint) that creates a manufacturing order:
"This manufacturing order has been created from: OP/00001"

-Create new Sales order of manufactured product , there will be a Source Document with procurement of that Sale Order
"This manufacturing order has been created from: SO001"

-create MO for BoM items of the product, there will be a Source Document with procurement of that Manufacturing Order
"This manufacturing order has been created from: MO/00001"
2016-11-02 14:18:24 +01:00
Mitali Patel 81acd4dee2 [IMP] stock_account: merge inventory reports menus
Previously we had 'Inventory at Date' (debug mode) and 'Inventory Valuation'
Both have been merged into 'Inventory Valuation' that pops up a wizard asking
whether you want the current one or the one from a specific date.

Depending on which one you choose you will get either report from the previous
menus. (stock.quant or stock.history model)
2016-11-02 13:59:54 +01:00
Kinjal Mehta 6481ff9d2f [IMP] mrp: Manufacturing Lead Time field moved from Sales tab to Inventory tab. 2016-11-02 13:28:44 +01:00
qsm-odoo dd560377e2 [IMP] web: improve traceback reporting
* Do not assault the user with a full traceback on bug, but indicates
an error occured and allow him to toggle the traceback
* Automatically scroll the traceback to the end (better for python
errors)
* Propose the user to report the traceback by using a new "Copy"
button which correctly copies the full error + traceback
2016-11-02 13:26:00 +01:00
Christophe Simonis 86a9b7893e [IMP] tests: use long message in case of error 2016-11-02 11:45:29 +01:00
Dhaval Panchal c8d0fd4a50 [IMP] website_forum: Change profile picture for forum users. 2016-11-02 11:11:27 +01:00
Jérome Maes 95ab053856 [FIX] rating_project,rating_project_issue: correct domain to see rating
domain from the action is required to avoid seeing empty rating
2016-11-02 10:43:49 +01:00
Jérome Maes 6200e1ac63 [FIX] rating_project_issue: all issue are not taken into account when recompute project satisfaction
'issue_ids' has a domain, so all the issue a folded
stage are not taken into account for statisfaction
percentage.
So replacing the field with a search call solve the
problem.
2016-11-02 10:43:41 +01:00
Christophe Simonis 4a5d060123 Revert "[ADD] purchase: Add python tests for default lead time"
Broken test.

This reverts commit 83de09d895.
2016-11-02 10:21:35 +01:00
Nicolas Martinelli 2948aacd9e [FIX] rating_project: hide rating in thread
Hide rating in issue history, otherwise the user can use the link
himself to change the rating.

opw-692598
2016-11-02 10:06:22 +01:00
Nicolas Martinelli a4c67f2b9e [FIX] website_quote: tokenized link in portal
When a user has access to a quote (because he is follower) but he is not
in the same company than the customer, an access error can occur on the
the rendering of the partner field.

We use the tokenized link instead, which will read the SO as a superuser
to avoid this situation.

opw-691740
2016-11-02 08:43:02 +01:00
qdp-odoo 9542924b94 [FIX] account: fix the bank statement reconciliation that wasn't proposing antthing for credits on liquidity accounts because of a wrong sql query (looking on negative values in credit columns 2016-10-31 17:37:18 +01:00
qdp-odoo a699504536 [FIX] hr_expense: give more useful label to journal items created from expenses paid by the company 2016-10-31 16:36:56 +01:00
Goffin Simon ef78955c32 [FIX] stock: name_search on stock.picking.type
Before the fix,  the search was made on the picking_type.name
instead of the picking_type.warehouse_id.name

opw:692256
2016-10-31 14:17:23 +01:00
Jared Kipe bbe0731143 FIX] hr_payroll: fix payroll rules using a BrowableObject.sum().
Since commit edcb318; using a python rule that uses the 'sum' function on a BrowsableObject was resulting in a UserError. Courtesy of jaredkipe
2016-10-31 14:11:13 +01:00
Nicolas Lempereur d05136a0b2 [IMP] website: use default language for some bots
Currently when using a language on the website, the following is done in
this order to choose which one will be used:

1) use a language code if present in the url (eg. /fr_BE/),
2) use a language similar to the one in the url,
3) use a previously choosed language (saved in cookie),
4) use the browser language if available on website,
5) use a language similar to the browser language,
6) use the default website language

When a bot is requesting a page, he could either not specify a browser
language (en_US is set as default) or sometimes specify english
erroneously.

In these instance, we will then never use the default website language
if an english language is installed.

This fix changes this behaviour so if a bot is visiting a page, the 4th
and 5th steps are skipped and the default website language is used
instead of using the browser language.

closes #14033
opw-690910
2016-10-31 13:43:01 +01:00
Nicolas Lempereur 76be5eed44 [FIX] web_editor: don't paste two times
When pasting, the paste event is cancelled and done back with the
corrected data.

This works fine on firefox, but this can have unwanted results on other
browser like pasting two times or copying the end of the line at the
beginning.

This commit replace completely the summernote functionality with our
small implementation of pasting corrected text.

closes #14043
opw-690814
2016-10-31 13:27:00 +01:00
Goffin Simon d406314638 [FIX] account_voucher: Wrong reconciliation of customer payments
Steps to reproduce :

1. Create a new customer
2. Create an invoice with an amount of 50.- for this new customer and validate it
3. Create a refund with an amount of 70.- for the same customer and validate it
4. Create a Customer Payment for this customer and validate it. The Invoice will be paid with 50.- of the refund. 20.- are still on residual in the refund.
5. Create a new invoice with an amount of 50.- for the same customer.
6. Create a new Customer Payment for the same Customer and validate it.

The Full Reconcile Boolean stays checked inspite of "Open Balance" of Refund amount is less than the Invoice amount.

After the fix:
Full Reconciliation Boolean doesn't get checked and Allocation amount on invoice journal item line should be same
as Open balance of the Refund Journal Item. So Invoice stays open with Balance amount.

opw:691577
2016-10-31 11:55:49 +01:00
Damien Bouvy 002d7a342a [FIX] website_event: display location name in frontend
opw-692655
2016-10-31 11:20:04 +01:00
Odoo Translation Bot 9d243ae9ea [I18N] Update translation terms from Transifex 2016-10-30 03:37:27 +01:00
Odoo Translation Bot c340284a60 [I18N] Update translation terms from Transifex 2016-10-30 02:56:40 +02:00
Odoo Translation Bot 27413feac8 [I18N] Update translation terms from Transifex 2016-10-30 00:34:38 +02:00
Jeremy Kersten 58ff6bf52c [FIX] website_blog: fix navlist date/filter/order
Before this fix, the tz was ignored in the search. So the group by counter
was not especially the number of blog post displayed.

The month display was wrong, date_begin was localized.
Start was eg (in Europe/brussels) : 10/31/2016 22:00:00.
So if we don't localize this time with babel, we got October as displayed
month instead of November

The Archive was not sorted by year desc, now it is.
Old behaviour was strange:
    2015: December, Octobre
    2016: December, Octobre
    => Year asc, Month desc
2016-10-28 17:10:51 +02:00
Christophe Simonis 97debd09c0 [MERGE] forward port branch saas-12 up to 57774ef 2016-10-28 17:05:21 +02:00
Christophe Simonis 57774efbea [MERGE] forward port branch saas-11 up to 525aa2e 2016-10-28 17:01:39 +02:00
Christophe Simonis 525aa2e900 [MERGE] forward port branch 9.0 up to f76f456 2016-10-28 17:00:20 +02:00
Christophe Simonis f76f456019 [MERGE] forward port branch saas-6 up to 4f462f9 2016-10-28 15:38:03 +02:00
Christophe Simonis 4f462f92f3 [MERGE] forward port branch 8.0 up to c39ca45 2016-10-28 15:35:07 +02:00
Wolfgang Taferner c39ca45c6d [FIX] config: avoid to accept server-wide-modules with None as a module
Fixes #14048
Fixes #14045
Closes #14051
2016-10-28 15:02:52 +02:00
Raphael Collet eb326e669e [FIX] fields: prevent base setup on fields shared across registries
A field shared across registries is normally never setup from scratch, except
when its full setup cannot complete.  This happens when a registry reuses that
field but fails to load, because the base and full setup of fields look like:

    def setup_base(self, model, name):
        if self.setup_full_done:
            # optimization: keep base setup (1)
            self.setup_full_done = False
        else:
            # do the base setup from scratch (2)
            ...

    def setup_full(self, model):
        if not self.setup_full_done:
            # complete full setup (3)
            self.setup_full_done = True

When the field is reused for the first time, its setup state `setup_full_done`
is reset to `False` (1), and it should be set to `True` again after completion
of full setup (3).  However, because the full setup fails, the field remains
with `setup_full_done` equal to `False`.

In that situation, when the same field is reused again, it base setup will be
done from scratch (2), and therefore some attributes (like `column`) are reset
to their initial value.  Because the full setup fails again, those attributes
are lost for other registries that share the field.

Fix this crap by precising the setup states: `None`, `'base'` and `'full'`.
When a field is reused, its setup state is reset to `'base'` instead of `None`,
and consequently it will never be setup from scratch again.
2016-10-28 13:29:53 +02:00
Fabien Pinckaers 651cfbd626 [IMP] sale: report typo 2016-10-28 16:23:01 +05:30
qdp-odoo 4ed5369f50 [IMP] account_tax_cash_basis: take care of multi currencies use cases. 2016-10-28 11:55:57 +02:00
Nicolas Martinelli fb010a1004 [FIX] payment_stripe: preventDefault
When a user uses Strip and clicks on "Pay & Confirm", a "Bad Request"
error can pop-up. This is because it tries to reload the page, while it
should only display the Strip pop-up.

This is simply due to a `preventDefault` done after the event is
performed, and not before.

opw-692341
2016-10-28 11:33:35 +02:00