Skip to content
Snippets Groups Projects
  1. Dec 12, 2018
  2. Jan 25, 2019
    • Jeremy Kersten's avatar
      [FIX] sale: use team_id of saleman before team_id of partner · 1599d0bc
      Jeremy Kersten authored
      Before this commit, when we crate a sale, we use the team_id of the partner
      even if a saleman has been assigned from another team.
      
      Now we use the saleteam of the saleman if it exists before the saleteam directly.
      
      Task-phung
      
      Fixed case:
      Partner are created from lead assigned to Partnership
      So team_id on partner are Partnership
      After, we assign a saleman to the partner from AM
      At each SO, the team_id is Partnership instead of AM
      
      closes odoo/odoo#30549
      1599d0bc
  3. Jan 27, 2019
  4. Jan 25, 2019
    • RomainLibert's avatar
      [FIX] hr_fleet: count car only once when address_home_id = user_id.partner_id · 6c522c82
      RomainLibert authored
      If employee had the same address_home_id as it's user_id.partner_id then
      we counted twice the same car.
      
      Eg: specify address_home_id on demo user using it's partner, system
      would have counted two cars. But demo has only one car
      
      closes odoo/odoo#30546
      6c522c82
    • Lucas Lefèvre's avatar
      [FIX] hr_fleet: fix access rights with employees without user · 607fd635
      Lucas Lefèvre authored
      Commit 55a48e34 added support for computing car count and car reports
      for employees without a linked user..
      It is computed by accessing the field `address_home_id` (res.partner) to find the driver.
      However, this field is private.
      Therefore a user in `fleet_group_manager` has an ACL error when accessing
      an employee form view which contains a stat button with the car count.
      
      This commit compute the car count and the car report
      with `address_home_id` as sudo to fix the issue.
      
      Also fix a typo in attribute `groups` instead of `group` and fix its
      value from `fleet_manager` to `fleet.fleet_group_manager`.
      607fd635
  5. Jan 23, 2019
  6. Jan 18, 2019
    • Jigar Vaghela's avatar
      [IMP] l10n_in: Improve Indian localization to supports GSTR-1 reports · 451fd6cc
      Jigar Vaghela authored
      Purpose
      =======
      
      GST Invoice Report required to show tax amount product line wise.
      This Tax amount is divided in CESS and IGST or CGST and SGST.
      
      Improve GST Tax, Tax Groups and Tag.
      
      Reverse charge under GST
      As per GST rules tax will have to be paid directly by the receiver to the Government instead of the supplier.
      
      Reseller(E-commerce) under GST
      If you sale through ecommerce then need to specify ecommerce GSTIN.
      
      Import/Export goods under GST
      If you export the goods then need to specify
          -Export Type
          -Shipping bill number
          -Shipping bill date
          -Shipping port code
      
      Credit or Debit Note
      If u give Credit or Debit note then need to specify Refund reason.
      
      Place of Supply is the state of customer.
      
      Added GSTR reports
      
      GSTR Invoice report covers below GSTR-1 sections(this report is grouped by tax rate and journal entries
      B2B, B2CL, B2CS, EXP, CDNR and CDNUR
      
      GSTR payment report
      This report is covered under GSTIR-1 section called AT(advance payment) and ATADJ(advance payment adjustment)
      
      GSTR HSN report(it is based on the product HSN code)
      
      GSTR Exempted report(it is based on nil rated and exempt tax)
      This report is covered under GSTIR-1 section EXEMP
      
      Added demo data to to have GSTR-1 reports out of the box
      
      Solution
      ========
      
      fetched values of CESS, IGST, CGST and SGST amount in invoice report from tax groups
      
      added new taxes called "Nil Rated" and "Exempt" and also added it's related tax groups and accounts
      added tax tags related to GST tax percentage
      
      Set Reverse charge in negative tax
      
      Improved account move line creation grouping machenism:
      Now, move lines related to tax are grouped by product and uom instead of grouping them just by tax(this is for better reporting)
      
      closes odoo/odoo#30332
      451fd6cc
    • Jigar Vaghela's avatar
      [REF] account, invoice: allow to alter grouping key of account.invoice.tax · 8c0d6208
      Jigar Vaghela authored
        Needed for the indian GST, or any localization that adds fields on account.tax.
      
        Was part of PR #26262
      8c0d6208
    • Jigar Vaghela's avatar
      [REF] account: add _prepare method in bank stmt reconciliation · 32f39fe2
      Jigar Vaghela authored
        _prepare_payment_vals() will prepare the dict of values to create the payment from a statement line.
      
        Was part of PR #26262
      32f39fe2
    • Jigar Vaghela's avatar
      [FIX] account: invoice validation with complex taxes with children · 7c4fe6b3
      Jigar Vaghela authored
      The field tax_ids on account.move.line created from an invoice was incorrect in case of a tax with children with type_tax_use!= 'none'. Hence, the tax_base_amount and the whole tax statement was wrong in that specific case.
      Was part of (although not related) the PR #26262
      7c4fe6b3
    • Jigar Vaghela's avatar
      [REF] point_of_sale: refactoring of journal entries creation · 86e90fcb
      Jigar Vaghela authored
       * Allows to overwrite and change the account.move.line values that will be created upon a pos session closing for example to add additional data introduced by a localization module.
       * Small refactoring of _create_account_move() method: All the parameter values of _create_account_move could easily be found from pos.order recordset itself, hence removed them and adapted call to it everywhere.
      
      Part of PR #26262 related to the indian GST
      86e90fcb
    • Martin Geubelle's avatar
      [FIX] web, *: restore `context` key on search view field · 212ca456
      Martin Geubelle authored
      Since the control panel refactoring, the `context` key on a `<field>` in the
      search view was ignored (like <field name='pricelist' context="{'pricelist': self}".
      
      The previous behaviour has been reintroduced and modified a little bit.
      
      For way too long, an ugly hack was used to get a numerical value in self. This
      ugly hack was still present but wasn't working since 8.0 (at least for the
      numerical value). A counter hack (see odoo/odoo@4a81e8a) was then applied to
      avoid really using a `selection` widget. To get even more confused, `self` was
      replaced by the *last* user-specified value.
      
      Well, it's time to clean this mess.
      
      Now, the `self` key is replaced by an array of user-specified values (by value,
      we mean the field value i.e. the `id` for a many2one, or the `key` for a
      selection field).
      
      Task 1902826
      
      closes odoo/odoo#30368
      212ca456
    • Martin Geubelle's avatar
      [FIX] web: allow to build the doc · 02d3655c
      Martin Geubelle authored
      A wrong docstring was preventing the doc to build correctly.
      02d3655c
  7. Jan 23, 2019
  8. Jan 22, 2019
  9. Jan 21, 2019
  10. Jan 18, 2019
  11. Jan 17, 2019
    • Christophe Simonis's avatar
      4aa153e6
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      17adccd9
    • Julien (juc) Castiaux's avatar
      [FIX] web_editor: save less file · 71c4c139
      Julien (juc) Castiaux authored
      Modifying less files and saving them using the web editor can raise
      and error. The error is due to the way odoo save the modified file.
      
      It extends the view containing the URL of the file by filtering views
      related to the xml bundle id and keeping those that have the said URL
      in their content.
      
      This lookup fails to give just one result in case there are multiple
      file containing the said URL. This fix change the filter from a
      bare `if url in view.arch` to a correct xpath lookup.
      
      The "/web/static/src/variables.less" less file was one of the
      problematic files.
      
      opw-1889794
      
      closes odoo/odoo#30186
      71c4c139
    • Nans Lefebvre's avatar
      [FIX] base: disable prefetching during module uninstall #2 · ba41c3c1
      Nans Lefebvre authored
      Create any module that inherit 'res.lang'.
      Define any new field that is added with that inheritance.
      Install that module. Then try to uninstall it. Traceback ensues.
      
      When trying to write 'state': 'uninstalled' on the module,
      the prefetching tries to read a column that has been deleted
      by the _module_data_uninstall.
      
      opw 1917369
      
      closes odoo/odoo#30176
      ba41c3c1
    • Jorge Pinna Puissant's avatar
      [FIX] payment: Acquired deployed in production · e6b5a0e2
      Jorge Pinna Puissant authored
      Before this commit, in the config bar (Sales or Invoicing) when you configure a payment
      acquirer,  it was deployed in test mode, and not in production mode. Note that, the config
      bar wizard asks for the production credentials.
      
      Now, when you configure a payment acquirer, from the config bar, the acquirer is deployed
      directly in production mode.
      
      opw-1918412
      
      closes odoo/odoo#30319
      e6b5a0e2
    • Denis Ledoux's avatar
      [FIX] res_partner: a partner is portal if he has no employee users · 8865d631
      Denis Ledoux authored
      Currently, a partner is considered a portal
      if he has no users
      or
      if at least one of his users is portal.
      
      This causes problems if an employee has two users,
      one portal, one employee
      and gets notified in a thread (e.g. @ Marc demo):
      The email sent won't contain the action buttons (e.g. view opportunity)
      because the employee is considered as portal.
      
      A partner of an employee can have multiple users
      linked if at some point two partners were merged,
      and the partners had each a user, one a portal
      and the other an employee.
      
      This revision changes this behavior,
      to consider a user as not portal (employee)
      if one of its users is not a portal (an employee).
      
      This is uniform with to the behavior of the
      `share` field of `res.users`,
      which is `True` when the user is part of the group employee.
      ```
      user.share = not user.has_group('base.group_user')
      ```
      
      opw-1914103
      
      closes odoo/odoo#30314
      8865d631
    • Nicolas Martinelli's avatar
      [FIX] stock_account: ctx after group by · 4da16124
      Nicolas Martinelli authored
      - Set valuation to FIFO
      - Make a PO for a product
      - Validate the picking
      - Execute the Inventory Valuation report
      - Apply group by Category
      - Click on the 'Valuation' info button
      
      A traceback occurs because of the usual `group_by` context key which is
      kept.
      
      opw-1918915
      
      closes odoo/odoo#30313
      4da16124
    • Lucas Perais (lpe)'s avatar
      [FIX] crm: test lead from email needs second company · 0dd38282
      Lucas Perais (lpe) authored
      Because of a742813c36fc8cdf4e41c72e00944b6901be6017.
      Apparently when crm is installed alone, there is only one company
      
      closes odoo/odoo#30312
      0dd38282
Loading