Skip to content
Snippets Groups Projects
  1. May 08, 2020
  2. May 07, 2020
    • Samuel Degueldre's avatar
      [FIX] web_editor: increase precision of number-string conversion · e09120a1
      Samuel Degueldre authored
      
      Previously, when converting a number to a string we only kept 3
      decimals, it turns out that when converting back and forth between rem
      and pixels, we were losing enough precision that we had inexact pixel
      values shown to the end user for odd number of pixels, even with the
      default rem value of 16px.
      
      This commit increases the precision to 5 to work around this issue and
      allow us to convert exactly between rem and pixels at the default
      16px/rem.
      
      task-2248360
      
      closes odoo/odoo#50881
      
      X-original-commit: fdce273f4fe72a9e2555acecad3c2989110dac1a
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      e09120a1
  3. May 08, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] pos_discount: correctly get discount amount · f0afe742
      Andrea Grazioso (agr-odoo) authored
      
      Activate a language which has comma as decimal separator
      Go into POS settings, activate 'Global Discount'.
      Open POS session, add some product and use global discount.
      Input some number with decimals and confirm.
      Discount will be not applied
      
      This occur because of javascript type coercion:
       Math.min(100, "11.0") -> 11
       Math.min(100, "11,0") -> NaN
      
      So in locales with thousands separator the statement would produce
      different results. Forcing float parsing fix the issue
      
      opw-2243482
      
      closes odoo/odoo#50900
      
      X-original-commit: 84a6c2a5
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      f0afe742
    • Laurent Stukkens (LTU)'s avatar
      [IMP] web: Allow hide/show stroke in signature · 68584351
      Laurent Stukkens (LTU) authored
      
      In the sign application, it appeared that when using the default signature
      in a signature SignItem that was higher the stroke at the bottom was doubbled.
      
      This was caused by the fact that the bottom stroke is always added to the
      template and that the default signature image had it already.
      
      In order to solve this, we have added a setting 'show-stroke' that allows
      controlling the stroke presence in the signature.
      
      Task Id 2216067
      Closes #48529
      
      Related odoo/enterprise#9538
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      68584351
    • Laurent Stukkens (LTU)'s avatar
      [FIX] web_tour: Correct misplaced tip info mode in iframe · 7c005030
      Laurent Stukkens (LTU) authored
      * The info mode was misplaced when running into iframe.
      
      * Added static position to the tip when anchor position is fixed
      
      Task Id 2216067
      Closes #48529
      7c005030
  4. May 07, 2020
  5. Apr 30, 2020
    • Jigar Vaghela's avatar
      [ADD] base_vat: add vat validation for india · d78d4684
      Jigar Vaghela authored
      
      closes odoo/odoo#48430
      
      Related: odoo/upgrade#997
      Related: odoo/enterprise#9500
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      d78d4684
    • Jigar Vaghela's avatar
      [IMP] l10n_in: Improve Demo data · b842af6c
      Jigar Vaghela authored
      b842af6c
    • Jigar Vaghela's avatar
      [ADD] l10n_in : ADD Reverse Charge Tax · 4774f97e
      Jigar Vaghela authored
          Reverse charge is a mechanism under which the recipient of the goods or services is liable to pay the tax instead of the provider of the goods and services.
      4774f97e
    • Jigar Vaghela's avatar
      [IMP] l10n_in_purchase: Simplify GST purchase · 34c631d3
      Jigar Vaghela authored
          GST Treatment:
             * Is show that how This purchase is treated in GST
             * Set default value in customer
             * This is help in GST retrun filing.
             * Value of treamtmnet as below
                  - Registered Business - Regular
                  - Registered Business - Composition
                  - Unregistered Business
                  - Consumer
                  - Overseas
                  - Special Economic Zone
                  - Deemed Export
             * GSTIN is required in
                  - Registered Business - Regular
                  - Registered Business - Composition
                  - Special Economic Zone
                  - Deemed Export
      34c631d3
    • Jigar Vaghela's avatar
      [IMP] l10n_in_sale: Simplify GST sale order · d8376362
      Jigar Vaghela authored
          GST Treatment:
             * Is show that how This sale order is treated in GST
             * Set default value in customer
             * This is help in GST retrun filing.
             * Value of treamtmnet as below
                  - Registered Business - Regular
                  - Registered Business - Composition
                  - Unregistered Business
                  - Consumer
                  - Overseas
                  - Special Economic Zone
                  - Deemed Export
             * GSTIN is required in
                  - Registered Business - Regular
                  - Registered Business - Composition
                  - Special Economic Zone
                  - Deemed Export
      
          Shipping GSTIN:
             * GST identification number or GST number
             * There can be multiple GSTIN for a single person, being an assessee under the Income Tax Act for every State or Union Territory in which such person operates from
             * So When specific invoice and delivery addresses is enabled then user can enter able to enter "Shipping GSTIN" on shipping address of partner
             * Add Validate of this number using regular expression
      d8376362
    • Jigar Vaghela's avatar
      [IMP] l10n_in: Simplify GST invoice · 205430ff
      Jigar Vaghela authored
      GST Treatment:
         * Is show that how This invoice or partner is treated in GST
         * Set default value in customer
         * This is help in GST retrun filing.
         * Value of treamtmnet as below
      	- Registered Business - Regular
      	- Registered Business - Composition
      	- Unregistered Business
      	- Consumer
      	- Overseas
      	- Special Economic Zone
      	- Deemed Export
         * GSTIN is required in
      	- Registered Business - Regular
      	- Registered Business - Composition
      	- Special Economic Zone
      	- Deemed Export
      
      GSTIN:
         * GST identification number or GST number
         * There can be multiple GSTIN for a single person, being an assessee under the Income Tax Act for every State or Union Territory in which such person operates from
         * Add Validate of this number using regular expression
      
      remove field l10n_in_export_type and l10n_in_import_export becouse it's covered by GST Treatment
      remove field l10n_in_partner_vat becouse not use anyware.
      205430ff
  6. May 08, 2020
  7. May 07, 2020
  8. May 05, 2020
  9. May 07, 2020
  10. May 05, 2020
    • Jeremy Kersten's avatar
      [FIX] website: _compute_pricelist_id compute on correct website · 541205fb
      Jeremy Kersten authored
      
      Before this fix, in case you try to compute the pricelist_id with another
      context, the computed value is set to the website with the new context,
      and so another cache.
      
      Now with compute for the env from self, and assign the computed value with the
      website with ot without another context.
      
      Before this commit, you was unable to add fields pricelist_id or currency_id in
      a tree view.
      
      opw-2233122
      
      closes odoo/odoo#50705
      
      X-original-commit: 2f83c5ba
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      541205fb
  11. May 07, 2020
  12. May 05, 2020
  13. May 07, 2020
    • Lucas Lefèvre's avatar
      [FIX] resource: Adjust time span to calendar · b674e440
      Lucas Lefèvre authored
      
      The method `_get_work_interval` has several problems:
      
      1) The name is not self explanatory in any way
      
      2) It should be defined on the `resource.mixin`
      
      3) It simply does not work (as described in its docstring).
         Here is a simplified example (only concerned about hours):
         Currently, given two attendances: 8-12 and 13-17,
         with parameters start=9 and end=18 it returns (9, 17)
         while it should return (8, 17).
      
         This leads to strange behaviors in the planning app:
         Given employee A with calendar 8-17 and employee B 8-16.
         Create a planning slot and assign employee A: the start and end times
         are set to 8-17.
         Then assign employee B, the start and end times are correcly set to 8-16.
         Now reassign employee A: the start and end times are not set to 8-17.
      
      Task 2229296
      
      closes odoo/odoo#50804
      
      X-original-commit: 7dfab89bc0025cf6424f00b6992fef1f42463ffe
      Related: odoo/enterprise#10426
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      Signed-off-by: default avatarlul-odoo <LucasLefevre@users.noreply.github.com>
      b674e440
Loading