Commit Graph
101382 Commits
Author SHA1 Message Date
Martin Trigaux 2c904509a3 [IMP] website_sale: cleaning of outdated code
- remove field complete_name
  is the same as the ORM field display_name, compute the name_get

- website_publish_button is duplicated
- write outdated, according to TODO (field color already renamed)
- Instead of open_website_url, should use website_publish_button
- styles, style_in_product, attrib_encode: are no longer used in templates

- remove unnecessary rebrowse
  This check was added at d3678bf5 either
  - to prevent browsing as public user (wrong as always browsed with SUPERUSER_ID)
  - to refresh fields of the record (I find your lack of faith in the cache
  invalidation distrubing)

- remove get_pricelist method
  equivalent to call request.website.get_current_pricelist
2016-03-17 17:26:38 +01:00
Martin Trigaux a1339c5aad [IMP] website_sale: propagate modified context only in useful methods
The pricelist in the context is only useful when computing the price of the
product.
Do not modifiy request context but only a local copy.

active_id is only used for the computation of the extra price from variants
2016-03-17 17:18:55 +01:00
Mitali Patel 7b1d655d8c [FIX] mrp_byproduct: correctly handle fixed quantities
If the fixed quantity was higher than the produced quantity, the quantity of the
manufacturing order was used for the byproducts instead of the one specified on
the BoM.

This bug was due to the computation of the subfactor (`_get_subproduct_factor`
in mrp, because I love the modularity) that was computing remaining quantity,
only considering the variable quantities cases.
In fixed quantity, the MO quantity being lower than the byproduct quantity, it
was never fully produced.

Corrected the test to correctly check the quantities and handle the usecase with
an higher quantity in fixed byproduct.

Added a field subproduct_id on the stock.move object that allows to easily find
the attributes of the mrp.subproduct item without making hacky (and probably
wrong in case of more than one byproduct) search to find it back.

Closes #8031
2016-03-17 15:36:54 +01:00
Denis Ledoux f4f6e6c5dd [FIX] purchase: remove base. from Vendors menu xml id
Otherwise, when uninstalling the `purchase` module, this
menu is not deleted, while it should.

Besides, there is no reason to set `base.` to this xml_id:
It's not used by any other module.

opw-672130
2016-03-17 14:17:32 +01:00
Yannick Tivisse 6b31d254e0 [IMP] website: Do not resize favicon on each page load 2016-03-17 10:14:00 +01:00
Yannick Tivisse 22ba0f2402 [FIX] website_event: is_participating checks partner if no mail address 2016-03-17 10:14:00 +01:00
Parth Mehta b1f8abadf2 [IMP] crm: Name the root menuitem 'CRM' if only CRM installed
In sale_crm: Redifine the menuitem with the name 'Sale' in the
case that CRM was installed after Sale.
2016-03-17 10:03:13 +01:00
Srushti Patel 1427b3660c [IMP] stock,purchase: add Product Variants menuitem in the Inventory and Purchase apps.
* Provides an easier acces to product variants from those apps
    * Fix the name of the generic product variants action in the product module.
2016-03-16 15:08:14 +01:00
Mansi Trivedi 170d7475ae [REM] stock: On stock.production.lot form view, remove some unnecessary fields.
* Since lots can only contain one product, which already appears on the form view, the serial and product name are removed from the quants list.
2016-03-16 11:58:25 +01:00
Parth Mehta db1f8ee8df [IMP] account: Clarify refund sequence on account.journal form view
* The refund sequence checkbox was not in technical features while the refund sequence selection was.This meant that in non-technical mode you could activate refund sequences but couldn't select one.
    * This commit fixes the issue by setting the the checkbox to technical features as well, and setting the refund sequence selection to required once the checkbox is ticked.
2016-03-16 11:15:45 +01:00
dut-odoo 0c95954550 [IMP] product_extended: Improve string of field 'real_time_accounting' for better usability 2016-03-16 10:46:30 +01:00
Prashant Panchal 9a490b0b83 [IMP] Product: Improve type field tooltip on product. 2016-03-16 10:20:56 +01:00
Martin Geubelle 349054e41d [FIX] website: deal with unauthorized users
Show an appropriate message if the user does not have access to the analytics views.
2016-03-15 11:40:24 +01:00
Martin Geubelle 799fdffe12 [IMP] website_sale: table title in dashboard 2016-03-15 11:38:29 +01:00
Mitali Patel f9cd11e13a [IMP] sale_crm: On the opportunity form change Quote stat-button icon.
* Some people were expecting a $ amount instead of the number of quotations due to the dollar sign on the stat-button. This should clear the confusion.
2016-03-14 16:49:44 +01:00
Tanguy Charlier 5bc0bd3707 [REF] hr_timesheet: migrate project_timesheet.py to new API
* New API migration
    * Fix delay hours and total computation : Delay was wrongly computed as 0.0 in every case.
    * Remove onchange from task. They were more confusing than helping.
