Skip to content
Snippets Groups Projects
  1. Oct 12, 2017
    • rde's avatar
      [FIX] website: key from page's view was not unique in every cases · 53920fae
      rde authored
      Before this commit, if you created a page with the same name as another one
      (which is allowed) it would set the same key for that second page.
      Indeed, the code was setting correctly the path uniqueness but it was then
      setting the key based on the name and not on the unique url we found free.
      
      Now, the key is correctly uniquely set and even better, it is now completely
      independant from the url and has its own 'find unique' method to be sure it is
      correctly working.
      It was not clever to have key & url being linked.
      
      To be more clear:
      1. Create page 'aboutus'
      	key  is 'website.aboutus'
      	name is 'aboutus'
      	url  is '/aboutus'
      2. Create page 'aboutus' ->
      	key  is 'website.aboutus'
      	name is 'aboutus'
      	url  is '/aboutus-1'
      Problem: key should be unique (for t-call for specific files & website_version)
      Cause: key is set based on name which is not checking for uniqueness like url.
      Two possible solutions:
      	1. Set key based on url (which is being checked for uniqueness)
      	2. Create & Use a specific method to get unique key
      Fixed with solution 2 which is more clean.
      
      --
      
      It also fix an invisible 'bug':
      Saving a page being in menu would cause the menu's URL to get it's trailing '/'
      to be removed. It was only a problem when you were getting the warning about
      dependencies (the menu wouldn't be recognized as dependencies because of the
      removed '/')
      53920fae
    • rde's avatar
      [FIX] website: page url were not checked anymore for uniqueness · 7692f52a
      rde authored
      Before this commit, if you created 2 pages with the same name/url it could
      create both the pages with the same url.
      
      Now, like before, it is correctly adding a suffix (eg '-1') when you create a
      page with an URL already taken
      7692f52a
    • rde's avatar
      [IMP] website: button to easily back to page manager from form view · 553e24cc
      rde authored
      Before this commit:
      When you were on the page manager and you were editing a website.page's
      content, it would redirect you to the website.page's ir.ui.view's form view in
      the backend.
      From there, you would'nt have an easy way to get back to the page manager:
      your only option was to go to the website module and click on 'go to website'
      and then click on menu/manage pages.
      It was not convenient when you were editing multiple page quickly or just
      taking a look into some pages.
      
      Now, you have a button on the ir.ui.view's form view to get directly on the page
      manager.
      
      Note: this back button is obviously invisible for ir.ui.view not related to a
      website.page
      553e24cc
    • rde's avatar
      [REF] website: function inverse on computed field is_homepage · 3549078e
      rde authored
      Before this commit, we were using data[] array from json call to write on
      website model accordingly of is_homepage value.
      
      Now, we use the newly created inverse function of the computed field to handle
      that to make it more clear
      3549078e
    • rde's avatar
      [FIX] website_sale_options: public user can't add item to cart · cd6c8986
      rde authored
      Before this commit, clicking on add to cart as a public user* would throw an
      error because it would access uom.name on which public user has no right.
      *From the product page (/shop/product/xxx) having an optional product, the
      access error is really on the optional product.
      
      Now, we allow user to read name with sudo().
      cd6c8986
    • rde's avatar
      [FIX] website_sale_stock(_option): prevent negative stock & traceback · c400789d
      rde authored
      Before this commit, multiple tabs/session adding items to cart  could lead to
      negative stock displayed in the quantity field.
      In some case, it could throw a traceback because the wanted product had
      became unavailable in the meantime, causing the cart to be updated and the
      line to be deleted from the cart. But then, this line was being accessed again.
      
      Now, negative values are prevented at the screen. And there is a check on the
      line record to be sure it exists before accessing it.
      c400789d
    • Quentin De Paoli's avatar
    • Josse Colpaert's avatar
      [IMP] stock: no danger decorator for receipt · 055c03e8
      Josse Colpaert authored
      When a stock move is in reception, we don't want to color in red the
      move in the picking as the reservation will always succeed.
      055c03e8
    • Xavier Morel's avatar
      [FIX] doc: various · db0cb1b0
      Xavier Morel authored
      * fix Sphinx 1.6 compatibility leading to the "tiles" on the home page
        not working anymore: 1.6 replaces BuildEnvironment.reolve_toctree by
        TocTree().resolve(), while the method still exists it's not actually
        called anymore
      * rejigger some CSS as the second section went from one big tile to 3
        smaller tiles, and got laid out as a row rather than a second 2x2
        block. Recode the entire mess with flexbox, remove some stuff which
        conflicted with boostrap (this screen should probably be
        de-boostrapped and completely converted to flexbox or grid)
      * add building CSS from LESS to the makefile, all Odoo devs should
        have less installed locally (for assets)
      db0cb1b0
    • qsm-odoo's avatar
    • qsm-odoo's avatar
      [FIX] website: load xml dependencies of website.prompt · c1156915
      qsm-odoo authored
      The deprecated-but-still-used website.prompt requires some static XML
      to be loaded to work. In the case of creating a new website page, this
      XML was implicitely loaded by the "Content" menu... but when the user
      is on a translated page, this menu is not there. Anyway, this static
      XML loading should be done by the website.prompt function itself if
      necessary.
      c1156915
    • Martin Trigaux's avatar
      [IMP] doc: clarify RPC section name · 5823eb87
      Martin Trigaux authored
      Very often, people ask "Is there an API to Odoo?"
      Having a doc section explicitely called API will answer that
      Unverified
      5823eb87
    • Christophe Monniez's avatar
      [IMP] packaging: remove some packages dependencies · 347acbb4
      Christophe Monniez authored
      On Ubuntu Xenian, the Odoo package was difficult to install because
      three Debian packages were required but could not be found in Ubuntu
      repositories. As those packages are not really crucial, they are
      now only suggegsted by the Debian package which is therefore
      installable on Ubuntu Xenial. One can manually install them as
      explained in the documentation.
      
      Closes #20000
      Unverified
      347acbb4
    • Christophe Monniez's avatar
      [REM] remove any openid reference · fc76b1d5
      Christophe Monniez authored
      Purpose: openid is not used anymore in Odoo, therefore it can be
      safely removed.
      Unverified
      fc76b1d5
  2. Oct 11, 2017
  3. Oct 10, 2017
Loading