Commit Graph
106431 Commits
Author SHA1 Message Date
Haresh Shyara 1ba4fbe640 [IMP] base_import: Improve import preview for related fields
normal mode: Importing only regular/basic fields from source file
advanced mode: Importing any related fields from source file(i.e. if detected pattern in header like '<relational_fieldname>/<fname>')

- Rename following checkbox "Show all fields for completion (advanced)" in "Show fields of relation fields (advanced)"
- If the import file contains a column with a field of a relation field, show the column label in the preview, even if "Show fields of relation fields (advanced)" is not checked > to make it less confusing when importing advanced files (e.g. products with attributes)
2016-11-10 09:44:20 +01:00
Yannick Tivisse a07012fbc2 [IMP] sale: Display currency_id on SO list view for monetary widget 2016-11-09 15:35:32 +01:00
Yannick Tivisse df69b5bb84 [IMP] web: Don't display aggregates in list views for columns with multi-currency records
Purpose:
On a list view (Ex: the invoices list view), if a column is a currency column (Ex: total amount), it makes no sense to display the aggregate (Ex: sum) if the records contains several currencies.

Spec:
Don't display the aggregate of a column if a least two records are in different currencies.
2016-11-09 15:35:21 +01:00
jpr-odoo 9e26d875db [IMP] *: uniformize modals buttons: remove 'oe_link' class and 'or' between buttons 2016-11-09 15:27:01 +01:00
Kishan Gajjar 5a3d0fc3ff [IMP] web: show technical field name in export wizard by hover in debug mode
In export wizard on mouse hover display technical name of field in debug mode
2016-11-09 15:06:12 +01:00
Kishan Gajjar ef9c07b0ef [IMP] calendar: remove create and edit from the calendar 2016-11-09 13:10:13 +01:00
Kinjal Mehta 1e87163801 [IMP] sale: remove form view of sale order lines when coming from product's sales tab 2016-11-09 13:03:14 +01:00
jpr-odoo d6ffaa7622 [IMP] sale_timesheet: fix action going from sale order to project loosing breadcrumb 2016-11-09 12:54:54 +01:00
Dhaval Panchal 6a25aa13de [IMP] web_kanban: show only number of records in kanban columns tooltip
When a column holds more than 40 records tooltip indicates 40/<record_number>.
However this is not really helping. What is interesting is the total number
of records.
2016-11-09 12:03:26 +01:00
fwi-odoo 07e1ad4248 [IMP] website_forum: display 'comment' button under answers correctly
Fix up the commit https://github.com/odoo/odoo/commit/a4b8641e75109ea0251b934a73347e1985186a9b.
When no comment for an answer, the 'comment' button stays aligned with the others.
When there is a comment for an answer, the 'comment' button is under the last comment.
2016-11-09 11:40:06 +01:00
Ankit Joshi b8febebd03 [IMP] website_forum: In Discussion, add a comment 'Post Answer' button should be 'Post Comment', and In Reply 'Post Comment' button should be 'Post Answer'. 2016-11-09 11:40:06 +01:00
Ankit Joshi 4de7f81e8a [IMP] website_forum : In discuss change the label 'Reply' to 'Comment'. 2016-11-09 11:40:06 +01:00
Ankit Joshi f652a9ce34 [IMP] website_forum : if user have not enough 'Karma' then 'Reply' button should be disable, Hide the answer textarea and generate the popup message. 2016-11-09 11:40:05 +01:00
Mansi Gandhi 5cb307170d [IMP] base, auth_signup: rename technical users to avoid confusion
* default user > Default User Template
 * Template User > Portal User Template
2016-11-09 10:48:33 +01:00
Thibault Delavallée fa404dba81 [IMP] project_issue: do not copu kanban state when duplicating an issue 2016-11-09 10:40:36 +01:00
Thibault Delavallée 038c177f3f [IMP] project, project_issue: set default kanban values as color instead of labels
Kanban state values are different from their visual display. When searching
on kanban state it is not easy to understand the link between the label
and the color. We now set the label as the color to ease matching and
searching. However in kanban view labels can be defined on the stage
itself. This way searching is done on the color while working with
tasks and issues in kanban is done using business meaning defined on
the stage.
2016-11-09 10:40:36 +01:00
Yannick Tivisse 327447dbb6 [IMP] project_issue_sheet: Replace dependency from hr_timesheet_sheet to hr_timesheet
Purpose:

