Commit Graph
93527 Commits
Author SHA1 Message Date
Olivier Dony 52fe671e61 [FIX] kanban: respect default_order when a groupby is active
The `default_order` attribute of a <kanban> view was applied
for a non-grouped kanban view, but was simply ignored when
the kanban view was grouped, a common situation.
When a groupby is active, the main order is the column being
grouped, but the `default_order` is still useful as
a secondary sort ordering, within the kanban columns.

This patch complements the original patch of
rev. 5c0804eaef from PR #520.
2014-12-10 14:14:25 +01:00
Arthur Maniet 8b6d72d8c8 [FIX] account: bank statement reconciliation widget: do not propose partial reconciliation if there are created lines 2014-12-10 14:00:42 +01:00
Arthur Maniet cc703c736c [IMP] account: bank statement reconciliation widget: remove a created line by clicking on it 2014-12-10 14:00:20 +01:00
Martin Trigaux 3695886531 [FIX] account: avoid losing product on invoice
Add restriction on product_id field to prevent the suppression of the product
if already present in an invoice.
This is to avoid the suppression of a used product variant when modifying
the list of attributes.#
Due to the constrain, the variant will be disabled instead of deleted.
Fixes #4129

Add warning message on the product form to warn users about the potential impact
of modifying variants.
2014-12-10 11:49:19 +01:00
Géry Debongnie 851140c7f4 [FIX] web: correctly init searchview when no action_id
the method prepare_dropdown_menu wasn't called when the searchview did
not have an action id.  This can cause problems in some cases (for
example, a crash in messaging when toggling the favorite menu)
2014-12-10 09:49:48 +01:00
Frédéric van der Essen dc560a4dd0 Merge branch 'master-pos-wms-fva'
Big Point of Sale Update !
==========================

 - Loyalty module for loyalty cards and loyalty rewards
 - Restaurant module has floor plans, and floor plan editor
 - Restaurant module has orderline notes ( Bloody / Well Cooked ... )
 - Customers can be created from the point of sale
   * You can take customers picture from Android / iOS
 - In-progress orders are kept between crashes and restarts
 - Barcode Nomenclatures support complex and custom barcode systems
   * Shared configuration with the WMS.
   * Product weight support in the WMS UI.
   * Multiple barcodes for the same product via barcode aliases
   * EAN-13 constraint removed, no more internal-code hacks.
 - Cashier Login / Logout from the point of sale with pin codes
   * a JS sudo() interface to help integrators customize the point
     of sale security:

    this.pos.sudo().then(function(){
        ... // only POS Managers can do this.
    });

 - QWeb receipt customisation for header and footers :
   * You can now include barcodes & other complex info, without
     new modules with the `<!DOCTYPE QWEB>` prefix in textareas :

     <!DOCTYPE QWEB>
     <div>
        <t t-esc="Math.random() + 'foobar'" />
        ...
     </div>

 - Lots of fixes & Usability improvements from customer feedback.
 - New demo data will come in a later commit.
2014-12-10 00:13:48 +01:00
Frédéric van der Essen c15f748be0 [MERGE] from master 2014-12-09 23:38:33 +01:00
Frédéric van der Essen 1dbf153eb5 [IMP] point_of_sale: re-use the /web provided font-awesome font 2014-12-09 22:51:32 +01:00
Frédéric van der Essen f3b635984f [IMP] point_of_sale: put the POS js files include function into the openerp namespace 2014-12-09 22:43:48 +01:00
Frédéric van der Essen 02cf0f3649 [IMP] point_of_sale: removed the barcode field; already defined on res.partner 2014-12-09 21:45:06 +01:00
Frédéric van der Essen 785e3a243a [IMP] barcodes: use builtin python sets when it makes sense 2014-12-09 21:38:52 +01:00
Frédéric van der Essen 9ef27d334d [IMP] point_of_sale: transform method into lambda, use uuid4 instead of uuid1 2014-12-09 21:12:22 +01:00
Frédéric van der Essen 49a00ad41b [IMP] barcodes: better default patterns 2014-12-09 21:05:13 +01:00
Christophe Simonis 5d60c1c887 [IMP] base: show "mode" in ir.ui.view form view 2014-12-09 19:49:50 +01:00
Frédéric van der Essen f8e6afee33 [IMP] barcodes: add a little explanation text on the barcode nomenclatures 2014-12-09 18:09:39 +01:00
Denis Ledoux c5ec6f397d [IMP] hr_recruitment: set company_id on change department 2014-12-09 17:52:21 +01:00
Olivier Dony da12f2b809 [FIX] product: pricelist: multiple corrections in UoM-related conversions
Pricelist computations need to consider 2 different Units
of Measure:
 - The default product UoM (product.uom_id), used as reference
   for the various quantities and amounts specified in each
   pricelist rules.
 - The `context UoM` is the UoM in which the result is requested,
   that is the list price UoM.

