Skip to content
Snippets Groups Projects
  1. Oct 14, 2019
  2. Oct 12, 2019
  3. Oct 11, 2019
    • Quentin De Paoli's avatar
      [FIX] account: type of entries created by reversals · 25dc2787
      Quentin De Paoli authored
      
      Only invoices/bills should create their equivalent credit notes when reversed (with tax tags coming from the related repartition lines), other kinds of journal entries should be reversed as misc entries, to negate them entirely in the accounting
      
      closes odoo/odoo#38547
      
      X-original-commit: cdb3ccf8
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      25dc2787
    • RomainLibert's avatar
      [FIX] sms: avoid cache miss in compute · dfd25263
      RomainLibert authored
      
      We should always ensure to assign something in a compute method
      
      Since sms_template_id is not required, we have to check that it is set
      before trying to render the template
      
      Also make sure to have a default value in case you don't have a res_id
      
      closes odoo/odoo#38546
      
      X-original-commit: b96bb2a0
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      dfd25263
    • RomainLibert's avatar
      [FIX] sms: avoid crashing when no res_model of res_ids · e5f41040
      RomainLibert authored
      
      sms_composer could crash in case you didn't pass it the active_id,
      active_ids context keys or don't call the default_get
      
      In that case it would try to access `self.env[False]` which would crash
      in the `_compute_recipients_count`
      
      We also have to ensure that we have a default value for `self.res_ids`
      because `literal_eval(False)` will crash
      
      closes odoo/odoo#38545
      
      X-original-commit: 7ed0bd25
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      e5f41040
    • Nans Lefebvre's avatar
      [FIX] sale: small cleanup of line computations · 25004a95
      Nans Lefebvre authored
      
      Initially a forward-port of 5aecd365, which needed f407e60a to work.
      
      The do_in_onchange was removed inbetween, but it is not needed anymore here.
      The issue was caused by the fact that the cache values given for each
      environment, whereas in the new ORM the values are now shared across all.
      
      The other potential issue caught by this test was that the company of the taxes
      could be incorrect. This is problematic for the end user, since relational that
      violates inter-company rules mean that they won't be able to read or write
      the records without sudo. However the model now has _check_company_auto,
      handled by the ORM, so the issue should not arise anymore.
      
      closes odoo/odoo#38543
      
      X-original-commit: 30cf4b37
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      25004a95
    • Nans Lefebvre's avatar
      [FIX] models, test_access_rights: restore normal ACL check · 60534c65
      Nans Lefebvre authored
      
      Because of 4b1cb41c, we might try to read
      the field 'active' on a record on which we can't read fields besides the name.
      This thus triggers an access error where there should not have been.
      
      In particular, this is the case for portal users: most often the records they
      can access point to records that they can't read
      (e.g. the partner of the internal user assigned to the ticket).
      As a result, clicking on any link creates an ACL, and thus redirects to the
      home page.
      
      It turns out that filtered_domain was primarily used on already loaded records,
      typically for the write, so it was assumed that the records could be read
      in the first place.
      However in the use-case of the portal, there is an explicit check on the read
      rights with the portal user, explaining the discrepancy.
      
      Since in the general case filtered_domain should be able to read all fields
      to evaluate the domain, we put it in sudo.
      
      fix co-authored with @rco
      
      closes odoo/odoo#38540
      
      X-original-commit: cff5cc8c
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      60534c65
    • Nans Lefebvre's avatar
      [FIX] ir_model: adapt _inherited_models computation · 212294fe
      Nans Lefebvre authored
      Computed fields need to always be assigned a value now.
      
      X-original-commit: a5fc616c
      212294fe
    • Josse Colpaert's avatar
      [FIX] l10n_co: change name of RUT document type to NIT · 973a5759
      Josse Colpaert authored
      
      The RUT is the Registro Único Tributario;
      the NIT is the Número de Identificación Tributaria.
      
      The number that is used is thus the NIT.
      
      opw 2082599
      
      closes odoo/odoo#38533
      
      X-original-commit: 1db209ac
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      973a5759
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] l10n_co: crash when adding contact · 8a098afa
      Andrea Grazioso (agr-odoo) authored
      
      Install l10n_co,contacts. Open contacts.
      
      Several crash messages will popup because the override in l10n_co of
      res_partner is not computing the 'l10n_co_verification_code' field for
      every record. Changing the implementation to be sure to store some value
      for every record fix the issue.
      
      opw-2082583
      
      closes odoo/odoo#38473
      
      X-original-commit: 2489c405
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      8a098afa
    • jbm-odoo's avatar
      [FIX] web: List editable top select last row · 3fa123d6
      jbm-odoo authored
      
      Before this commit, when we have a list (editable top) in a form
      with some mandatory fields and some existing rows. If we click on
      'add a line', a new empty line appear on the top, then we click on
      the last row, the empty row will disappear and we will have a
      traceback.
      
      After this commit, if we repeat this scenario, we click on the last
      row, we will be able to edit this last row.
      
      closes odoo/odoo#38471
      
      X-original-commit: 996f77b0
      Signed-off-by: default avatarjbm-odoo <jbm-odoo@users.noreply.github.com>
      3fa123d6
  4. Oct 10, 2019
  5. Oct 11, 2019
  6. Oct 12, 2019
  7. Oct 11, 2019
  8. Oct 12, 2019
Loading