Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master stock split moves kic #30878

Closed
wants to merge 25 commits into from

Commits on May 2, 2019

  1. [IMP] web: make the summary field mandatory on calendar view.

    while creating the event directly from calendar it opens a
    quick create with summary field which is not mandatory.
    
    Task-1917002
    
    closes odoo#31236
    
    Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
    rja-odoo authored and mba-odoo committed May 2, 2019
    Copy the full SHA
    5d877e7 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2019

  1. [IMP] base : Timezone alert

    - icon displayed next to field if user haven't set timezone
    - added relevant tooltip
    - test case added for field not set alert
    
    Task: #1916132
    Closes: odoo#29448
    
    Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
    mgh-odoo authored and VincentSchippefilt committed May 31, 2019
    Copy the full SHA
    a8f64e6 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2019

  1. [IMP] hr_expense: reduce employee visibility on report creation

    When creating or editing an expense report, we have to select the corresponding
    expenses. Since it is constrained that these expenses belong to the same
    employee as the one from the report, it is not practical to see other
    expenses in the dialog when adding them.
    
    This commit extend the domai of the field in the expense report form so
    that it doesn't show expenses from other employees.
    
    task #1999537
    
    closes odoo#33932
    
    Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
    MaxLarue committed Jun 6, 2019
    Copy the full SHA
    00d0789 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2019

  1. [IMP] im_livechat: display country with a known partner name

    When talking via the Live Chat to a known partner,
    should be able to see his country with his name to avoid checking
    the partner view form to get that information.
    
    And improving a test case, in which we're checking for the known partner's
    country name along with his name in the chat window title.
    
    task-1940407
    closes odoo#31346
    
    Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
    kma-odoo authored and mba-odoo committed Jun 10, 2019
    Copy the full SHA
    8922ab7 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2019

  1. [IMP] l10n_be: Add some accounts in the Belgian CoA

    Mainly for payroll purpose
    FlorianGilbert authored and tivisse committed Jun 11, 2019
    Copy the full SHA
    2b5b22d View commit details
    Browse the repository at this point in the history
  2. [IMP] hr_contract: Hide bank account when no partner is set on employee

    As the bank account should be linked to the same partner than the
    address_home_id, it makes no sense to display it if this field is not
    set.
    FlorianGilbert authored and tivisse committed Jun 11, 2019
    Copy the full SHA
    9d758e9 View commit details
    Browse the repository at this point in the history
  3. [IMP] iap: align buy credits to the left

    In the settings, align the link 'buy credits' to the left.
    
    Task-ID: 2007611
    
    closes odoo#34027
    
    Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
    pro-odoo committed Jun 11, 2019
    Copy the full SHA
    047e0ba View commit details
    Browse the repository at this point in the history
  4. [FIX] mrp: display all information for pdf

    mrp_plm in OE uses the child_bom and prod_id from lines obtains
    by _get_pdf_line in the case of a pdf report. It was already pass
    by _get_bom_lines with the html report. It implies that the pdf and
    html report could be different.
    
    Task : 1939278
    Closes odoo#32340
    amoyaux authored and Whenrow committed Jun 11, 2019
    Copy the full SHA
    36b976c View commit details
    Browse the repository at this point in the history
  5. [FIX] mrp: print selected quantity

    When using the print unfolded button, it will print only 1 product
    and not the selected quantity on the report.
    
    Task: 1939278
    
    closes odoo#32340
    
    Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
    amoyaux authored and Whenrow committed Jun 11, 2019
    Copy the full SHA
    2843dcf View commit details
    Browse the repository at this point in the history
  6. [FIX] base: proper removal of xmlid after update

    Context:
    After a module update, the records present in ir_model_data table but not in
    self.pool.loaded_xmlids are considered as no longer needed and should be
    removed.
    An exception is done with noupdate=true entries.
    
    Bug 1:
    Entries with noupdate=NULL are not considered in the evaluation and are ignored
    while it may be worth deleting.
    
    Bug 2:
    Some records with their external id being automatically created are not present
    in self.pool.loaded_xmlids and may get removed after updating a module.
    
    By a lucky coincidence, bug 1 make it so that records targeted by bug 2 are
    ignored and not deleted (the "automagically" created ir.model.data often lack
    a noupdate value).
    
    Fix Bug 1:
    Use a COALESCE to find both records with noupdate=NULL and noupdate=false
    
    Fix Bug 2:
    Depends on the source of the generated external id:
    
    - ir.model:
    The entries created through _reflect_model were not loaded in
    self.loaded_xmlids
    Use the proper ORM method _update_xmlids that correctly populates
    self.pool.loaded_xmlids
    
    - ir.model.category:
    The categories were generated when the db was initalised, doing SQL was not
    avoidable.
    Create the categories in noupdate to avoid it being considered for removal.
    
    - ir.property:
    Are always created in noupdate in data files but in stock_account it was
    manually created without being in noupdate
    
    closes odoo#32881
    
    Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
    
    
    Co-authored-by: Raphael Collet <rco@odoo.com>
    mart-e and rco-odoo committed Jun 11, 2019
    Copy the full SHA
    8f88570 View commit details
    Browse the repository at this point in the history
  7. [IMP] website, *: improve customize dialog no-reload updates

    * base
    
    Before this commit, if an option was customized thanks to the customize
    dialog, the page was not reloaded, only the new scss <link/> elements
    were retrieved and replaced in the DOM.
    There were two problems with this:
    - The <script/> and <style/> tags were also retrieved for no reason (as
    the whole result of t-call-assets was returned)
    - This made use of a deprecated ir.qweb method that we want to remove
    (see odoo#33432)
    
    This commit removes the use of the deprecated method by improving the
    system: only the <link/>'s new URLs are returned on customization.
    
    closes odoo#34040
    
    Signed-off-by: Romain Derie (rde) <rde@odoo.com>
    qsm-odoo committed Jun 11, 2019
    Copy the full SHA
    d7da1d6 View commit details
    Browse the repository at this point in the history
  8. [MERGE] hr_payroll_account: Group accounting entries on payslips

    Purpose
    =======
    
    From a busines point of view
    
    Integration with accounting. A period of pay include journal entries and
    payments. We need to generate both from a batch.
    
    The entries must be grouped
    - 1 line for salaries
    - 1 line for all ATN
    - ...
    
    Payroll generate a Sepa document to send to the bank
    
    + as this part is managed by an accountant add menu entries in the
    accounting app.
    
    From a functional point of view:
    
    Debit and credit accounts are defined on the rules (hr.salary.rule)
    The journal should be defined on the structure to be foced
    
    Specification
    =============
    
    - Usability: the module l10n_be_hr_payroll Should install the accounting
    (right now it install invoicing). On the structure, add a journal m2o.
    
    - On rule: add group accouting items on salary rule
    
    - Improve method 'action_payslip_done' to support multiple entries by move.
    Generate only one big entry with all payslip. Generate one total line total
    for reconciable if group is set.
    Now the payslips are no longer calculated individually,
    all accounting entries are grouped together when the pay slips are
    validated.
    This allows you to have a single accounting entry for all validated
    payroll records.
    
    - Buttons on batch
    - Add 2 buttons on the batch form
    - "Create Entry": it will generate a grouped entries according config of
    the rule
    - "Payment": it generate an xml with all line to send to the bank
    See https://www.odoo.com/documentation/user/11.0/accounting/receivables/customer_payments/payment_sepa.html
    - Payroll directly generate the xml (no payments in accounting)
    
    - Button on payslips: Everything should be done through the payslips
    - create draft entry
    - Create SEPA payment xml
    - Make appear those buttons on the form only if batch is not set
    
    - Belgian rules for the entries:
    - In data for Belgium: https://docs.google.com/spreadsheets/d/1HlnwoExR_O833sij01p7UizSkrMqcm6oF4GvOeIz5lg/edit#gid=0
    example of one of our OD: https://drive.google.com/file/d/0B_hhLmdks1wEdXZSQzJIeVBDOXNiNVctczJzUTBQZVBuNkgw/view?usp=sharing
    
    - Create a Journal salaries (type miscelaneous) and apply all structure on
    this journal
    
    - Create new accounts to manage this.
    
    - Sepa for payroll should be an option in the setting of payroll
    (like in accounting)
    
    - Configure the accounts on the rules when setting a CoA on a company.
    
    Now the payslips are no longer calculated individually,
    all accounting entries are grouped together when the pay slips are
    validated.
    
    This allows you to have a single accounting entry for all validated
    payroll records.
    
    Other notable point in this commit:
    - When installing the Belgian Localisation or when installing the
    Belgian CoA on a company, configure the accounting data (journal,
    accounts on the salary rules)
    - Don't create automatically a payslip batch when creating a payslip
    
    TaskID: 1935200
    
    closes odoo#32924
    
    Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
    robodoo committed Jun 11, 2019
    Copy the full SHA
    b4480db View commit details
    Browse the repository at this point in the history
  9. [ADD] website: ability to restrict groups on website menu

    Courtesy of @Yenthe666
    
    This commit closes odoo#32580
    
    closes odoo#34039
    
    Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
    JKE-be committed Jun 11, 2019
    Copy the full SHA
    b5091c7 View commit details
    Browse the repository at this point in the history
  10. [FIX] point_of_sale: New IoT Box build dependency

    A new dependency (`polib`) has been added in commit:
    a762113
    
    Since it is used in the part of the code that is copied to the IoTBox,
    we need to add it to the list of packages that are installed during the
    build of the image.
    
    closes odoo#33990
    
    Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
    aprieels committed Jun 11, 2019
    Copy the full SHA
    283313a View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2019

  1. [IMP] web,mail: support line break in activity feedback

    Purpose of the commit is when writing feedback on an activity it
    doesn't have a line break in it so feedback was printed in a single line.
    
    After this commit feedback will support line break.
    
    Split the line by '\n' in feedback xml template to avoid t-raw.
    Avoid `preventDefault` in kanban record when hitting <ENTER> on a textarea.
    
    Task #1965831
    
    closes odoo#33212
    
    Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
    var-odoo authored and mgeubelle committed Jun 12, 2019
    Copy the full SHA
    cbd7787 View commit details
    Browse the repository at this point in the history
  2. [IMP] sale_stock: custom group on so line

    Allow to create a specific procurement group for
    each so line. The purpose for different group is to
    have a specific behavior for each delivery depending
    it's group. It also allow to pass extra values to
    procurement group creation that would be common between
    multiple line (instead of passing the common values to
    each lines values argument).
    
    closes odoo#33765
    
    Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
    sergio-teruel authored and amoyaux committed Jun 12, 2019
    Copy the full SHA
    c470c08 View commit details
    Browse the repository at this point in the history
  3. [REM] base, website: remove deprecated code from qweb and bundle

    The _get_asset method was deprecated since df4072b
    Last use of this deprecated method was removed with d7da1d6
    
    Also, remains and to_html were deprecated since 9cd982b
    test_assetsbundle was still using the deprecated method to test..
    
    Closes odoo#33432
    
    Signed-off-by: Romain Derie (rde) <rde@odoo.com>
    rdeodoo committed Jun 12, 2019
    Copy the full SHA
    55e7b70 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2019

  1. [IMP] hr_contract: Sync employee and contract calendars mismatch

    Purpose
    =======
    
    An employee and its current contract should have the same
    calendar. Currently, if the contract's calendar is changed,
    the employee's calendar is not changed.
    In the same way, if a contract is created directly in `open`
    state, the employee's calendar is not changed.
    Finally, the calendar synchronization when the employee
    contract is changed is only done in payroll, for no reason.
    
    Specification
    =============
    
    Fix the three issues described above.
    
    If the employee's calendar is nonetheless manually changed, a warning
    should be displayed if there is a mismatch between both calendars.
    LucasLefevre authored and tivisse committed Jun 13, 2019
    Copy the full SHA
    22437e3 View commit details
    Browse the repository at this point in the history
  2. [IMP] base, model, website[*]: add get_base_url helper

    Before this commit, when we want to make an external url, we need to know
    if the record is related to a specific website or not, and choose base_url
    or website domain.
    
    Now each model have a fonction get_base_url (public to be callable from email
    template, ...) and website override this function to add the website domain if
    the record is website specific.
    
    closes odoo#34089
    
    Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
    JKE-be committed Jun 13, 2019
    Copy the full SHA
    f727cd2 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2019

  1. [IMP] account: find easily draft invoices for a partner

    Requested in issue odoo#28729
    
    closes odoo#34114
    
    Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
    qdp-odoo committed Jun 14, 2019
    Copy the full SHA
    3309ecb View commit details
    Browse the repository at this point in the history
  2. [FIX] packaging: add missing polib packages

    The use of polib as introduced in commit 632fa04.
    The nightly packaging system uses Docker to test the packages and they need to
    be updated when a new library dependency is introduced.
    
    closes odoo#34117
    
    Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
    d-fence committed Jun 14, 2019
    Copy the full SHA
    d858e27 View commit details
    Browse the repository at this point in the history
  3. [IMP] point_of_sale: set sales team from pos config

    When an invoice is set on a pos config, it is not set on the invoice
    generatde from a pos order.
    
    So we are now storing the pos config sale team on the invoice instead of
    the default sales team.
    
    TASK-ID: 1998051
    
    closes odoo#33985
    
    Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
    rhe-odoo authored and pimodoo committed Jun 14, 2019
    Copy the full SHA
    f54bab6 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2019

  1. [ADD] stock: manage exceptions of linked moves

    Added a method split_mts() to split initial demand,
    and create a new move(MTS) if the initial demand is decreased.
    
    Testcase added.
    1) Internal Transfer of Product in MTO
    2) Deliver in 2 steps of Product in MTO
    These test cases ensure that when initial demand is decreased,
    the initial demand in destination move should be split into two,
    one in MTO and one in MTS.
    
    task-1912896
    kirti-c authored and hch-odoo committed Jun 17, 2019
    Copy the full SHA
    dad1ef7 View commit details
    Browse the repository at this point in the history
  2. [ADD] purchase_stock: testcase added

    Purchase Order of Product in MTO:
    This test ensures that when initial demand is decreased,
    the initial demand in destination move should be split into two
    one in MTO and one in MTS.
    
    task-1912896
    kirti-c authored and hch-odoo committed Jun 17, 2019
    Copy the full SHA
    859e013 View commit details
    Browse the repository at this point in the history
  3. [ADD] mrp: testcase added

    Manufacturing Order of Semifinished product in MTO:
    This test ensures that when the quantity to produce is decreased,
    in the semi-finished product,
    the quantity to produce in destination move should be split into two
    one in MTO and one in MTS.
    
    Spliting mechanism added:
    Spliting the initial demand,
    and create a new move(MTS) if the initial demand is decreased.
    
    task-1912896
    kirti-c authored and hch-odoo committed Jun 17, 2019
    Copy the full SHA
    8533d8c View commit details
    Browse the repository at this point in the history