What is the purpose of hr_timesheet_sheet ? Because it is installed when you install project_issue_sheet and you have a lot of unnecessary menus + ugly view of timesheet grid. For example in Timesheet menu: My Timesheets, All Timesheets, My Current Timesheets, My Timesheets, Detailed Activities (still timesheets), Timesheet App.
2016-11-09 10:09:49 +01:00
Jérome Maes fe6e6259b5 [IMP] website_*: cleaning in portal
- Extend 'account' method and not '_prepare_layout_values' to add
document count. This avoid useless 'search_count'.
- Make the 'active' page working, by passing 'page_name' to the template
- Uniformize the pages when no document are available
2016-11-09 09:36:19 +01:00
Vipul Bhatt 1cc8252a95 [IMP] website_*: generic filter and sort mecanism for portal documents
website portal now provide mecanism to sort and filter the
paginated document on the portal pages.
All portal module now use this mecanism, like they do for
'archive document' and 'pager'.

A generic template was added in website_portal. To use
it, renaming variables in method controller was required
to make it as generic as possible.

Some style cleaning was also done to make portal pages
consistent.
2016-11-09 09:36:01 +01:00
Géry Debongnie 78dfb01942 [IMP] web: disable selected fields in pivot dropdown
In the pivot view, when the user select a new field to drill down, the
previous dropdown menu displayed all the groupable fields as valid
choice.  This commit disables all the fields that have already been
selected.  It means that they will be greyed out, and inactive in the
UI.
2016-11-08 15:21:37 +01:00
Christophe Simonis 7eb8ed2769 [MERGE] forward port branch 10.0 up to 3d085f6 2016-11-08 15:13:05 +01:00
Christophe Simonis 3d085f632d [MERGE] forward port branch saas-12 up to 6386037 2016-11-08 15:01:20 +01:00
Christophe Simonis 63860373ac [MERGE] forward port branch saas-11 up to c19f546 2016-11-08 14:43:28 +01:00
Christophe Simonis c19f546505 [MERGE] forward port branch 9.0 up to b795755 2016-11-08 14:20:07 +01:00
qsm-odoo 5a030db3eb [REF] website, web_editor: refactor ace editor
Stop using ugly code for ace editor.

* Really close the ace editor by changing its display property thanks
    to the dedicated do_show and do_hide method.
* Make the common part of ace editors (website, web_studio) consistent
    so that the extensions are really small.
* Do not do RPC to retrieve data already retrieved (now, there is only
    one unique RPC when the editor starts an one RPC per view changed
    on save).
* Fix born-dead code so that the website editor starts automatically
    if the URL contains its associated hash and loads the correct view
* Better handle errors (previous behavior only worked partially and
    only on chrome):
    - Jump to the error line and make it red.
    - Do not open a Dialog with mostly incomprehensible message but
        allow to open it on click of the error marker.
    - Do not save any changed file if one contains an error.
    - Do not allow formatting a file if it contains an error (show the
        error instead).
* Do not use different routes to get the same content (remove the
    /website/customize_template_get route as it returns the same
    content as /web_editor/customize_template_get route). Note: in
    a further commit this route will be refactored.
* In a general way, use consistent method names and behaviors /
    comment the code / lint files / ...
* Open the code to extensions (so that it may later load other data
    than XML).

Note: this refactoring allowed to fix bugs in previous odoo versions
but this commit message will not detail them.
2016-11-08 14:18:28 +01:00
Christophe Simonis b795755001 [MERGE] forward port branch saas-6 up to a56d265 2016-11-08 13:51:21 +01:00
Christophe Simonis a56d2655b4 [MERGE] forward port branch 8.0 up to 4809b57 2016-11-08 13:07:33 +01:00
Goffin Simon 7fca8ad89e [FIX] account: wrong amount with _prepare_analytic_line
To have the right sign, amount = debit - credit

Before the fix:
 -Create an invoice in another currency than the currency of your company
 -Link the invoice lines to an analytic account.
 -Validate the invoice.

Bug:
The analytic lines have a negative amount in the amount currency field
which was a bit stange as it is the opposite sign than the amount in the company currency.

opw:692557
2016-11-08 11:53:01 +01:00
Nicolas Martinelli 40f2d55190 [FIX] account_asset: first depreciation amount
When an asset is set as Prorata Temporis, with a one month period, the
first depreciation amount is computed on the basis of the remaining days
in the purchase year. This doesn't make sense for a monthly
depreciation.

This commit makes the distinction between a monthly and a yearly
depreciation. In the case of a monthly depreciation, the remaining days
in the purchase month are taken into account.

opw-690034

