Commit Graph
91634 Commits
Author SHA1 Message Date
qsm-odoo 24c6e98685 [FIX] web: returns right deferred when loading same xml twice in a row
Since commit 417a664f16:
The `ajax.loadXML` function has been refactored and improved so that
multiple calls to the function with the same URL only loads it once
and so that the deferred which is returned really indicates the status
of loading this particular URL.

Unfortunately, there was a mistake: when loading the same URL twice,
the second call always returned an already resolved deferred if the
first call to `ajax.loadXML` was done with this URL.
2017-08-08 14:31:59 +02:00
dip-odoo cfdc76d758 [IMP] base_vat: clearer labels for VIES check 2017-08-08 13:58:39 +02:00
Thibault Delavallée ff47130bc4 [IMP] sale: sudo ir.config_parameter only once in settings 2017-08-08 13:53:00 +02:00
Thibault Delavallée 44af9e7a35 [FIX] account: crash in vat portal management
Correctly check 'vat' key is in the dict of data the user gives to
the controller and not in a browse record.
2017-08-08 13:53:00 +02:00
Richard Mathot 159975ba42 [IMP] l10n_be_hr_payroll: English wording 2017-08-08 12:02:27 +02:00
Dipali Tank 00f90a70ed [IMP] *: holidays -> leaves
The meaning of "holidays" may vary in the UK/US.
2017-08-08 11:53:03 +02:00
Haresh Shyara 4e6d3132ac [IMP] point_of_sale: display session state on PoS dashboard
Avoid that users attempt to start a session on a PoS that is already
open by showing visual badges on PoS dashboards
2017-08-08 11:00:14 +02:00
Jaykishan Solanki af6fee0b11 [ADD] l10n_fr: register SIRET number on partners 2017-08-07 14:42:26 +02:00
Mansi Gandhi 80e89c7a11 [IMP] point_of_sale: Add new settings form per POS
Purpose: Replace POS APP settings with a clean POS Form settings,
         one per POS

    - add state button for (active/inactive) archive/unarchive and remove boolean field.
    - remove 'Reprint Receipt' field from pos_reprint module and related code.
    - remove 'Multi-currencies' field and related code.
    - put 'Company' field under the 'Taxes' block and 'Sales Channel' under the 'Pricing' block.
    - add 'save' buttons to install needed modules manually.
    - removed constrains and set default fiscal value on fiscal position ids even if that not selected.
    - change the skip Receipt Screen label to a more appropriate one.
    - Tax help only appears when Tax-included is selected.

    * [IMP] point_of_sale: Removing multiple prices prod

    Purpose: The choice of the method for "Multiple price per product" was
    not appropriate for the Point Of Sale. Only the choice of the Pricelist
    make sense. So, only the Pricelist can be choosen in the POS config.

    * [IMP] point_of_sale, pos_discount, pos_restaurant:
            Generic module install

    Purpose: Before this improvement, some fields were used in pos.config to
             automatically install some modules.
             This fix tries to mimic the ResConfigSettings transient so that
             when a field starts with 'module_', it's automaticaly
             installed.
2017-08-07 14:24:45 +02:00
Baris Kocak bbcebcc123 [IMP] fleet: Improve dashboard, vehicule form and contracts
Purpose: Improve fleet for a better usability

Dashboard:
  - Replace 'leasing' button by a contract status icon in kanban tiles
  - Add a link to contract
  - Link to vehicule form when clicking on the tile

Vehicle form:
  - Track contract status in a chatter
  - Add a model_year

Contracts:
  - Imporve the states names
  - Split service types in two list views service/contracts
  - Execute a cron once a day to upgrade contract status
  - Add a new contract status is introduced 'Expiring Soon' to help
    spot contracts that will expire until 15 days with a filter.
  - Add a 'group by vehicle' to improve list usability

Fuel logs view: Add an an odometer column
2017-08-07 14:05:16 +02:00
Jaykishan Solanki b79c2a773c [IMP] stock_account: log product name in journal entries
When using perpetual valuation (for stock), automatic entries that are
created when product cost changes do log product name.
2017-08-07 13:38:54 +02:00
Yannick Tivisse f8a1e9f6e7 [IMP] pad_project: Allow to activate or not pads on a project 2017-08-07 12:21:26 +02:00
Yannick Tivisse 6b49f7b194 [IMP] project: Enable Timesheets option if Time Billing is enabled 2017-08-07 12:21:26 +02:00
Yannick Tivisse 89921c040a [IMP] project: Improve the ux due the project.issue model removal 2017-08-07 12:20:17 +02:00
Yannick Tivisse c3e9a08810 [IMP] project: Remove contraint between start and end dates
It doesn't make sense.

- The end date is set on a task when it's moved into a folded stage.
- The start date is the last date on which the task as been assigned to a user.

