Skip to content
Snippets Groups Projects
  1. May 04, 2020
  2. Apr 30, 2020
    • Goffin Simon's avatar
      [FIX] account: Wrong tax amount with Python tax code · c704611f
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Create a new tax T based on python code, leave the code how it is by default (result = price_unit * 0.10)
      - Check included in price
      - Create an invoice, add a customer, add a line with random label, assign unit price = 100 and select tax T.
      
      Bug:
      
      On the invoice, the Untaxed Amount =  90 and Taxes = -10 instead of 10 (like the behavior in 12.0)
      
      opw:2242188
      
      closes odoo/odoo#50485
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      c704611f
  3. Apr 27, 2020
  4. May 04, 2020
    • Mathieu Duckerts-Antoine's avatar
      [FIX] base: validate disable_counters · 4c321d0b
      Mathieu Duckerts-Antoine authored
      
      An attribute 'disable_counters' on fields of the search panel is
      supported in case performance issues would be encountered with counters.
      The commit dd7022ec
      allowing to use the search panel in other views than the kanban views
      has also introduced the search panel arch validation
      and the attribute 'disable_counters' was forgotten, so that it was
      impossible to use it in practice.
      With the present commit, 'disable_counters' is now recognized
      as a valide attribute.
      
      closes odoo/odoo#50525
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      4c321d0b
  5. May 03, 2020
  6. Apr 30, 2020
  7. Apr 28, 2020
  8. Apr 30, 2020
  9. Mar 03, 2020
    • jbw's avatar
      [FIX] account_analytic_default_hr_expense : fix _onchange_product_id · 1c41c90b
      jbw authored
      
      _onchange_product_id() used to always (re)set hr_expense analytic_account_id & analytic_tag_ids to default values.
      Or set those to false if no default values are found.
      Installing account_analytic_default_hr_expense made odoo/addons/hr_expense/tests/test_expenses.py tests fail
      
      - changed function name (no need to be a _onchange_product_id override)
      - removed super() & return
      - only set default value to var if var is False
      
      closes odoo/odoo#46449
      
      Task: 2205544
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      1c41c90b
  10. Apr 30, 2020
  11. Apr 09, 2020
  12. Apr 29, 2020
    • Olivier Dony's avatar
      [FIX] doc/deploy: add recommendations for firewall rules · da0d9ef4
      Olivier Dony authored
      
      In some situations it is important to protect the Odoo service from
      direct access from the internet, or to protect internal network
      resources from the Odoo server itself.
      
      This is heavily dependent on deployment requirements, and for standard
      installations on a public cloud system, this may not be necessary.
      Yet it seems useful to mention it in the deployment recommendations,
      as it may not be obvious to our users.
      
      Our thanks to Ameya Darshan for raising this concern!
      
      closes odoo/odoo#50417
      
      Signed-off-by: default avatarPaul Morelle <madprog@users.noreply.github.com>
      da0d9ef4
    • qho's avatar
      [FIX] base: fix "Original Bill" when file is image · feb83c68
      qho authored
      
      1. Create an invoice and upload a picture file as the only attachment
      2. Try to print "origin bill" for the invoice (From the invoice tree
      view select one and click print > origin bill )
      
      An error will raise "PIL.PdfParser.PdfFormatError: trailer end not found".
      Fixing by using another BytesIO object as the output.
      
      opw-2244625
      
      closes odoo/odoo#50313
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      feb83c68
  13. Apr 28, 2020
  14. Apr 29, 2020
  15. Apr 28, 2020
  16. Apr 29, 2020
  17. Apr 28, 2020
    • Nicolas Lempereur's avatar
      [FIX] web_editor: ol in ol no number skip · bbf4ad7d
      Nicolas Lempereur authored
      
      In the case of an <ol> in an <ol> we would have something like:
      
      ```
      1.
         1.
         2.
      3.
      ```
      
      because the sublist itself in version of summernote.org we are using
      is a list item, so it takes one extraenous item.
      
      With this changeset we have something that makes more sense:
      
      ```
      1.
         1.
         2.
      2.
      ```
      
      Because there are tons of use case of different selection of list level
      and indent or outdent, this commit also simplify outdenting (eg. now we
      outdent all the element of the same level than the first indented).
      
      opw-2185406
      closes #48194
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      bbf4ad7d
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: unkown partner in aged receivable/payable report · 6fc7cff5
      Andrea Grazioso (agr-odoo) authored
      
      Create a journal entry with accounts payable receivable in the journal
      lines and no partner. Reach out Aged payable/receivable report. Click on
      the unkown partner: all lines from the partners will be fetched
      (duplicated)
      
      This occur because the function which takes the values from the database
      does not handle the null partner case
      
      opw-2242031
      
      closes odoo/odoo#50291
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      6fc7cff5
  18. Apr 22, 2020
    • Lucas Lefèvre's avatar
      [FIX] base: Make OdooBot partner cross company · 98b48d92
      Lucas Lefèvre authored
      
      Steps to reproduce:
      - Create a second company
      - Enable this company only
      - Create a new company
      => Access error is raised because the `intercompany_user_id` is
      OdooBot by default and OdooBot's partner cannot be read from
      other companies. Hence, the company creation fails.
      
      Like all other internal users/partners, OdooBot's partner should
      be shared across companies, even if its user is inactive.
      
      Task 2157039
      
      See also 2390ba60
      
      Task 2157039
      
      closes odoo/odoo#49926
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      98b48d92
  19. Apr 21, 2020
  20. Apr 28, 2020
    • Pedro M. Baeza's avatar
      [FIX] base: allow uninstall of modules to upgrade · fd3dc959
      Pedro M. Baeza authored
      
      Commit 8c1bb22e forgot to take into
      account migrations, during a migration it is possible that some modules
      need to be uninstalled because the target version may have removed /
      moved them and since during a migration all modules are set `to
      upgrade`, the previous condition made this impossible for migration
      scripts that use the ORM for module uninstalls (not Odoo's case, mind
      you)
      
      With this commit it is again possible to uninstall modules from a
      migration script during a migration.
      
      closes odoo/odoo#50309
      
      X-original-commit: a7c90a6d
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      Signed-off-by: default avatarAdrian Torres (adt) <adt@odoo.com>
      fd3dc959
  21. Feb 25, 2020
  22. Apr 28, 2020
    • Aurélien Warnon's avatar
      [FIX] crm: always display UTM information on opportunity view · d5b07b7c
      Aurélien Warnon authored
      
      This commit fixes the crm.lead form view to always display UTM information when
      the lead is of type "opportunity".
      
      Before this change, the UTM information (as well as the 'referred' field) were
      only displayed for members of the 'base.group_multi_company', which did not
      make sense on a functional point of view.
      
      The 'company_id' field however, that is in the same form group, is still
      correctly displayed only for members of the 'base.group_multi_company' group.
      
      Task 2237318
      
      closes odoo/odoo#50290
      
      X-original-commit: 69bbe848f50a80f215cf42f619e2128e9302ba0f
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Signed-off-by: default avatarawa-odoo <awa-odoo@users.noreply.github.com>
      d5b07b7c
    • Mathieu Duckerts-Antoine's avatar
      [FIX] web: limit on search panel values · 8d57153b
      Mathieu Duckerts-Antoine authored
      
      Before this commit, if a many2X field with a big comodel was added
      in a search panel, the view using it would crash. For instance that
      problem occured in the kanban view for hr.job, where res.users
      appears as the comodel for the field user_id.
      
      Now, we fix an arbitrary limit of 200 to the numbers of values to fetch
      for each many2X fields in the search panel. This avoid the problem
      mentionned above.
      Furthermore, in case the limit is attained for a field used
      as select="one", the values are displayed without being hierarchized.
      Indeed the limit can leads to gaps in the knowledge of the hierarchy
      and consequently to a bad representation of it.
      
      Task ID: 2154668
      
      closes odoo/odoo#49857
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      8d57153b
  23. Apr 20, 2020
    • jvm-odoo's avatar
      [FIX] base: fix searchpanel not processed independently · f865fa98
      jvm-odoo authored
      
      Issue
      
      	- Install Studio & Employees
      	- Edit Search View
      	- Try to add a field in group by
      
      	RNG Validation Error
      	Invalid attribute studio_groups for element field
      
      Cause
      
      	There is a group on a field in the searchpanel
      	of this view.
      
      	This group is converted into studio_group which
      	is an invalid attribute for the RNG validation.
      
      Solution
      
      	I found that in this case, the check for
      	searchpanel part be validated independently
      	is bypassed because the node tag is not search
      	but searchpanel.
      
      	I added this case in the condition.
      
      OPW-2228602
      
      closes odoo/odoo#49105
      
      Related: odoo/enterprise#10031
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      f865fa98
  24. Apr 28, 2020
Loading