Backport of 0a3899b72c

The fiscal year start date should be taken into account when calculating
the depreciation amount in case of prorata temporis.

opw-678072

Backport of e69d9b8b7d
2016-11-08 11:43:38 +01:00
Goffin Simon 6171f50e85 [FIX] delivery: onchange_carrier
Steps to reproduce:

- Create a Sales Order with 2 product qty
- Keep Delivery Method as DHL International
- Confirm
- Open Delivery Order
- Edit Qty of the Delivery Order
- Change Carrier (any integrated)
- Validate the transfer
- Process the backorder
- Edit and change the Carrier to normal or free delivery charges
- Validate

Bug:
The price of the free delivery charges was not recomputed and kept
the carrier price set on the SO.

Fix:
When the price of the carrier is "fixed" or "base_on_rule", the price must
be reconsidered in case of change.

opw:691224
2016-11-08 11:28:46 +01:00
dut-odoo 42226de46e [IMP] crm: show lost opportunities to merge with existing opportunities 2016-11-08 11:15:27 +01:00
Nicolas Lempereur 3c3cced5d9 [FIX] openerp: monetary not xmlrpc serializable
Since 1ba91042d monetary fields values could be represented by a
float_precision which is aimed as an improvment for digit precision when
saving a monetary field value to the database.

xmlrpclib (we are using to serialze the response) is handling some
common datatypes, but for custom one we would need to register it with
how it needs to be serialized.

This commit add a convert_to_read method to the Monetary field so when
reading monetary fields value we get the float numbers and not the
float_precision ones.

The float_precision is needed when saving, so it is alright to have float
when reading.

fixes #13857
closes #14125

opw-692373
2016-11-08 11:14:36 +01:00
Nicolas Martinelli 8fc81b871d [FIX] account: sequence of statement
It can happen that the account moves generated during reconciliation
from a bank statement with several lines have the same number.

This is a complement of commit 9365482df0. The order of statement lines
is not derterministic since it is based on `statement_id desc,
sequence`. Therefore, at each call of `process_reconciliation`, the
array `self.statement_id.line_ids.ids` can be different.

opw-690853
2016-11-08 10:53:30 +01:00
Martin Trigaux 74ef15f01f [ADD] website_theme_install: translation sources 2016-11-08 10:40:58 +01:00
Nicolas Martinelli 11321b09fb [FIX] point_of_sale: PoS journal
complement of commit e99e0d6922, to make it work in multi-company
environments.

opw-691771
2016-11-08 10:07:27 +01:00
Goffin Simon d32970830e [FIX] crm: the field stage_id in a lead is useless
Since this commit d025251c7e, a lead
does not use stage anymore. A lead is either alive or archived.
Then the field stage_id is useless in the crm_case_tree_view_leads view

opw:691838
2016-11-08 09:47:04 +01:00
Goffin Simon dfe12d20df [FIX] account_asset: context in open_entries
The function open_entries doesn't have to propagate the context
because it propagated group_by from other models.
Example:
- Click on Accounting > Adviser > Assets
- Click on Group by > Category
- Click on an asset
- Click Entries

The group by "category_id" was propagated on the model "account.move"
and it led to a traceback.

opw:692888
2016-11-08 09:27:44 +01:00
Nicolas Martinelli 143c998bba [FIX] stock_account: default new price
When modules `product_extended` is installed, click on "Compute from
BOM" on the product view. It opens a wizard with a default new price of
zero, even if the components of the product have a price defined.

This is an oversight of 191994577. When calling `default_get`, the
default values set thanks to context keys `default_*` have already been
replaced.

opw-693053
2016-11-08 08:32:35 +01:00
stefanorigano 23c6c37c8d [FIX] mass_mailing: vertical alignments & multiline text
* vertical alignment: Keep ‘vertical-align: top’ as default, but
define ‘middle’ exceptions for header and footer snippets.

* ‘comparison_table’: multiline text.
Remove inline style for inner <p/> elements and define default padding
for parent <td/> instead. This will allow to create multiple line of
text keeping a coherent margin between each <td/>.
A css set of rules triggering any kind of elements allow to use
multiline text for any kind of tag (p, h1, etc..)

* Footer snippets padding, minor
2016-11-07 17:08:18 +01:00
Ravi Patel efdb5373c3 [IMP] *: Define pdf report name according to the business case
Purpose:

When downloading a document, the name by default is not clear at all because by default, the printed report name is empty.

Specification:

Change the Printed Report Name. In most of the cases, it should be the name of the object + the number.

