Commit Graph
106344 Commits
Author SHA1 Message Date
dut-odoo 42226de46e [IMP] crm: show lost opportunities to merge with existing opportunities 2016-11-08 11:15:27 +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
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
Dhaval Panchal a4b8641e75 [IMP] website_forum: move comment link at bottom of the thread
Usability Issue: comment link in forum
 It’s more intuitive to find a link to comment a thread at the bottom of the thread.
2016-11-07 11:28:20 +01:00
qdp-odoo 28bba0a486 [FIX] account_tax_cash_basis: fix the move date of to be one of the dates of the operations, instead of today...
Was today if you recorded operations in the future (????)... but, still, it's cleaner that way
2016-11-07 11:06:51 +01:00
Moises Lopez 6665a6a6e1 [IMP] base: add search on 'vat' field in name_search() of res.partner.
Courtesy of Vauxoo
2016-11-07 11:06:51 +01:00
Kinjal Mehta 9f8e37c57d [IMP] account: Add a Products menuitem under Configuration
Purpose
=======

If a user only installs invoicing or accounting, there is no way to easiy manage the product list
2016-11-07 10:50:32 +01:00
ptr 5be1fabc9c [IMP] account: Improve the onboarding for the invoicing process
- Fiscal position Form: no account tab (hidden for billing users)
- In reports > invoices:
	- remove following measures: volume, weight
	- rename Total Residual into Due Amount.
	- Only show Currency Rate if multi currencies
- Onboarding: Add tip to open planner once in the menu. "Make your system ready to invoice in a few steps."
2016-11-07 10:27:14 +01:00
Yannick Tivisse 18abd7dc28 Revert "[IMP] sale,purchase,website: Harmonize the product name/description in reports and views"
This reverts commit cbc760acb8.

The reasons we put the product name and description is in the SO line:

- users want to be able to change the description in the printed quotation
- product is in user lang, description+product_name is in customer lang

That commit breaks what was a good behaviour
2016-11-07 09:19:27 +01:00
Fabien Pinckaers 3b09a27b99 [IMP] sale: kanban view to be mobile friendly 2016-11-07 13:14:09 +05:30
Ravi Patel a4f8f54950 [IMP] sales_team: when we change the salesperson, accordingly set the saleteam. 2016-11-04 16:44:09 +01:00
hza d9534ad052 [ADD] account: add option to install import_camt_bank_statment in account config 2016-11-04 16:33:44 +01:00
Kinjal Mehta b50ec6afe3 [IMP] sales_team,calendar: improve wording for calendar.alarm
- sales_team: Rename Next actions into Next activities on CRM dashboard.

- calendar: In meetings, reminder config, display 2 fields "Unit" and "Amount" inline with the string "Remind Before".
2016-11-04 16:21:04 +01:00
sah 62c4b0356b [IMP] web: Ask user to confirm export template removal
PURPOSE:

When users try to delete records in the database, we usually warn them about the possible damage they would cause by asking them to confirm this is what they want to do (just in case you misclicked for example)

Unfortunately, that feature wasn't implemented everywhere, at least no in the export window, which means a user can remove ir.exports records without having to confirm that's indeed what he wants to do.
This got worsened by the fact, in the export window (like pictured in the attachment), the "Save field list" button is less than 10px away from the DELETE button, meaning you could really remove 10min of your work (or worse, anybody else's work as we don't have any specific record rule on that) in one click
2016-11-04 14:16:14 +01:00
rmu-odoo f83944aa85 [IMP] hr_timesheet: Prevent wrong parent_id configuration
And hide the parent_id field.
2016-11-04 14:00:39 +01:00
Thibault Delavallée df01742fc0 [REF] mail, note, project, project_issue: remove 'new' button in notification emails
As this button leads to a void form view without context it is not
really usefull. As creating new records is achieved using aliases
there is no real need for a New Task/Issue/Note button.

mail/new controller is kept for compatibility but should be removed
before v11.
2016-11-04 10:50:29 +01:00
Thibault Delavallée 6b7e901352 [IMP] mail: clean a bit code generating links and correctly manage kwargs in controllers 2016-11-04 10:50:29 +01:00
hza d250ad25b4 [IMP] website_sale: Added Street2 field in frontend 2016-11-04 10:47:23 +01:00
dut-odoo cbc760acb8 [IMP] sale,purchase,website: Harmonize the product name/description in reports and views
- sale: Improvement in quotation/so line's description
Currently, quotation/so line's description shows product's name with description.
It should show only description of product if description is there else show name of the product in backend views.

- sale: show product with description in sale report
Due to change in description of quotation/SO line, sale report is affected. Fixed it.

