Skip to content
Snippets Groups Projects
  1. Jun 15, 2020
    • Odoo's Mergebot's avatar
      [MERGE] mrp, etc: ease production order edition · 69c48add
      Odoo's Mergebot authored
      
      Ease manufacturing order edition in allowing to edit in the tree view.
      Consider that one manufacturing order = 1LN/SN and create back-orders
      in case several of them should be produced in the same MO.
      Ease definition of operations and their different steps by allowing to
      do it in the same BoM screen.
      
      joint work Simon Lejeune <sle@openerp.com>
      joint work Arnold Moyaux <arm@odoo.com>
      joint work William Henrotin <whe@odoo.com>
      joint work =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= <ryv@odoo.com>
      joint work yhu-odoo <yhu@odoo.com>
      joint work "Tiffany Chang (tic)" <tic@odoo.com>
      
      task-2241471
      
      closes odoo/odoo#52949
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      Unverified
      69c48add
    • 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
    • Simon Lejeune's avatar
      [FIX] mrp: bunch of fixes · 249a1a75
      Simon Lejeune authored
      Bunch of last minute fixes including:
      - serial handling in tablet view
      - expected durations and backorders
      - button unplan unlinks the leave but the computed aren't recomputed
        then we need to manually set the date_planned_start/finished
        then we need to not propagate them on the related document
        (move/production) because they are required
      - operation company_id wrongly set
      
      task-2241471
      249a1a75
    • Arnold Moyaux's avatar
      [IMP] mrp: move embeded workorder view to global view · 05607f94
      Arnold Moyaux authored
      task-2241471
      05607f94
    • Arnold Moyaux's avatar
      [REF] mrp: byproduct onchange · 556a9051
      Arnold Moyaux authored
      Create the byproduct moves at the onchange.
      
      task-2241471
      556a9051
    • Arnold Moyaux's avatar
      [REF] mrp: workorders for enterprise · ed7012e8
      Arnold Moyaux authored
      Removed abstract workorder
      
      Removed the integration of expiry wizard in tablet view since it should
      be moved in enterprise in the tablet view implementation (not possible
      to set consumed lot on workorders on community anymore)
      
      Refactor _set_quantity_done to use ORM command in order to not return a
      dict with vals to_create/to_write
      
      task-2241471
      ed7012e8
    • Simon Lejeune's avatar
      [REF] mrp: start next workorder (community) · 40603879
      Simon Lejeune authored
      task-2241471
      40603879
    • Simon Lejeune's avatar
      [FIX] stock: _action_confirm on confirmed move · b435508f
      Simon Lejeune authored
      task-2241471
      b435508f
    • Simon Lejeune's avatar
      [REF] mrp: `check availability` not primary · bffd343d
      Simon Lejeune authored
      This action isn't a mandatory step.
      
      task-2241471
      bffd343d
    • Rémy Voet (ryv)'s avatar
      [IMP] mrp_account: prevent grouping slv from MO · 31d19a8f
      Rémy Voet (ryv) authored
      Prevent the group by product in the stock valuation layer when
      we coming from a MO form via the button "Stock Valution".
      
      task-2241471
      31d19a8f
    • Rémy Voet (ryv)'s avatar
      [IMP] mrp: add a operation menu · 7e71c0f8
      Rémy Voet (ryv) authored
      Add menu to a operation tree.
      
      task-2241471
      7e71c0f8
    • Rémy Voet (ryv)'s avatar
      [REF] mrp: plan fields refactor · 328efb08
      Rémy Voet (ryv) authored
      - The Scheduled Date can't be change if the MO have some planned WO.
      (WO defines the scheduled date of the MO)
      - Now the Scheduled Date 'date_planned_start' is set by default
      with the deadline date if there is or now if there isn't (same than before).
      - For MO, 'plan_date_finished' is now invisible. But keep the field
      because it is used to set the date_expected of finished moves.
      - Change the plan behaviour: Plan depending of the scheduled date if
      this one is bigger than now, else try to plan as soon as possible.
      
      task-2241471
      328efb08
    • William Henrotin's avatar
      [FIX] mrp: do not group bom by type anymore · 518621d7
      William Henrotin authored
      Task : 2241471
      518621d7
    • Rémy Voet (ryv)'s avatar
      [FIX] mrp: fix name of leave related to WO · f647b682
      Rémy Voet (ryv) authored
      Instead using production name + name of WO as name in the
      leave record, use the display name of WO to reprensent uniquely
      the leave (even this record is not really reprensent in views).
      
      task-2241471
      f647b682
    • Rémy Voet (ryv)'s avatar
      [FIX] (purchase_)mrp(_account): fix order stats button MO · 38c37578
      Rémy Voet (ryv) authored
      Task: 2241471
      38c37578
    • yhu-odoo's avatar
      [REF] mrp: update MO according to "To Comsume" · 5311f01e
      yhu-odoo authored
      Previously, when we upate the "Quantity to Produce" on a MO, we update
      the components to consume according to the BOM we use. After this
      commit, we now update the components according their current number set
      on the MO.
      
      For example, if we have a MO to use x component A to produce y product
      B. When we update the number y to z, the number of A we want to consume
      will be updated from x to x / y * z, regardless of the setting on the
      BOM. If multiple components are used, all components will be updated
      according to this rule.
      
      Task: 2241471
      5311f01e
    • Tiffany Chang (tic)'s avatar
      [REF] mrp: update MO lock/unlock settings · 48672703
      Tiffany Chang (tic) authored
      This commit updates 4 features related to a MO being locked/unlocked.
      
      1. Manufacturing orders are by default unlocked. A new configuration
      setting has been added so users can set the default to be locked.
      This setting only applies to new manufacturing orders after the setting
      has been changed.
      
      2. A MO now shows the same button options regardless if it is
      locked/unlocked ('scrap', 'cancel', 'unreserve')
      
      3. Workers can always change "Consumed Quantities"/"Produced" when
      clicking on a component/finished product line unless state=Done and MO
      is_locked. This includes adding new components/finished products.
      
      4. Workers can now change "To Consume" quantity when clicking on a
      component line, unlocked, and not in states 'Done' or 'Cancel'.
      
      This is part of specification 6-Lock/Unlock of overall Editing in MO
      form and backorders task.
      
      Task: 2241471
      48672703
    • Arnold Moyaux's avatar
      [FIX] stock: No warning when consuming a dozen SN · acb3150c
      Arnold Moyaux authored
      On a move line tracked by serial number. Moving two pieces for
      a serial number trigger a warning explaining that the quantity
      should be 1 or 0. However modify the unit of measure from unit to
      dozen is not a problem.
      
      task-2241471
      acb3150c
    • Arnold Moyaux's avatar
      [FIX] mrp: add move with different company · 71964c20
      Arnold Moyaux authored
      Currently the related on the property use the company in the context and
      not on the current object. It implies that a raw move created on the MO
      form view will have the wrong destination location and trigger the
      check company error.
      
      Use a compute instead of related.
      
      task-2241471
      71964c20
    • Simon Lejeune's avatar
      [REF] mrp: move `plan_from` to a wizard · b0a905a4
      Simon Lejeune authored
      task-2241471
      b0a905a4
    • Rémy Voet (ryv)'s avatar
      [FIX] purchase_mrp: fix count MO in case of MTO · 421d2d21
      Rémy Voet (ryv) authored
      task-2241471
      421d2d21
    • Arnold Moyaux's avatar
      [REF] mrp: workorder onchange · 182f1b8e
      Arnold Moyaux authored
      Create the workorders at the onchange when setting the bom and not a
      "plan" anymore.
      
      task-2241471
      182f1b8e
    • Rémy Voet (ryv)'s avatar
      [REF] mrp: review consumption allowing · 5011ec52
      Rémy Voet (ryv) authored
      Now, by default, a Bill of Material have a flexible
      consumption instead of strict consumption. Also
      add new consumption choice: a flexible consumption
      but with a warning when the bom isn't respected.
      Also, now, the strict (a new warning option) consumption
      is checked only when we try to mark as done the MO.
      
      task-2241471
      5011ec52
    • William Henrotin's avatar
      [REF] mrp: no more produce wizard · 0e2765f5
      William Henrotin authored
      Use a view similar as the pickings one.
      
      task-2241471
      0e2765f5
    • Simon Lejeune's avatar
      [REF] stock: allow using _set_quantity_done in onchanges · 1b642128
      Simon Lejeune authored
      task-2241471
      1b642128
    • Simon Lejeune's avatar
      [FIX] stock: move: allow writing the same quantity done · 93156e7c
      Simon Lejeune authored
      ..even if multiple move lines already exists.
      
      task-2241471
      93156e7c
    • Simon Lejeune's avatar
      [FIX] stock: quantity done compute · 02359fd7
      Simon Lejeune authored
      mismatch on the move lines used by the compute.
      
      task-2241471
      02359fd7
    • Simon Lejeune's avatar
      [FIX] stock: done quantity and reservation compute in onchange · bd250eb1
      Simon Lejeune authored
      Following v13, newId records are instances of NewID and are ignored from
      any `read_group` call. This breaks an important feature: when encoding a
      stock move line (thus, in an onchange context), the `quantity_done` field
      of stock move should be recomputed.
      
      task-2241471
      bd250eb1
    • Rémy Voet (ryv)'s avatar
      [REF] mrp: backorder mechanism · 53252608
      Rémy Voet (ryv) authored
      Allow to "backorder" a production, meaning create another manufacturing
      order with the quantity remaining to produce. We also use the
      reservation of the first order on the next ones by using
      `post_inventory` on the first one and moving the newly created stock
      moves to the backorder.
      
      We introduce a wizard similar to the one in stock.
      Backorders have a sub-sequence.
      Backorders are linked together through the procurement group.
      We allow creating a backorder even if workorders are running by closing
      them, the backorder will call `button_plan` and create its own.
      
      task-2241471
      53252608
    • Simon Lejeune's avatar
      [REF] mrp: remove routing model · c660770e
      Simon Lejeune authored
      Set the operations directly on the Bill of Material.
      Duplicate the demo data where a routing was shared.
      Adapt the tests.
      
      Remove the following feature:
          - set the same routing on parent and kit child bom
          - when planning, if the component of the kit have the same operation
            than a component of the parent bom, merge these operations
      
      task-2241471
      c660770e
    • 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>
      Unverified
      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
Loading