For the following reports :

- BOM Structure ==> BOM-product_variant_name ===>  'BOM'+'-'+(object.product_id.name)

- BOM Cost ==> BOM Cost-product_variant_name ===>  'BOM Cost'+'-'+(object.product_id.name)

- Call for Tenders ==>Tender-TE00001 ===> 'Tender'+'-'+(object.name)

- Delivery Slip ==> Delivery Slip-Customer Name-Picking Number ===> 'Delivery Slip'+'-'+(object.partner_id.name)+'-'+(object.name)

- Expenses Report ==> Expenses-Employee Name-Travel By Air  ===> 'Expenses'+'-'+(object.employee_id.name)+'-'+(object.name)

- Inventory ===> Inventory-Starting Inventory  ====> 'Inventory'+'-'+(object.name)

- Invoice (pos.order)===> Invoice-Main-0002 ===> 'Invoice'+'-'+(object.name)

- Invoices (account.invoice):
	===> Invoice-INV-2016-0019  ====> ((object.type == 'out_invoice') and (object.state == 'open' or object.state == 'paid'))  ===> 'Invoice'+'-'+(object.number)
        ===> Vendor Bill-BILL-2016-003 ===> (object.type == 'in_invoice') ===> 'Vendor Bill'+'-'+(object.number)

- Location Barcode  ===> Order Processing-Location ===> (object.name)+'-'+'Location'

- Lot Barcode ===> Lot/Serial-0000018 ===> 'Lot/Serial'+'-'+(object.name)

- Payslip  ===>  Employee Name-Payslip ===>  (object.employee_id.name)+'-'+'Payslip'

- Print Batch Deposit ===> Bank- DEPOSIT/2016/0001 ===> (object.journal_id.name)+'-'+(object.name)

- Print Check (Top)  ==> check_Partner name_Draft Payment_top   ===>  'check_'+(object.partner_id.name)+'_'+(object.name)+'_top'

- Print Check (middle)  ==> check_Partner name_Draft Payment_middle ===>  'check_'+(object.partner_id.name)+'_'+(object.name)+'_middle'

- Print Check (Bottom)  ==>  check_Partner name_Draft Payment_bottom  ====>  'check_'+(object.partner_id.name)+'_'+(object.name)+'_bottom'

- Production Order ==>  Production Order-MO-00006  ====>  'Production Order'+'-'+(object.name)

- Quotation / Order (sale.order):
	 ==> Order-S00001  ===> (object.state not in ('draft', 'sent'))==> 'Order'+'-'+(object.name)
         ==> Quotation-S00002   ====>  (object.state in ('draft','sent'))===> 'Quotation'+'-'+(object.name)

- Quotation / Order (mrp.repair):
	 ==> Repair Order-RMA00005         ===>  (object.state != 'draft') ===> 'Repair Order'+'-'+(object.name)
         ==> Repair Ouotation-RMA00005    ===>  (object.state == 'draft') ===> 'Repair Quotation'+'-'+(object.name)

- Registration Badge ===> Registration Event-Attendee Name       ====>  'Registration Event'+'-'+(object.name)

- Web Quotation(sale.order):
	==> Order-S00001  ===>  (object.state not in ('draft', 'sent')) ===> 'Order'+'-'+(object.name)
        ==> Quotation-S00002   ====>  (object.state in ('draft','sent')) ===> 'Quotation'+'-'+(object.name)

- Payslip Details: ===> Payslip Name ===>(object.name)

- Purchase Order:
	===> Purchase Order-PO0012 ===>(object.state != 'draft') ===> 'Purchase Order'+'-'+(object.name)
        ===> Request for Quotation-PO0012 ===> (object.state == 'draft') ===> 'Request for Quotation'+'-'+(object.name)

- Request for Quotation:===> Request for Quotation-PO0012  ===> 'Request for Quotation'+'-'+(object.name)

- Due Payments ===> Due Payments-Partner Name  ====> 'Due Payments'+'-'+(object.name)

- Products Labels ===> Products Labels-Product Name ===> 'Products Labels'+'-'+(object.name)

- Picking Operations ===> Picking Operations-Customer Name-Picking Number ===> 'Picking Operations'+'-'+(object.partner_id.name)+'-'+(object.name)

- Duplicates Invoices (account.invoice):
	===> Duplicate Invoice-INV-2016-0019  ====> ((object.type == 'out_invoice') and (object.state == 'open' or object.state == 'paid'))  ===> 'Duplicate Invoice'+'-'+(object.number)
        ===> Duplicate Vendor Bill-BILL-2016-003 ===> (object.type == 'in_invoice') ===> 'Duplicate Vendor Bill'+'-'+(object.number)

