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 clean reporting hch #23041

Closed
wants to merge 11 commits into from

Commits on Dec 21, 2018

  1. [ADD] stock: Report Forecasted Inventory

    Purpose of this task:
    Show forecasted inventory for all products.
    Before this commit we have to search forecasted inventory for each product individually.
    There is no way to check all the forecasted inventory in a single menu.
    
    After this commit:
    User can search for all forecasted inventory from the menu 'Forecasted Inventory'.
    Features added.
    1. Menu for Forecasted Inventory has been added.
    2. List and pivot view for Forecasted Inventory added.
    3. Default measures has been set to 'Quantity' and 'Cumulative Quantity'.
    4. Pivot view is grouped by product (vertical) and by weeks (horizontal).
    
    Why query changes required:
    User can search for all forecasted inventory from the menu 'Forecasted Inventory'.
    Features added.
    1. lines only those containing any stock move will be shown.
    2. Reference field added.
    3. We remove 'week' from the query, instead of we fetch all the data according to 'date_expected',
    and we create three group_bys (i.e. group by date, week and month)
    so it is easy for the user to check report according to day, week and month.
    
    This commit is related to task 36088.
    hch-odoo authored and msh-odoo committed Dec 21, 2018
    Copy the full SHA
    827f9cf View commit details
    Browse the repository at this point in the history
  2. [IMP] web: group by according to view

    Before this commit:
    specific group by for pivot view/graph view is not working.
    
    After this commit:
    apply group by differently for different view using keys like 'pivot_row_groupby', 'graph_groupbys'
    i.e. if pivot_row_group by is pass in context then group by according to this in pivot view not default one
    
    give highest priority to pivot_row_groupby/graph_groupbys then group_by and then field have type from action context for default groupby in pivot/graph view
    
    related Task: #1848289,odoo#36088
    
    Co-authored-by: Mohammed Shekha <msh@openerp.com>
    Co-authored-by: Suraj Shukla <suh@odoo.com>
    3 people committed Dec 21, 2018
    Copy the full SHA
    4c10556 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    810693d View commit details
    Browse the repository at this point in the history
  4. [IMP] stock: add rule for multi-company.

    Before this commit :
    User can see all the records if those are not belong to its company.
    After this commit:
    User can see the records of its own and its child company.
    
    This commit is related to task_id : 36088.
    hch-odoo authored and msh-odoo committed Dec 21, 2018
    Copy the full SHA
    de00af5 View commit details
    Browse the repository at this point in the history
  5. [IMP] stock: code optimization

    hch-odoo authored and msh-odoo committed Dec 21, 2018
    Copy the full SHA
    4675ba4 View commit details
    Browse the repository at this point in the history
  6. [IMP] stock: code optimization

    hch-odoo authored and msh-odoo committed Dec 21, 2018
    Copy the full SHA
    f955d9b View commit details
    Browse the repository at this point in the history
  7. [IMP] stock: code optimization.

    hch-odoo authored and msh-odoo committed Dec 21, 2018
    Copy the full SHA
    1019a59 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    4adcc04 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    b6b2090 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2018

  1. Copy the full SHA
    b06caed View commit details
    Browse the repository at this point in the history
  2. [IMP]web: Apply pivot_row_groupby and graph_groupbys when given on fi…

    …lter in new search view
    msh-odoo committed Dec 25, 2018
    Copy the full SHA
    dbb2aac View commit details
    Browse the repository at this point in the history