2016-03-14 14:27:41 +01:00
Invitu bc758128a8 [IMP] add widget support in pivot views (issue odoo#10473)
For example, add widget="float_time" in hr_attendance pivot view measure
field.
2016-03-14 14:24:04 +01:00
Richard Mathot 9f7085586b [DOC] web: do_action accepts also the XML id of an action 2016-03-14 11:37:46 +01:00
Tanguy Charlier 234f88a6af [REF] sale_service,sale_timesheet: Merge sale_service functionalities into sale_timesheet.
* Since the last timesheets refactoring, timesheet entries are always linked to a project, and sale_service had the same dependencies as sale_timesheet.
    * This commit simplifies the modules hierarchy by merging two modules that have a close functionality and that were both always installed after timesheets and sales.
2016-03-11 16:30:50 +01:00
Yannick Tivisse 4be6ac41de [REM] website: 'Optimize AdWords Campaign' under the Promote menu
fp request
2016-03-11 14:26:18 +01:00
Darshan Kalola 54393e9aa2 [ADD] website: Easy website Favicon configuration from website admin panel
Easy solution: a binary field in website.config.settings
2016-03-11 14:02:21 +01:00
rpi f2a805b286 [IMP] mass_mailing: Move access rights from employee to mass mailing user. 2016-03-11 13:36:44 +01:00
Anand Kansagra 5e0e7c5546 [IMP] account: Remove duplicate actions on the CoA Action menu 2016-03-11 10:05:47 +01:00
Yannick Tivisse 1165291ed5 [FIX] purchase: Traceback and bad counter computation
On the product_template, the stat button to indicate the purchased quatity
is buggy in several ways.

1/ The states in the read_group domain have been mistaken with the states
   on the picking (clap, clap)
2/ The read_group is seeking the fields product_id and quantity. Too bad, on
   the model the name is unit_quantity (clap, clap)
3/ The displayed PO lines weren't chosen from a domain. So the computed quantity
   didn't correspond to the displayed lines from the button (small clap, clap)
4/ The action_purchase_line_product_tree linked to the stat button is selecting
   the PO lines where the product is the product id. Too bad, on the PO line
   this is a product.product and on the current object this is a product.template
   (epic clap, clap)
2016-03-10 17:25:42 +01:00
dut-odoo 05f8211917 [FIX] event: 2 menuitems having the same id
1/ Two menus having same id, so changed id of 'Mail Schedulers' menu.
   So 'Events Types' menu is visible.
2/ UI improvements(changed menu string: Events Types -> Event Categories,
   no more create and edit options for category selection).
2016-03-10 15:32:30 +01:00
Martin Geubelle d32abe75b1 [IMP] delivery: usability
* Remove useless field `partner_id` (+ data)
* `delivery.carrier` form view
* 'Install more provider' button
* etc.
2016-03-10 13:41:10 +01:00
Martin Geubelle bf10251474 [IMP] payment: environment should be required 2016-03-10 13:41:10 +01:00
Martin Geubelle 42c82d57de [ADD] website, website_sale, website_crm: new dashboard 2016-03-10 13:41:10 +01:00
Martin Geubelle c603b93e1d [IMP] delivery: change terminology for active field 2016-03-10 13:41:09 +01:00
Martin Geubelle cf55717df8 [FIX] website_sale_delivery: placeholder typo 2016-03-10 13:41:09 +01:00
Martin Geubelle ab25cca7e2 [ADD] website_blog: visits on tree view 2016-03-10 13:41:09 +01:00
Martin Geubelle 16175bf023 [ADD] website_sale: allow delivery in Settings 2016-03-10 13:41:08 +01:00
Martin Geubelle b2609985e9 [FIX] website_sale: inline fields in settings 2016-03-10 13:41:08 +01:00
Martin Geubelle 9688ede434 [IMP] website: speed in another group in settings 2016-03-10 13:41:08 +01:00
Martin Geubelle 3a9a473235 [ADD] website: load a translation in settings 2016-03-10 13:41:08 +01:00
Martin Geubelle a60d759831 [IMP] website_sale: salesteam_id and salesperson_id in technical 2016-03-10 13:41:07 +01:00
Martin Geubelle 1d777d6d95 [IMP] payment, payment_*: acquirers installation
The installation of a new acquirer was a bit complicated : from settings,
check the acquirer, then apply (install the module) then list view of
acquirer and finally edit it in form view.

This needed to be simplified. The payment acquirers are pre-filled
in payment. From the kanban view an `Install` button installs and
redirects to the form field.
2016-03-10 13:41:07 +01:00
Hitesh Trivedi ed589ca98a [ADD] Add (Un)archive button on form view of following model
- slide.channel
- slide.slide
- forum.post
- forum.forum
- blog.blog
- blog.post
- survey.survey (only for closed surveys)
- stock.location.route
- stock.warehouse.orderpoint
- stock.picking.type
- stock.incoterms
- stock.warehouse
- stock.location.path
- stock.location
- crm.team
- mrp.bom
- mrp.routing
- mrp.workcenter
- fleet.vehicle.log.contract
- fleet.vehicle
- event.track
- crm.claim
- hr.equipment.request
- hr.equipment
- hr.department
- res.currency
- procurement.rule
2016-03-10 13:06:03 +01:00
Parth Mehta 54245deebd [IMP] lunch: view improvement of previous orders.
Purpose:
1/ In the lunch app, previous orders list: the products are not displayed.
It is written X Records but you don't see the products name. Therefore
the information is useless.

2/ It is dangerous to be able to delete a previous order that has been
received (it changes the lunch account amount)

What is done:
In Previous Orders list :
- The view should be based on the sales orders lines. In that case, each
  line = 1 product.
- add a note column (between product and status)
- add a user column (between status and total)
- Rename Total into Price
- If order.line status = ordered or received, it shouldn't be possible
  to delete it. An ir.rule has been added to achieve this.
- An additional group access right check is made in the actions 'confirm'
  'cancel' and 'order' because they can be called in batch under the
  Action button.
2016-03-10 10:18:17 +01:00
Rashik kalathiya 6db140d5d6 [IMP] auth_oauth: Update the tutorial 'Sign in with gmail' 2016-03-09 15:07:51 +01:00
Martin Geubelle fe66472e2c [FIX] web, web_kanban: visible default color on tags
The default comportement of tags has been changed. The default color is now visible on kanban.
The 10th color is now invisible.
2016-03-09 14:34:01 +01:00
Yannick Tivisse aed779b0ad [IMP] product: Pricelist creation on Company creation if new currency
When working in multi-company, and each company using its own currency,
a pricelist for the second company should be created. For instance, our
default company is in Belgium -> € and there is a default pricelist in €.
Then you create a second company in US -> $. It is impossible for the us
company to sell in its own country because there is no $ pricelist.

When creating the second company, if the currency is different than the
first company one, the default pricelist in the currency should be created.

In all the cases, a ir.property should be created to link the
'property_product_pricelist' on the 'res.partner' to the new company.

Furthemore, a small usability improvement. The currency should be
activated before creating the company. So we change the label to indicate
that behavior and make the action in target new to prevent the creation flow
to be broken
2016-03-09 14:13:08 +01:00
Mansi Trivedi 2432483e14 [IMP] account: Make fiscal position field searchable on partner form
- Remove the "selection" widget from the fiscal position field.
- User can create this field only from Configuration menu of accounting.
2016-03-09 14:00:11 +01:00
Géry Debongnie f970906c9e [IMP] base,openerp,web: add debug mode === 'assets' and don't split assets by default
This is a rather large change for developers: from this commit on, we
need to use debug=assets instead of just debug to split assets.

The About menu has been slightly improved as well (the link does not
appear when we are already in debug mode), and an option has been added
in the debugging menu to activate the assets debugging mode.
2016-03-09 13:01:34 +01:00
Géry Debongnie 3cc96b2a8e [IMP] base_geolocalize: replace old gtk icon by shiny new fa icon 2016-03-09 13:01:34 +01:00
Géry Debongnie c5c3ab927e [IMP] mail: load audio file lazily 2016-03-09 13:01:34 +01:00
Géry Debongnie e877d59d21 [REM] mail: remove old announcement bar 2016-03-09 13:01:34 +01:00
Aaron Bohy 46857d267b [IMP] board,web: view_manager: lazy loading of default multi-record view
After a refresh or when opening odoo in a new tab, if view_type="form" is
specified in the url, RPCs to load the default multi-record view will be
performed if/when the user clicks on the breadcrumbs.

Moreover, the view manager is directly initialized with the res_id to load
after a refresh on a form view, to prevent the form view to fetch the defaults
values, to render in 'create' more, and then load the requested record and
switch back to 'view' mode.

Some code refactoring as well:
  - don't propagate state to the view_manager, but directly the view_type and
    res_id
  - remove unused argument no_store from switch_mode()
  - view_registry.get(): remove unused second argument
  - no need to switch_mode in do_load_state() as the correct mode is now loaded
    directly, even if it is a mono-record view

Also adapt code in dashboard.js according to changes in view_manager.
2016-03-09 13:01:34 +01:00
Aaron Bohy 8a47095a60 [REF] web: view_manager's init
Always initialize a view_manager with its dataset and views, but without the
action (at least explicitely, as the action might still be given within the
options).

This is a backport of changes in enterprise to keep the view_manager's API
similar in both repository, which is required the large refactoring that will
arrive.
2016-03-09 13:01:34 +01:00
Yannick Tivisse a82413fb7a [IMP] website_event: Label 'Participating' on frontend
On the event page and on the event list page on a website, add a
label "participating" for the logged users that are participating
to the event to avoid mistakenly double-subscribing. But we don't
hard-prevent it, because it should still be possible to subscribe someone else.

Small improvement: The portal group in general settings was hidden. We set it
visible because it contains some useful options like 'Allow external users to
sign up'
2016-03-09 12:13:23 +01:00