- Intrastat Invoices (account.invoice):
	===> Intrastat Invoice-INV-2016-0019  ====> ((object.type == 'out_invoice') and (object.state == 'open' or object.state == 'paid'))  ===> 'Intrastat Invoice'+'-'+(object.number)
        ===> Intrastat Vendor Bill-BILL-2016-003 ===> (object.type == 'in_invoice') ===> 'Intrastat Vendor Bill'+'-'+(object.number)

- Cost Structure Analysis ==> Cost Structure Analysis-Product Name ===> 'Cost Structure Analysis'+'-'+(object.name)

- Cost Analysis  ===> Cost Analysis-Product Name  ====> 'Cost Analysis'+'-'+(object.name)

- Print Badge  ===> Print Badge-Employee Name ===> 'Print Badge'+'-'+(object.name)

- Event Badge ==>  this report is in html format so ,there is no need to give the print_report_name.

- The following reports are print through wizard so there is no need to give the print_report_name

Budgets ===>
Financial Report ==>
General Ledger  ===>
Leaves Summary  ===>
2016-11-07 16:57:18 +01:00
Mitali Patel 4d86cc78f1 [IMP] stock: Improve usability for product scraping
- Made 'Picking_id' invisible
- Removed create & edit options for locations
- scrap_location_id becomes required
2016-11-07 16:50:29 +01:00
Rohan Patel 9807547688 [IMP] calendar: add highlighting in dependant modules
Now, calendar event relative to a document (ex:
crm.lead, hr.applicant) are highlighted when
comming from there form view. The mecanism consist
in override the method of the computed field
'is_highlighted'.
2016-11-07 16:08:24 +01:00
jpr-odoo b6000fbb0a [IMP] im_livechat: removed widget 'url' on the 'web_page' field for better color visibility and that field display as normal view not clickable 2016-11-07 15:56:58 +01:00
Kinjal Mehta b6a2c0a4ce [IMP] stock_account: Set default value of Inventory Valuation on a product category from the res config
While Creating a new product category, default value of "Inventory Valuation" field should be Taken from "Inventory Valuation" configuration from settings of 'Inventory'.
2016-11-07 15:32:16 +01:00
fwi-odoo ce91c5b6f5 [FIX] base: partner's default to company instead of individual for sales menu (make clearbit feature visible for on boarding)
Fix commit 69b641d6bc
2016-11-07 15:04:24 +01:00
Nicolas Martinelli 4809b57283 [FIX] account: tax line amount
The company currency is USD, the invoice currency is EUR.
- Create an invoice in EUR, set an invoice date
- Compute the taxes (click on "update" button)
- Change the exchange rate between EUR and USD
- Validate the invoice

At validation, the tax lines are not recomputed. Therefore, the tax
amounts, are still converted in the company currency using the old
rates. On the other hands, the other account move lines will have the
appropriate new rate.

Closes #14024
opw-692430
2016-11-07 14:31:00 +01:00
Christophe Matthieu 3378f9c771 [FIX] web: correctly saves last change in wizards with many2omany
With this change, form_relational_widgets will wait for the 'web.ListEditor'
module to be loaded before patching the list view.  This is particularly
important for wizards containing and editable list view.

Note that to achieve this, I had to fix a horrible hack in session.
2016-11-07 13:39:08 +01:00
Nicolas Martinelli 0a17be70e0 [FIX] account: tax line amount
The company currency is USD, the invoice currency is EUR.
- Create an invoice in EUR, set an invoice date
- Compute the taxes (click on "update" button)
- Change the exchange rate between EUR and USD
- Validate the invoice

At validation, the tax amounts are not recomputed. Therefore, they are
still converted in the company currency using the old rate.

Closes #14024
opw-692430
2016-11-07 13:35:54 +01:00
Christophe Matthieu af865c2e9e [FIX] web_editor: widget html preview doesn't match wysiwig editor (widget html iframe)
The widget html is used for plain text and html content.
Need to check if the content is a valid html code, if is not wrap with p tag every lines.

opw-692158
2016-11-07 12:02:13 +01:00
Mansi Trivedi 1fa4fe6d01 [IMP] im_livechat: renamed display name
Change name from 'Website Live Chat' into 'Live Chat'
Also update path into settings to get the website_livechat
module in a string help.
2016-11-07 12:01:56 +01:00