For example the 'price_min_margin' amount is meant for the unit
price of 1 x default UoM. When the context UoM is not the default
product UoM, it can be any UoM of the same UoM Category, and the
various quantities and amounts specified on the rule need to
be adapted accordingly:
  - min_quantity (expressed in terms of the default UoM)
  - price_surcharge (specified for 1 x default UoM)
  - price_min_margin (specified for 1 x default UoM)
  - price_max_margin (specified for 1 x default UoM)

The UoM corrections were not done consistently and resulted in
wrong prices when computing the price using a non-default UoM.
The cases were a conversion was needed or not were not properly
identified within the _price_rule_get_multi().

After this commit, the various code branches in _price_rule_get_multi
always ensures that:
 - price requested for: `qty` of `qty_uom_id`
 - `qty_in_product_uom` is the requested `qty` converted to default UoM
 - current (intermediary) price: `price` for  `price_uom_id`

Therefore `price` and `price_uom_id` are always in sync, and `price_uom_id`
can always be compared with `qty_uom_id' in order to know whether
a conversion is still needed.

This patch also corrects and extends the regression tests
introduced at revision 79ebe10.
2014-12-09 17:30:47 +01:00
Denis Ledoux f9ad381c17 [FIX] google_calendar: deleted excluded recurring event
Do not try to delete an excluded recurrent event added in Google, but not yet syncrhonised in Odoo (immediately deleted for instance)
2014-12-09 17:13:26 +01:00
Denis Ledoux d4f91b3f98 [FIX] google_calendar: recurrent event syncrhonization
When an attendee is added exceptionnally in an instance of a recurrent event, do not try to sync the basic recurrent event in his calendar
2014-12-09 16:34:35 +01:00
Yannick Tivisse b5164698f2 [IMP] Reportings Review
This commit fixes lots of usability problems in the reporting views.

eg: missing fields in the reports, labelling inconsistencies, broken/outdated/unused filters and group bys...

Detailed changelist
-------------------

account/Invoice Analysis:
- "Product Category" vs "Category of Product": labelling consistency
- group by Analytic Account

account_voucher/Sales Receipt Analysis:
- remove filter on Pro-forma

crm/Lead & Opportunities Analysis:
- "Exp." vs "Expected": labelluing consistency

crm/Phone Calls Analysis:
- remove Todo and My Phone Call filters
- fix My Sales Team(s) filter

crm_claim/Claims Analysis
- remove My Case(s) filter
- fix My Company(s) filter
- remove group by Sales Team
- fix label Creation Month

crm_helpdesk/Helpdesk Analysis
- remove My Case(s) filter

event/Events Analysis
- remove My Events & Show Confirmed Registrations filters
- fix labelling of Attendee / Contact group by

hr_holidays/Leaves Analysis
- remove My Requests filter

hr_recruitment/Recruitment Analysis
- remove My filter

marketing_campaign/Campaign Analysis
- fix labelling

mrp_operations/Work Order Analysis
- add fields Product Template, Product Category, Responsible, Routing
  and BoM
- fix labelling group by Planned Month

point_of_sale/Orders Analysis
- add fields Product Template, Invoiced, Point of Sale, Public Category,
  Warehouse and Pricelist
- fix Year filter

project/Tasks Analysis:
- remove My Task filter

project/Issues Analysis:
- remove My Issues filter
- remove Task group by

purchase/Purchase Analysis:
- fix quantity field into float
- add fields Product Template, Product Category, Partner Country, Fiscal
  Position, Analytic Account and Commercial Entity
- add group by Partner Country and Fiscal Position
- fix labelling "Product Category" vs "Category of product"

sale/Sales Analysis
- fix labelling "Product Category" vs "Category of product"
- add fields Product Template, Paid, # of Paid Lines, Partner Countru
  and Commercial Entity
- remove filter My Sales
- add group by Partner Country

sale_stock/Sales Analysis
- fix label name of shipped_qty_1

Credits
-------

Analysis and code courtesy of Sébastien Versailles, Quentin De Coninck,
Yannick Tivisse and Richard Mathot {sve,qdc,yti,rim}@odoo.com

(congratulations if you've read this boring commit message)
2014-12-09 16:12:48 +01:00
Denis Ledoux 377277c94e [FIX] account_analytic_analysis: default pricelist for contract sales order
With 'Fixed Price' enabled, a button giving the possibility to list all sale orders appears.
When browsing the list, there the possibility to create a new sale order.
The contract pricelist should be used by default when coming from this specific button.
2014-12-09 15:56:29 +01:00
Christophe Simonis a59cf39f06 [IMP] models.py: increase logging level for columns that can't be casted automatically when upgrading a module. 2014-12-09 15:39:12 +01:00
Denis Ledoux 7831fe631a [FIX] email_template: default model for save as new template feature
When sending a message with the "Compose new message" button on the right of the user menu, in the top bar, if you tried to save the message as template, you had a traceback because model field of email.template is mandatory, but was set to True because there is no model in such a case.

As there is no any relevant model in such a place, and that the field is mandatory, mail.message is pretty convenient as the default value.
2014-12-09 15:19:56 +01:00
Denis Ledoux a8f94a59cd [FIX] web: scroll handling for many2one selection
If the many2one selection height was too big (bigger than the browser page), it wasn't possible to see all options, because the body is set as overflow: hidden;

Moreover, if you opened a many2one selection and then scrolled the page, the selection moved with the scrolling, while it should be sticked to its input field
2014-12-09 14:41:26 +01:00
Cedric Snauwaert a834bd208f [FIX] stock: when putting product in pack from barcode interface, should return package_id instead of True 2014-12-09 14:25:19 +01:00
Martin Trigaux fa93166a1f [IMP] stock: set different label for name and complete_name
To be ablde to distinguish both field in advanced search.
2014-12-09 12:55:31 +01:00
Denis Ledoux 9f9e7ef0e1 [FIX] web: user lang has the priority on partner lang
Potentialy, the timezone too.

On item action click (such as menus in More.. and Print..), the data in form view had the priority on user context (through the sidebar_eval_context)

Therefore, if a field "lang" was present in the form view (like in partner form), the web/action/load xmlrpc call was using the partner language instead of the user language.

Example of wrong use case before the fix:
 - Set the user language in French, then go to a partner form of a partner with English set as language
  - Click on any button of the partner form, such as the "Invoices" button, notice that the last item of the breadcrumb is in English, instead of Frenh (the user language)
  - Click on any menu opening a wizard in the More.. dropdown menu, notice that the wizard title is in English instead of French
  - Print any report from the Print dropdown menu, notice that the report file name is in English. If you print the same report for the same partner but from the list view, the report file name is in French.
2014-12-09 12:52:20 +01:00
Jeremy Kersten 0173e5ec35 [FIX] website_blog: fi xbanner in demo data 2014-12-09 12:50:27 +01:00
Aaron Bohy a7ab5a4109 [ADD] Packaging: Debian and CentOS Dockerfiles for nightly builds tests
This way we'll be using docker cache to spare dependencies download time.
2014-12-09 12:33:56 +01:00
Aaron Bohy a700a1139e [ADD] Packaging: also publish source dist .zip file 2014-12-09 12:16:06 +01:00
Frédéric van der Essen f2c0d8fef7 [IMP] barcodes: remove AGPL headers (code still under AGPL) 2014-12-09 11:44:01 +01:00
Martin Trigaux 21fe55dfd2 [FIX] (portal_)project_issue: remove duplicated field
Field priority in kanban view was present twice which made inheritance harder
2014-12-09 11:23:21 +01:00
Josse Colpaert 74ae1d563a [MERGE] purchase: speed up cancelling procurements, add test, hide lot in quick inventory update
Manual re-merge of following commits, to fix mainline history:
  3ea978bc11
  f76d714fb9
  c12f4efc53
2014-12-09 11:00:32 +01:00
Dikshit Prajapati f048b0ea5b [REM] CRM : Remove old php script from crm. 2014-12-09 10:00:44 +01:00
Yannick Tivisse 5b8689f036 [IMP] Uniformize the icon in all kanban view (Google Hamburger) 2014-12-09 09:58:36 +01:00
Josse Colpaert 7bee5918eb [IMP] No lot in qty update as it is only confusing #3984 2014-12-09 09:56:31 +01:00
Josse Colpaert 7c1df8cdfd Merge branch '8.0' of github.com:odoo/odoo into 8.0 2014-12-09 09:54:04 +01:00
Josse Colpaert f76d714fb9 [IMP] Cancelling of procurements related to purchase orders should check state/UoM of the purchase order line + optim action_cancel
[IMP] Add tests

[IMP] Clean up
2014-12-09 09:48:31 +01:00
Josse Colpaert bacd8a189b Merge branch '8.0-wmspurchaseproccanceloptim-jco' of github.com:odoo-dev/odoo; branch '8.0' of github.com:odoo/odoo into 8.0 2014-12-09 09:47:09 +01:00
Thomas Rehn af905d0797 [FIX] implement pre-ordering of ESCPOS commands 2014-12-08 19:35:16 +01:00
fka-odoo 3ea978bc11 [IMP] crm_partner_assign: add field assigned_partner_id in view
website_customer filters the partners based on assigned_partner_id (the list of
customers that were impletemented by another partner). This field was not
visible so no way to actually display a partner in this list.
Fixes #430, opw 619254
2014-12-08 18:27:58 +01:00
Denis Ledoux cf4c826aa7 [FIX] website_sale: set partner lang according to website lang
On ecommerce checkout, the language of the partner wasn't set according to the language in which he is visiting the website.
Therefore, its partner was set with the default language (English in most cases), and any emails sent to him were not translated in his own language (in the email templates, such as the quotation email he received on order confirmation)
2014-12-08 17:50:34 +01:00
Jérome Maes 1e5a48a0f9 [FIX] im_livechat : do not crash if not Referer url in the header of the request. 2014-12-08 17:45:24 +01:00
Alexis de Lattre bf70bde346 [IMP] sale_stock: better inherit
Better inherit of tree view of sale order line with position="attributes"
instead of postion="replace"
Fixes #3664, #3726
2014-12-08 17:27:39 +01:00
Christophe Matthieu f2c5946051 [FIX] tour.js: popover position when scrolling down 2014-12-08 17:16:22 +01:00
Jeremy Kersten 92975297fc [IMP] remove instant click 2014-12-08 17:12:31 +01:00
Josse Colpaert c12f4efc53 [IMP] Cancelling of procurements related to purchase orders should check state/UoM of the purchase order line + optim action_cancel
[IMP] Add tests

[IMP] Clean up
2014-12-08 17:03:16 +01:00
Stéphane Bidoul c68ecbe093 [FIX] account: do not validate move when novalidate is in context
The key 'novalidate' is added in the context when an operation not impacting
the validation of a move is made. The validation recreates analytic lines
which decrease the performances.

In case of registrating a payment, the skipped validation are the one from
the reconcile method (reconciliation does not change the validity)
Fixes #3787, opw 618529
2014-12-08 16:47:47 +01:00
Jeremy Kersten 70ab2a6ed1 [IMP] ir_http: don't handle exception in dev mode but use the werkzeug debugger except if cause has been already identified (website Qweb) 2014-12-08 16:25:30 +01:00
Jeremy Kersten 44880fac3c [IMP] ir_ui_view: pep8 + log catched exception when view_id cannot be found. 2014-12-08 16:25:18 +01:00