It's possible that an unassigned task is moved into a folded stage, and it shouldn't raise a ValidationError
2017-08-07 12:19:31 +02:00
Yannick Tivisse a9268af140 [IMP] project: Compute correclty the working days on reports 2017-08-07 12:19:31 +02:00
Yannick Tivisse c5080fa6fc [IMP] project: Remove res_config field related to unexisting module 2017-08-07 12:19:31 +02:00
Yannick Tivisse 9bbb115af2 [IMP] mail: Modify comment reference to unexisting model 2017-08-07 12:19:30 +02:00
Yannick Tivisse 308358c49b [IMP] project: Update planner to remove references to issues 2017-08-07 12:19:30 +02:00
Yannick Tivisse 5c8779c61d [IMP] translation: Update .tx/config for modified modules 2017-08-07 12:19:30 +02:00
Yannick Tivisse d669b39db6 [IMP] website_rating_project: remove useless argument in method 2017-08-07 12:19:29 +02:00
Yannick Tivisse ef2ce8d682 [IMP] website_project: Improve the display of a task description 2017-08-07 12:19:01 +02:00
Yannick Tivisse e0d888fb3c [IMP] website_project: Show more attachments on my/task/
Show the attachements that don't come from the mail_messages on the my/task/ page (Like in old website_project_issue module)
2017-08-07 12:17:10 +02:00
Yannick Tivisse 095b0adc2e [IMP] rating_project: Remove _send_rating_mail method 2017-08-07 12:17:10 +02:00
Yannick Tivisse a926015dcc [IMP] project: Remove alias_model field on a project
This field was needed because a rating could be sent to a customer for a task or an issue.

This was buggy, because if a template was set on a shared stage between tasks and issues, the rendering could crash, generate an email with wrong piece of information, and so on.

By removing this field, we can also remove some ugly code that was needed to make that distinction.
2017-08-07 12:17:10 +02:00
Yannick Tivisse 1148d553f6 [IMP] project: Add _message_post_after_hook to set partner on a task 2017-08-07 12:15:38 +02:00
Yannick Tivisse 642e6a5314 [IMP] project: Remove default author when going through the mail gateway 2017-08-07 12:15:38 +02:00
Yannick Tivisse afd982116b [IMP] project: Set a default value for generated tasks when no subject in email 2017-08-07 12:15:29 +02:00
Yannick Tivisse f50c9950af [IMP] project: Don't reset date_assign when changing user_id
The important information is when the task issue has been assigned the first time.
2017-08-07 11:25:04 +02:00
Yannick Tivisse eccbf1d067 [IMP] project: Update date_end on create and write and stage_id is folded 2017-08-07 11:25:03 +02:00
Yannick Tivisse 82ca3d3f5f [IMP] project: Allow communication with customer without creating a partner_id 2017-08-07 11:25:02 +02:00
Yannick Tivisse 9a63d01aaf [IMP] project: Do not set date_assign in default get
Currently when calling default_get (example: Create a new task), if a user is set on the new task, the assign date is automatically set at now()

It seems wrong for 2 reasons:
- It's alreay done either in write or create
- If the user creates a new task, but removes himself from the `Assigned to` field, the assignation date is still set, which is wrong.
2017-08-07 11:25:01 +02:00
Yannick Tivisse 0493edcb87 [IMP] project: Add Working time elapsed between creation and assignation/closing 2017-08-07 11:24:59 +02:00
Yannick Tivisse e0b904fb5b [IMP] project: Make priority a 3-choices selection 2017-08-07 11:24:58 +02:00
Yannick Tivisse cdd5f470dd [REM] project_issue: Remove module, merge into project.task 2017-08-07 11:24:56 +02:00
Yannick Tivisse 088b9b2a2a [MOV] website_issue: Rename module and move feature on project.task
The feature will be moved on the project.task model
2017-08-07 11:24:55 +02:00
Yannick Tivisse d977c1a1bd [REM] rating_project_issue: Remove module as project_issue will disappear 2017-08-07 11:24:54 +02:00
Yannick Tivisse 8ad335ae02 [REM] website_project_issue: Remove module as project_issue disappears 2017-08-07 11:24:53 +02:00
Yannick Tivisse 1b4f2fbe9c [MOV] website_rating_project(_issue): Rename module and remove issues integration 2017-08-07 11:24:51 +02:00
Yannick Tivisse e7c470ff03 [MOV] crm_project(_issue): Rename module and move feature on project.task 2017-08-07 11:24:50 +02:00
Yannick Tivisse 9cc6a95406 [REM] project_issue_sheet: Remove module as project_issue disappears 2017-08-07 11:24:49 +02:00
Yannick Tivisse 9991de8936 [REM] website_project_issue_sheet: Remove module as project_issue disappears 2017-08-07 11:24:46 +02:00
Martin Trigaux ac17744fe2 [FIX] l10n_nl: correct report name 2017-08-04 15:29:56 +02:00
Haresh Shyara 98e6676621 [IMP] base,l10n_cr,l10n_do: avoid title clashes in localizations
Seen that:
- a unicity constraint on a translated field may lead to unexpected results
- declaring records with xmlids of other modules (aka 'base') raises a warning
- some titles may be translated and are highly local

