Skip to content
Snippets Groups Projects
  1. Jun 15, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: multicurrency of bank statement reconciliation · 83bb7967
      Andrea Grazioso (agr-odoo) authored
      
      - Activate multicurrency and use a 1.5 rate on USD to EUR (to ease
      calculations)
      - Create two customer invoices in EUR (company is in USD) for two
      different partners (e.g. partner1 and partner2) with only one line and
      an amount of 100 EUR (removed the tax as well so that payment term line
      is 150 USD on receivable account)
      - On the "Invoices Matching Rule" reconciliation model:
      1. Set Amount Matching to 90%
      2. Define any account for the counterpart
      3. Remove "Same Currency Matching"
      4. Ensure "Partner Is Set & Matches" is marked
      
      - Then create a new bank statement with two lines as follows:
      
      1. dummy label, partner1, 140 USD
      2. dummy label, partner2, 100 USD
      
      - When clicking on reconcile,
      
      1. the line for partner1 is not matched
      2. the line for partner2 is matched
      
      This occur because the amount from the invoice is not correctly
      converted in company currency before making the check with the bank
      statement amounts
      
      opw-2261134
      
      closes odoo/odoo#52529
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      83bb7967
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: display "Amount Matching" on "Same currency matching" false · 482ff59f
      Andrea Grazioso (agr-odoo) authored
      - Activate multicurrency and use a 1.5 rate on USD to EUR (to ease
      calculations)
      - Create two customer invoices in EUR (company is in USD) for two
      different partners (e.g. partner1 and partner2) with only one line and
      an amount of 100 EUR (removed the tax as well so that payment term line
      is 150 USD on receivable account)
      - On the "Invoices Matching Rule" reconciliation model:
      1. Set Amount Matching to 90%
      2. Define any account for the counterpart
      3. Remove "Same Currency Matching"
      4. Ensure "Partner Is Set & Matches" is marked
      
      - Then create a new bank statement with two lines as follows:
      
      1. dummy label, partner1, 140 USD
      2. dummy label, partner2, 100 USD
      
      - When clicking on reconcile,
      
      1. the line for partner1 is not matched (although it respects the 90%
      param)
      
      So 'Match amount' is still effective, while it is not shown in the view.
      This should not occur. Removing the invisiblity conditions to avoid
      the inconsistency.
      
      opw-2261134
      482ff59f
    • Odoo's Mergebot's avatar
      [IMP] Timesheets: Back2basics · a54b01fc
      Odoo's Mergebot authored
      
      Add internal project to ease the onboarding
      Move timer to enterprise
      
      taskID: 2217930
      
      --
      I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
      
      closes odoo/odoo#52585
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      a54b01fc
    • william's avatar
      [IMP] l10n_au: add Australian reports menuitem · 38f03c4c
      william authored
      
      Done in commuity so that other modules can inherit from it, but only
      used in enterprise's l10n_au_reports for now.
      
      closes odoo/odoo#49581
      
      Related: odoo/enterprise#9907
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      38f03c4c
    • william's avatar
      [IMP] l10n_au: taxes and fiscal positions for TPAR · 236600fd
      william authored
      Add new taxes and fiscal positions managing the new taxes.
      The taxes set on the services are replaced by the taxes setting the
      right tags on the move lines in case of suppliers that should appear in
      the TPAR.
      In case the ABN was not quoted, a special tax with a negative line
      computes the tax withheld should be used.
      236600fd
    • william's avatar
    • william's avatar
      [IMP] account: improve usability of taxes for goods/services · 9a8fd8ba
      william authored
      Help search taxes more easily by adding an applicability field stating
      that the tax should be used only on goods or on services. If not set,
      can be used anywhere.
      9a8fd8ba
    • Thibault Francois's avatar
      [FIX] timer, hr_timesheet: Fix _compute_display_timer_buttons · 7f83e028
      Thibault Francois authored
      mixin method should not return in the middle of the loop
      Use the value updated on the record instead
      
      super() is called with self at every iteration
      which is not very efficient and can be wrong
      
      Solution call super for each specific record
      and only when needed
      
      write is not a good practice in compute method
      
      X-original-commit: 7e19ed98d18305370b5c14edd3d310cfea5df714
      7f83e028
    • jbm-odoo's avatar
      [MOV] timer: Move to Enterprise · d6a23144
      jbm-odoo authored
      taskId: 2217930
      d6a23144
    • jbm-odoo's avatar
      e7dda3fa
    • Kevin Baptiste's avatar
      [IMP] hr_expense: add image on nocontent helper · 139fbf29
      Kevin Baptiste authored
      
      The nocontent helper now shows a more descriptive image and a link to
      the mobile application.
      
      closes odoo/odoo#52972
      
      Taskid: 2277641
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      139fbf29
    • fw-bot's avatar
      [IMP] account: Allow to extend select of communication_flag · 23d84139
      fw-bot authored
      
      communication_flag in the SELECT is used to determine candidates for automatic reconciliation.
      Extracting this part allows to customize the behaviour implied by the use of match_total_amount and specifically the warning "This parameter will be bypassed in case of a statement line communication matching exactly existing entries" to avoid an automatic reconciliation when the amount doesn't match.
      
      closes odoo/odoo#52731
      
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      23d84139
    • std-odoo's avatar
      [IMP] crm: improve CRM views · 65d89ad1
      std-odoo authored
      
      Purpose
      =======
      Rename "Follow-up" tab into "Extra Information" in the lead form view
      Remove the create option on the language field in the lead form view.
      Align vertically the expected revenue with the PLS in the lead form view.
      
      Add the "Planned revenue" label in the quick create form.
      
      Improve the pipeline activities default filter.
      
      Improve the sale team form view.
      
      Task-2277242
      
      closes odoo/odoo#52965
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      65d89ad1
    • Aymane (ayt)'s avatar
      [IMP] mail, sms: support keydown based change event in char fields using an option · 8df6aec2
      Aymane (ayt) authored
      
      PURPOSE
      
      Avoid flickering and incorrect display of warning box in SMS when updating
      the number to contact.
      
      SPECIFICATIONS
      
      Currently when an user uses composer to send an SMS, number is validated
      at onchange. It leads to two issues
      
        * jump of content as a warning box appears;
        * visual warning displayed after user may have clicked on "Send"
          button, leading to warning not being useful;
      
      We choose to validate number in real time in order to give directly
      a feedback to the user. It also lessens flickering on composer screen.
      This is done by allowing to trigger the 'change' event on key down. This
      requires a specific onchange_on_keydown option to be used on char field.
      
      LINKS
      
      Task ID 2229050
      PR #51159
      
      closes odoo/odoo#52962
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      8df6aec2
    • Thibault Delavallée's avatar
  2. Jun 12, 2020
  3. Jun 15, 2020
    • Michael Mattiello (mcm)'s avatar
      [IMP] web: add options to formatFloatTime · 4197ebfa
      Michael Mattiello (mcm) authored
      
      This commit adds noLeadingZeroHour option to formatFloatTime.
      The noLeadingZeroHour option can be used to format the value
      like 1:30 instead of 01:30
      
      This format behaviour is wanted for fields in web_grid module.
      
      Task 2261853
      
      closes odoo/odoo#52217
      
      Related: odoo/enterprise#10870
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Co-authored-by: default avatarHardik Prajapati <hap@odoo.com>
      Co-authored-by: default avatarMohammed Shekha <msh@openerp.com>
      4197ebfa
    • Laurent Smet's avatar
      [REF] account: journal items reconciliation (part 1/2) · beccf82e
      Laurent Smet authored
      
      This commits refactors the code of the reconciliation, in order to facilitate the process of complex use cases, namely multi-currencies or cash-basis-taxes related (see details below). It also prepares the code for a second refactoring where we will save on each journal items the amount_currency and currency_id field (even in case of operation made in company currency), also in the sake of simplification.
      
      1) Multi-currencies:
      - the account.partial.reconcile model now will have dedicated columns to specify the amount of the partial reconciliation in the debit_line_id currency and the credit_line_id currency. That comes in handy when dealing with journal items having different secondary currencies, but also allows some simplification.
      - residual_amount_currency computation changed accordingly
      - moved models account.full.reconcile and account.partial.reconcile in their dedicated .py file
      
      2) Cash basis taxes
      - cash basis entries now handle correctly rounding errors to make sure the exact amount of gets reported when the reconciliation becomes full.
      - the account for the base amount of cash basis entries has to be set, now, on the company instead of on each cash basis tax.
      - that new 'property' field can be set at the CoA installation via the field property_cash_basis_base_account_id of account.chart.template, or going through the accounting settings.
      
      Was task task: 2243420
      Was PR #50308
      
      Related: odoo/upgrade#1121
      Related: odoo/enterprise#10252
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      beccf82e
    • Laurent Smet's avatar
      [FIX] sale_stock: Fix test depending of 'account' running at_install · f074772d
      Laurent Smet authored
      Since the chart template is loaded post_install, a test depending of the accounting
      must always be run post_install.
      f074772d
  4. May 29, 2020
    • Antoine Prieels's avatar
      [IMP] pos_six: Upgrade TIM JavaScript SDK · 3a2d6984
      Antoine Prieels authored
      
      Upgrade the TIM JavaScript SDK to the latest version (4.6.0).
      The version Six gave us initially (3.8.1) didn't return any error
      message. We now have some (ugly) error messages that could at least
      help the cashier understand where the problem comes from (e.g.
      "timCommunicationFailure", "cardholderStop", etc.).
      
      closes odoo/odoo#52181
      
      Taskid: 2267818
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      3a2d6984
  5. Jun 15, 2020
  6. Jun 11, 2020
    • Thibault Francois's avatar
      [FIX] timer, hr_timesheet: Fix _compute_display_timer_buttons · ab487982
      Thibault Francois authored
      
      mixin method should not return in the middle of the loop
      Use the value updated on the record instead
      
      super() is called with self at every iteration
      which is not very efficient and can be wrong
      
      Solution call super for each specific record
      and only when needed
      
      write is not a good practice in compute method
      
      closes odoo/odoo#52858
      
      X-original-commit: 7e19ed98d18305370b5c14edd3d310cfea5df714
      Related: odoo/enterprise#11100
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      ab487982
  7. Jun 02, 2020
  8. Jun 12, 2020
  9. Jun 15, 2020
  10. Jun 12, 2020
  11. Jun 15, 2020
  12. Jun 03, 2020
  13. Jun 12, 2020
    • Kevin Baptiste's avatar
      [IMP] base: new widgets in partner list view · 6267d597
      Kevin Baptiste authored
      
      Use the new widgets in the list view of res_partner.
      
      closes odoo/odoo#52897
      
      Taskid: 2274257
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      6267d597
    • Nicolas Lempereur's avatar
      [FIX] web_editor: translatable after pasted translation · a8e9a818
      Nicolas Lempereur authored
      
      Fixes same issue as b836e00d but for `<div/>` tag.
      
      When we translate html content, all text and (currently) this subset of
      inline tags are allowed inside translations: 'abbr', 'b', 'bdi', 'bdo',
      'br', 'cite', 'code', 'data', 'del', 'dfn', 'em', 'font', 'i', 'ins',
      'kbd', 'keygen', 'mark', 'math', 'meter', 'output', 'progress', 'q',
      'ruby', 's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time',
      'u', 'var', 'wbr', 'text'.
      
      In b836e00d an issue was fixed that `<p/>` would possibly get inside
      translation when copy-pasting, testing some scenario in current chromium
      browser (83.0) it seems the pasted content contains `<div/>` tags.
      
      opw-2259367
      opw-2260711
      closes #52592
      
      closes odoo/odoo#52932
      
      X-original-commit: eed9fb77
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      a8e9a818
    • Nicolas Lempereur's avatar
      [FIX] sale: have online salesperson default working · b4b0828e
      Nicolas Lempereur authored
      
      A sales order on the website will have as salesperson:
      
      - the contact salesperson, and if not set
      
      But if it's not a new address, the "Online orders" > "Salesperson" is
      not used.
      
      With this changeset, the "Online orders" > "Salesperson" is used by
      default if there is no salesperson on the partner as was the intention.
      
      opw-2274665
      closes #52933
      
      closes odoo/odoo#52939
      
      X-original-commit: 957361a5
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      b4b0828e
    • oco-odoo's avatar
      [IMP] account: reconciliation models: match amls whose partner's name is... · d49d1e44
      oco-odoo authored
      [IMP] account: reconciliation models: match amls whose partner's name is contained in payment reference
      
      Invoice matching rules now also match account.move.lines based on their partner's name : if the statement line's payment reference contains the first name and last name of its patner (in any order, at any position), we match the move line.
      
      closes odoo/odoo#50083
      
      Related: odoo/enterprise#10166
      Related: odoo/upgrade#1317
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      d49d1e44
    • oco-odoo's avatar
      [IMP] account: reconciliation models: introduce partner mapping · faed88d2
      oco-odoo authored
      Partner mapping is a new field defined on invoice matching reconciliation models. It allows defining a mapping between partners and regular expressions. When ran, on a statement line without any partner set, those rules use this mapping to assign a partner to statement lines without any one set, using the regular expressions to match the payment reference of the statement line.
      
      It is important to note that the mapped partner will only be set to the statement line when the reconciliation is actually performed (so, when clicking the validate button, if the matching rule is not auto_reconcile = True), just like with the partner_map.
      faed88d2
    • oco-odoo's avatar
      [IMP] account: introduce a date limit on the application of reconciliation models · 02f7023b
      oco-odoo authored
      This limit is set by the past_months_limit field of reconciliation models. When set, it specifies the number of months in the past to search for matches when using this model. Older move lines will be ignored.
      
      The point of this feature is to exclude too old stuff that we know we won't reconcile (because of import, old misconfiguration, former misuse of some features, ...). It also allows reducing the number of move lines taken into consideration, and solving perfomance issues functionnally by isolating the move lines into smaller periods to reconcile them separately.
      02f7023b
    • oco-odoo's avatar
      [REF] account: reconciliation models: improve performance · cddd132a
      oco-odoo authored
      When opening the reconciliation widget and calling the matching rules, instead of calling all the rules in a single huge SQL query and then iterating on all the statement lines to match them with the results, we now first group the lines per applicable model and each time call a distinct (but way smaller) query for each group, stopping trying other rules for a statement line when one returns candidates. More queries are performed, but they are way more simple.
      cddd132a
Loading