Skip to content
Snippets Groups Projects
  1. Oct 13, 2017
  2. Oct 12, 2017
    • Simon Lejeune's avatar
      [FIX] mrp: bom structure tree view · 38fbf041
      Simon Lejeune authored
      The tree views were removed in the new webclient but the reference of
      the bom structure tree view was still there.
      
      Closes #20108
      38fbf041
    • Christophe Monniez's avatar
      [FIX] packages: fix docker images builds tests · 5dfa00cb
      Christophe Monniez authored
      The automated tests of rpm,deb and src packages are using docker
      images and containers. Those tests were not working as expected due
      to various small glitches:
      * some debian python- packages were missing in the Debian image
      * pip was called instead of pip3 for the src test
      * a wrong addons path was given for the tests
      * the containers id's were wrong due to a bytes implicitly converted
        to str
      Unverified
      5dfa00cb
    • Josse Colpaert's avatar
      [FIX] mrp: lots of component should always be visible in move view of MO · 855a56ba
      Josse Colpaert authored
      When you open a move of a component in a manufacturing order, we cannot
      see the move lines and so add a new on if there are no move lines in it
      with finished lot. We now always display the list of move lines if
      product is tracked by lot/serial or has finished lots.
      855a56ba
    • Siddharth Gajjar's avatar
    • rde's avatar
      47b376e6
    • rde's avatar
      [IMP] website: warn user about key change when editing special file name · a91a3a56
      rde authored
      The idea is to warn user if he created a special file (website.page with
      supported extension) and he wants to change the file's name, which will at the
      end also change the key).
      If this special file has been t-called elsewhere, they t-call wont work anymore
      This is why warning user is needed.
      
      Note that this is different than the already existing page_search_dependencies
      that is just checking if the URL is present in menus, templates, blog or pages.
      This is about checking if the key is present somewhere. (we assume that if the
      key is present, it is surely about a t-call.
      
      Technically, the flow is:
      1. Get supported extension
      2. Get key dependencies
      3. Check if user modify name
      4. If name changed and it is/was a supported extension (special file) and it
         has dependencies (surely t-call) then warn user these call wont work anymore
      
      --
      
      search_page_dependencies is also improved by returning links to be clickable
      (on delete dialog eg) and splitting template/page results.
      
      it also refactor dependencies warning that was creating HTML in javascript into
      using XML template
      a91a3a56
    • rde's avatar
      [TYPO] website: change some texts · a8fc544c
      rde authored
      a8fc544c
    • 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
  3. Oct 11, 2017
  4. Oct 10, 2017
Loading