=> we let people manage titles of their countries, even if it may lead
   to a few duplicates in case where more than 1 localization is installed
2017-08-04 15:05:23 +02:00
dip-odoo 9dafd7f47e [IMP] website_quote: quote templates are now archivable
We also:
- reorder a bit the form view for quote templates
- change the way default templates are selected for sales order
  (inactive quote templates are not selected) while keeping
  customizability through ir.values
2017-08-04 14:58:03 +02:00
Jigar Patel 65e810269a [IMP] website_sale, product: Improve product availability in ecommerc… (#14037)
* [IMP] product: Clean product form view

* [IMP] website_sale: Remove old availability functionality

* [IMP] website_sale: Fix to get attributes details

* [IMP] website_sale_stock: Add inventory availability
- Warning messages:
  - Don't show anything
  - Show inventory
  - Only show below a Threshold
  - Show a custom message
- Add Default Inventory availability option in website admin under product catalog setting
- Show inventory availability message based on variant
- Block add to cart if product not available in stock (Block if Show inventory or Only show below a Threshold option is selected)

* [IMP] website_sale_options: Prevent user to buy optional product if stock is not available

* [FIX] product,website_sale_stock: details

- Corrects the display of the image on the product form when selecting a pre-existing image.
It was displaying a template and not the pre-existing one.

[FIX] website_sale_stock: sale_order

Condition was set on linked_line_id which is pointless as we iterate on each line of the order.

[FIX] website_sale_stock: fix import

Change import to proper form: from . import

* [ADD] website_sale_stock: default threshold

- Add available_threshold in website_config_setting view.
- Fix availability and threshold values to be directly
  linked to product template instead of website config settings.
- Change custom_message to non-required.

* [ADD] Website_sale: Install checkbox for wbs_stock

-Add checkbox to install website sale stock as 'Inventory' in Website Settings
-Change 'Inventory Availability' to 'Inventory'
-Add help and tooltip for 'Inventory'

* [IMP] website_sale_stock: website product view

- Add Unit of measure in the stock information on the product page.
- rework get_attribute_value_ids method.

* [IMP] website_sale: Stock and Options

- bridge module to allow stock and options to interract together
- changes on the field names (follow pad), modifications.

* [FIX] product: revert on product_views and cleaning

Revert changes suggested on the task as it it scheduled on another one for a big clean-up.
Clean comments on code.

* [IMP] website_sale_stock: website product view

+[FIX] sale_stock: dependency
- changed strings and views for website and backend product view.

- change dependency of 'sale_management' to 'sale' in 'sale_stock'.
We don't actually need the sale menu when managing our stock. Sale if sufficient thix way.

* [FIX] website_sale_stock: triggers on js and ajax

The function inserting the avalability template in the web page was triggered by too much events,
this was triggering a problem with the deferred calls. This was raising an error in the website_sale_tour_buy test.

Now only change on data-attribute_value_ids will trigger the function. The test should run smoothly.

[FIX] website_sale, website_sale_stock: route tour_buy

- The improvements on the branch prevent a user to buy a product when there is no stock.
Adapted the route test to the new behaviour in order to add_cart/buy/pay a product.
--> now buying iPod (16Gb) instead of iPod (32 Gb)

- ajax.loadXML was called to often (each trigger of the function) and was making the runbot crash.
Only one call of the loadXML right now.
2017-08-04 14:57:25 +02:00
qsm-odoo ed58cee2b9 [REF] web_planner: remove useless constructor redefinition 2017-08-04 12:31:58 +02:00
qsm-odoo bca7afe3ce [REF] web, web_editor: expose 'cssFind' function
The web_editor app uses a 'cssFind' function but does not expose it. It
makes sense to move it in the web app in the 'dom' utility function set.
2017-08-04 12:31:57 +02:00
qsm-odoo 4fa1d2e46d [IMP] web: add dialog helper for "safe" confirmation
The Odoo Dialog API already had the "confirm" helper to open a dialog
which shows two buttons: one to confirm and one to cancel. This commit
introduces the "safeConfirm" helper which requires two clicks to
effectively confirm.

Note: this will be used by the upcoming website update.
2017-08-04 12:31:54 +02:00
qsm-odoo 0cdb5ca5c9 [REF] web: add utility function to render checkboxes
Odoo checkboxes have a special style which requires a special DOM
structure. Instead of having to build this structure each time we need
a checkbox to be rendered, it is better to have a function that does
that. It is also better to have a JS function for this instead of a qweb
template so that this has not to be lazy loaded by the frontend for
something as simple as a checkbox.
2017-08-04 12:27:27 +02:00