Skip to content
Snippets Groups Projects
  1. Nov 27, 2022
  2. Nov 24, 2022
  3. Nov 22, 2022
    • MerlinGuillaume's avatar
      [FIX] hr_expense: post expense paid by company · 09274db1
      MerlinGuillaume authored
      
      It is not possible to post the journal entries related to an expense
      paid by the company
      
      Steps to reproduce:
      1. Install Expense
      2. Create an expense payable to company
      3. Set an amount
      4. Create report
      5. Submit report
      6. Approve report
      7. Attempt to post
      8. An error is thrown
      
      Solution:
      Relax the constraint on account.move.line linked to an expense paid by
      the company
      
      Problem:
      The constraint `_check_payable_receivable` in the account module forbids
      to post the journal entries even though they are correct
      
      opw-3038648
      
      closes odoo/odoo#105850
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      09274db1
  4. Nov 20, 2022
  5. Nov 18, 2022
    • Nasreddin Boulif (bon)'s avatar
      [FIX] hr_expense: display right error if no employee found · 488b7123
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install `Expenses` module
        - Go to Settings > Technical > Email > Aliases
        - Edit the `expense` alias
        - Ensure the model is `Expense`
        - Set `Alias Contact Security` to `Everyone`, then save
      
        - Send an e-mail to the expense alias, using an e-mail address not
          referenced on one of the employees.
      
      Issue:
      
        Error in logs related to `currency` variable.
      
      Cause:
      
        Trying to create an expense for a non-existing user, therefore,
        no currency is set.
      
      Solution:
      
        If no user is found, no need to create the expense and let the orm
        raise the error that a required field is not set (field employee on
        expense).
      
      opw-3027350
      
      closes odoo/odoo#106048
      
      X-original-commit: a339caa2
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      Signed-off-by: default avatarNasreddin Boulif (bon) <bon@odoo.com>
      488b7123
  6. Nov 13, 2022
  7. Nov 07, 2022
    • Guillaume (guva)'s avatar
      [FIX] account_check_printing: print check from expense · b588329a
      Guillaume (guva) authored
      
      When printing a check that comes from an expense,
      the check has no reference to the move from which
      the payment has been created.
      
      The reason is that we filter the move by taking
      only outbounds to complete the check informations,
      but moves from an expense are of type entry.
      
      With this commit, we allow moves coming from
      expense to be taken into account by adding a
      check on move.move_type.
      
      opw-3044141
      
      closes odoo/odoo#105023
      
      X-original-commit: 70729dd41cc0050d55758e0fb9ccbed6b06537ea
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      b588329a
  8. Nov 06, 2022
  9. Nov 02, 2022
  10. Oct 30, 2022
  11. Oct 26, 2022
  12. Oct 23, 2022
  13. Oct 21, 2022
    • FrancoisGe's avatar
      [FIX] base: consider `multi_edit="1"` views editable · f974eeb1
      FrancoisGe authored
      Since odoo/odoo#95729
      
      nodes with a `groups=` are completely removed from the views when
      the user is not part of the group, instead of being made invisible.
      
      In that PR, views have been adapted to add back fields, with invisible="1",
      when they were required, for instance when they were used in a domain
      of another field which was still there despite the user is not part
      of the given group.
      
      As `tree` views having `multi_edit="1"` where not considered
      as editable views, the domain of fields in these views were not
      validated:
      - https://github.com/odoo/odoo/blob/1fb8fa16ab7dc298d54f089d7163fb556dbc5fcc/odoo/addons/base/models/ir_ui_view.py#L1460
      - https://github.com/odoo/odoo/blob/1fb8fa16ab7dc298d54f089d7163fb556dbc5fcc/odoo/addons/base/models/ir_ui_view.py#L1321-L1322
      
      while they are well required for the web client,
      in `multi_edit="1"` this is possible to edit relational/many2one field,
      and therefore it will do `name_search` calls using the domain of the
      field, and therefore the fields used in these domains must always
      be present in the views. Without it, a crash in the web client occurs
      when attempting to edit the relational/many2one field.
      
      This revision targets to consider the `multi_edit="1"` tree views
      as editable, to make the field domains validated as they should be.
      
      Hence, views are adapted to add back fields with `invisible="1"`
      when they are required in domains of other fields.
      
      Part-of: odoo/odoo#103743
      f974eeb1
  14. Oct 16, 2022
  15. Oct 11, 2022
    • gawa-odoo's avatar
      [IMP] analytic, *: Json field for analytic distribution · 7064c95a
      gawa-odoo authored
      The `analytic_distribution` field is a Json.
      It was stored temporarily as a char.
      
      Search is not available yet, so we do queries by hand when we need to search on keys.
      
      Also added a constraint on account_analytic_distribution_model,
      so we don't have models with accounts specific to a company when the model has no company or another company.
      It would cause an issue when looking at the models from another company.
      
      Part-of: odoo/odoo#101701
      7064c95a
    • Dylan Kiss (dyki)'s avatar
      [FIX] hr_expense: set the expense account and employee on generated move lines · 066c70e4
      Dylan Kiss (dyki) authored
      
      Currently, when posting accounting entries from an expense report, the accounts set on the expense entries were not taken over in the account move lines. Also, the employee was not set as the vendor of the purchase receipt (account move).
      
      This PR makes sure that both the accounts on the expenses, as well as the vendor (employee) is set on the account move created from an expense report.
      Tests added as well.
      
      closes odoo/odoo#102570
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      066c70e4
  16. Oct 10, 2022
  17. Oct 09, 2022
  18. Oct 08, 2022
    • Pratik Awasthi's avatar
      [FIX] hr_expense: fix subtotal for journal items · d47ca52a
      Pratik Awasthi authored
      Steps:
      Create a expense with product having no cost and having the
      total amount directly added from expense sheet.
      then create an innvoice.
      
      Issue:
      While adding journal lines in hr expense the amount per unit
      was calculated as the total amount of product such as quantity into the
      price per unit inside the invoice.
      
      Cause:
      expense's total_amount was passed as price_unit instead of expense's unit_amount
      and due to that total amount was multiply by qty so wrong value was passed.
      
      Fix:
      If unit_amount of product is non-zero then pass the unit amoun for invoice or
      pass the total_amount if unit_amount does not exist.
      
      task-3000758
      
      Part-of: odoo/odoo#101849
      d47ca52a
    • Kevin Baptiste's avatar
      [FIX] hr_org_chart,hr_expense: fix form UI · 03b7ed51
      Kevin Baptiste authored
      
      This PR adapts the form views since the merge of #100570.
      
      task-3002465
      
      closes odoo/odoo#102600
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      03b7ed51
  19. Oct 06, 2022
  20. Oct 05, 2022
    • Damien Bouvy's avatar
      [IMP] *: adapt to grid form views · 836568df
      Damien Bouvy authored
      
      The recent switch from tables to css grids for form views `group` nodes
      has introduced several inconsistencies/issues with several views accross
      modules - these will not be the last fixes.
      
      closes odoo/odoo#102119
      
      Related: odoo/enterprise#32293
      Signed-off-by: default avatarBouvy Damien (dbo) <dbo@odoo.com>
      836568df
  21. Oct 04, 2022
  22. Oct 03, 2022
  23. Oct 02, 2022
  24. Sep 30, 2022
  25. Sep 29, 2022
  26. Sep 28, 2022
  27. Sep 27, 2022
  28. Sep 25, 2022
  29. Sep 24, 2022
  30. Sep 20, 2022
    • PoMa's avatar
      [IMP] account: Optional bank statements · 4fb09339
      PoMa authored
      
      Bank statements are now optional in accounting. The users add statements directly and can assign statements for control reasons.
      The users can enter end date and end balance real for the statements and attach the bank statement scan.
      
      The system checks if there is a gap (lines without statement) before current statement and warns the user
      with decoration, also we check if the ending balance match the accumulated balance of the last line.
      
      Bank statement lines now show an accumulated balance and can be sorted by drag and drop in the same date, if the user drags a line
      to a position with lines of another date, it simply doesn't have any effect.
      Rename accumulated balance to cumulative balance, a better name
      
      closes odoo/odoo#99092
      
      Task: 2879904
      Related: odoo/upgrade#3906
      Related: odoo/enterprise#30824
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      4fb09339
    • Martin Trigaux's avatar
      [I18N] *: export 16.0 source terms · 1a877276
      Martin Trigaux authored
      
      closes odoo/odoo#100573
      
      Related: odoo/enterprise#31507
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      1a877276
    • gawa-odoo's avatar
      [REF] *: Analytic Apocalypse · 7e340306
      gawa-odoo authored
      
      The goal of this commit is to get rid of the analytic tags as they were confusing, serving tag purposes as well as distribution on analytic accounts.
      
      Everywhere analytic tags were used as a distribution have been replaced with a new widget that will dispatch distribution on analytic accounts. If there was an analytic account field next to the tags, it has been included in the distribution.
      
      Analytic tags that were used simply as information tags have been removed.
      
      To fill the new widget, there are now 2 kind of rules that will help fill and prefill it.
      The first are applicability: previous groups have been removed, and have by replaced by plans. Each account is required to have a plan. These plans define when they are available in the widget: a default applicability per plan and applicability lines that can specify rules following the context of the widget.
      
      The second one are distribution models, that will replace previous default rules but follow the same principles. The accounts (and so the plans) that will be given by the distribution model can override the applicability rules from before.
      
      closes odoo/odoo#98914
      
      Related: odoo/upgrade#3885
      Related: odoo/enterprise#30743
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Co-authored-by: default avatarHabib (ayh) <ayh@odoo.com>
      7e340306
  31. Sep 16, 2022
    • Damien Bouvy's avatar
      [IMP] hr_expense: stop tracking the approver on expenses · e0522e0b
      Damien Bouvy authored
      
      The field is related towards the 'manager' field of the expense sheet,
      which means that when the approver is suggested automatically based
      on hr data, the expense records get written a value for this field
      (which is not in the view) which gets logged as:
      - None -> Mitchell Admin (Approved By)
      
      which seems to suggest that:
      - the expense has been approved (it has not, a report was created)
      - Mitchell Admin has approved: it may not be him (as when approving,
      the 'manager' field does not log who did the approval but who was
      supposed to initially)
      
      Disabling tracking for this field (which contained no actionable
      information at best, and incorrect suggestions at worst) makes this
      problem go away.
      
      closes odoo/odoo#100241
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      e0522e0b
    • tuyenphung's avatar
      [FIX] hr_expense: clean context when click cancel for expense sheet · df4ca7f7
      tuyenphung authored
      
      The context before click button cancel in expense sheet not cleaned yet.
      
      closes odoo/odoo#100288
      
      X-original-commit: 6f8d3d989cc024c8e5b3e9e1a6b2f4af636721d6
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      df4ca7f7
  32. Sep 14, 2022
  33. Sep 13, 2022
Loading