- website_sale: show only description in cart lines
Due to previous commit, cart lines shown with product and it's description as a quotation/so line's name.
When we create order from frontend, quotation/so lines' name field takes product name and it's description.
It should only take description if description is there else product name. Fixed it.

- purchase: Improvement in RFQ/PO line's description
Currently, RFQ/PO line's description shows product's name with description.
It should show only description of product if description is there else show name of the product in backend views.

- purchase: show product with description in purchase report
Due to change in description of RFQ/PO line, purchase reports are affected. Fixed it.
2016-11-04 10:00:09 +01:00
Fabien Pinckaers 69b641d6bc [IMP] base: partner's default to company instead of individual for sales menu (make clearbit feature visible for on boarding) 2016-11-04 12:07:48 +05:30
Mansi Trivedi 2860414de4 [ADD] purchase: Add python tests for default lead time
Case 1: To check order date of purchase order and schedule dates of shipment and purchse order,
	  - Configure lead times:
        	- At a product level set Delivery Lead Time
		- At a company level set Purchase Lead Time

Case 2: To check order date of purchase order and schedule dates of multiple purchase order line of the same purchase order,
        we create two procurements for the two different product with same vendor and different Delivery Lead Time

Case 3: To check order date of purchase order and schedule dates of shipments and purchase order,
 	 - Configure lead times:
		- At a product level set Delivery Lead Time
		- At a route level set delay of push rules

Detailed Use Cases
==================

Consider today's date = 2016-04-21 ( date_planned of procurement = today's date + 10 days)

CASE 01:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Configure your company data
---------------------------
Purchase Lead Time : 3.00 days

Procurement Request
-------------------
Warehouse : YourCompany
Product : Product A
Quantity :  15.00
Planned Date: 2016-05-01 00:00:00

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-04-28 00:00:00
    Order date: 2016-04-23 00:00:00
Incoming shipments schedule date :-- 2016-04-28 00:00:00

CASE 02:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Create another Product
----------------------
Name : Product B
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  2 days

Procurement Request
-------------------
Warehouse : YourCompany
Product : Product A
Quantity :  10.00
Planned Date: 2016-05-01 00:00:00

Procurement Request for second product
--------------------------------------
Warehouse : YourCompany
Product : Product B
Quantity :  5.00
Planned Date: 2016-05-01 00:00:00

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-04-28 00:00:00
    Order date: 2016-04-26 00:00:00
    Schedule date of purchase order line for product A: 2016-05-01 00:00:00
    Schedule date of purchase order line for product B: 2016-04-28 00:00:00
Incoming shipments schedule date :-- 2016-04-28 00:00:00

CASE 03:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Warehouse configuration (YourCompany)
-------------------------------------
Incoming shipments : three steps

Routes
------
YourCompany : Receipt in 3 steps
Push Rules:
-----------------
WH: Input -> Quality Control :-- Delay : 2 days
WH: Quality Control -> Stock  :-- Delay : 2 days

Create Procurement:
-------------------
Product : Prosuct A
Quantity : 5.000
Warehouse : YourCompany
Procurement Location : WH/Input
Schedule date : 2016-05-01 10:30:43
Notes : 'Test scheduler for RFQ'

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-05-01 10:30:43
    Order date: 2016-04-26 10:30:43
Incoming shipments schedule dates :--
In type :--  2016-05-01 10:30:43
Internal type 1 :--  2016-05-03 10:30:43
Internal type 2 :--  2016-05-05 10:30:43
2016-11-03 15:25:46 +01:00
Goffin Simon 1d2ca93213 [FIX] point_of_sale: Closing a cash control session
Before the fix:
When creating a new session with Cash control POS then it was impossible to close the session.

After the fix:
The same flow as in 9.0 when closing a session

opw:691517
2016-11-03 15:04:22 +01:00
Kinjal Mehta b2eb54abe5 [IMP] product: order the attribute values by sequence then by id
=======
purpose
=======

By default, the sequence is 0 for all new attributes and the result is messed up. The product attribute values are not ordered in the same way in a list view.

That's because the results are not returned from sql ordered by id if the sequence is the same. Just add this in the order definition will remove the non-deterministic behavior.
2016-11-03 13:34:42 +01:00
David Arnold 5b90152951 [IMP] base: add Colombian states
Signed-off-by: David Arnold <dar@devco.co>
This commits closes #14067
2016-11-03 13:20:10 +01:00
David Arnold bed36bb160 [FIX] base: Add address format for Colombia
This commit closes #14066
2016-11-03 13:20:10 +01:00
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