Skip to content
Snippets Groups Projects
  1. Aug 04, 2017
    • Moises Lopez's avatar
      [FIX] doc: remove 'report' dependency · cdae67f0
      Moises Lopez authored
      This reverts commit bb7fef79.
      Because now odoo merge report module into web one
      
      Closes #18530
      cdae67f0
    • Martin Trigaux's avatar
      [FIX] l10n_nl: correct report name · ac17744f
      Martin Trigaux authored
      ac17744f
    • Haresh Shyara's avatar
      [IMP] base,l10n_cr,l10n_do: avoid title clashes in localizations · 98e66766
      Haresh Shyara authored
      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
      98e66766
    • dip-odoo's avatar
      [IMP] website_quote: quote templates are now archivable · 9dafd7f4
      dip-odoo authored
      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
      9dafd7f4
    • Jigar Patel's avatar
      [IMP] website_sale, product: Improve product availability in ecommerc… (#14037) · 65e81026
      Jigar Patel authored
      * [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.
      65e81026
    • Richard Mathot's avatar
      [IMP] base: countries/territories list cleaning · bfbaaa7d
      Richard Mathot authored
      The world changes and some country names too :
      - Anguilla is not a part of Saint Kitts and Nevis anymore (1980)
      - East Timor is now called Timor-Leste and has a new ISO code (2002)
      - Netherlands Antilles have been split in CW, SX, BQ (2010)
      - Neutral Zone between Irak and Saudi Arabia does not exist anymore
        (1991)
      - The U.N. now use "State of Palestine" for West Bank and Gaza (2012)
      - Yugoslavia has been split (1992) then some remaining parts renamed as
        "Serbia and Montenegro" (2003)
      - Zaire is now called Democratic Republic of the Congo (1997)
      
      We also fixed/simplified names of other countries/territories when
      there is a more vernacular name that is not ambiguous or simply a typo
      
      source: https://www.iso.org/obp/ui/en/#search
      
      (We also fix a test that count countries beginning by Z, and there is
      no Zaire anymore)
      bfbaaa7d
    • qsm-odoo's avatar
    • qsm-odoo's avatar
      [REF] web, web_editor: expose 'cssFind' function · bca7afe3
      qsm-odoo authored
      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.
      bca7afe3
    • qsm-odoo's avatar
      [IMP] web: add dialog helper for "safe" confirmation · 4fa1d2e4
      qsm-odoo authored
      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.
      4fa1d2e4
    • qsm-odoo's avatar
      [REF] web: add utility function to render checkboxes · 0cdb5ca5
      qsm-odoo authored
      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.
      0cdb5ca5
    • rar-odoo's avatar
      Revert "[IMP] Gamification: email template (#15582)" (#18670) · ad9e3902
      rar-odoo authored
      This reverts commit fb9865d9.
      ad9e3902
  2. Aug 03, 2017
    • Thibault Delavallée's avatar
      [IMP] Gamification: email template (#15582) · fb9865d9
      Thibault Delavallée authored
      * [IMP] Gamification: email template
      
      * [FIX] Gamification: mail template
      
      Fix of the template.
      - removed most of the static code,
      - add user-specific information.
      
      * [IMP] Gamification: email template
      
      - Split templates for 'personal' and 'ranking'.
      - beug fixes
      - Code cleaning
      
      * [IMP] Gamification: template
      
      - removed report_template_id field,
      - force dedicated template for 'personal' and 'ranking,
      - fix image size on personal template.
      - code cleaning
      fb9865d9
    • Fabien Meghazi's avatar
      [FIX] http/db: fix bug introduced in b34e0054 · 96af2823
      Fabien Meghazi authored
      b34e0054 was not properly checking if db_name option was in use
      96af2823
    • Prakash Prajapati's avatar
    • Fabien Meghazi's avatar
      [IMP] http/db: change behaviour of list_dbs() when `--db-filter` is not provided (Closed #18526) · b34e0054
      Fabien Meghazi authored
      In case `--db-filter` is not provided and `--database` is passed,
      Odoo will not fetch the list of databases available in the postgres
      server anymore because it does not have anything to match against this
      list. Instead, `list_dbs()` will use the value of `--database` as a
      comma separated list of exposed databases.
      
      This allows better security hardening in postgres access rights.
      
      Basically, that means that those commands
      
          $ odoo-bin -d foobar
          $ odoo-bin -d foo,bar,baz
      
      are now respectively equivalent to those commands
      
          $ odoo-bin -d foobar --db-filter='^foobar$'
          $ odoo-bin -d foo,bar,baz --db-filter='^(foo|bar|baz)$'
      
      The old behaviour can still be used with this command:
      
          $ odoo-bin -d foobar --db-filter='.*'
      b34e0054
    • qsm-odoo's avatar
      [REF] web, website: o_website_modal -> o_technical_modal · 5658e337
      qsm-odoo authored
      Opening a modal in Odoo should be done thanks to the 'Dialog' class. In
      the frontend, there can also be modals which are meant to be shown to
      the unconnected frontend visitors and those should then get the style of
      the website (bootstrap) and not the one of odoo. To manage this, the
      website JS code was extending the Dialog class so that it adds the
      'o_website_modal' class on modals which are opened thanks to the class.
      The LESS code was then in charge of forcing the Odoo style on those.
      
      This behavior is not the right one. "Visitors" modals should also be
      able to be opened with the Dialog class. This commit is a first step
      towards to the right behavior:
      - The standard 'Dialog' adds the 'o_technical_modal' class on its root
        element by default and allows to not put it thanks to 'technical'
        options.
      - 'o_website_modal' is then replaced by 'o_technical_modal'.
      
      What should be done next is:
      - Use the Dialog class when it is possible
      - Move modal.less in the common assets and make it style only technical
        modals -> remove some forcing of the style on 'o_technical_modal' in
        the frontend
      
      This behavior also allows future improvements, like building a
      completely different structure for technical modals which would allow
      better designing and the end of visitor/technical bootstrap conflicts
      (and so LESS efficiency).
      5658e337
    • qsm-odoo's avatar
      [REF] web, *: improve behavior of jQuery extension 'prependEvent' · 6d490082
      qsm-odoo authored
      * web_editor
      
      Odoo extends jQuery to add some utility functions. The 'prependEvent'
      one add the possibility to add an event handler on an element (like
      the jQuery built-in 'on' function) but to be executed before the
      already binded ones.
      
      This function was however incomplete and did not allow to use jQuery
      namespaced events.
      6d490082
    • qsm-odoo's avatar
      [REF] web, *: create jQuery ':hasVisibility' and ':hasOpacity' selectors · 847afa1b
      qsm-odoo authored
      * web_editor, web_tour
      
      jQuery has the built-in ':visible' selector. This is however not enough
      as this only checks if the element and its parents have a visible
      'display' property. Ironically, if the element has the 'visibility'
      property set to 'hidden', it will be considered ':visible' by jQuery.
      
      This commit creates the ':hasVisibility' and ':hasOpacity' selectors
      which respectively check if the element and its parents have a visible
      'visibility' property and a visible 'opacity' property.
      847afa1b
  3. Aug 02, 2017
  4. Aug 01, 2017
Loading