Skip to content

Commit

Permalink
[MIG] stock_picking_report_valued: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestotejeda committed Jun 25, 2019
1 parent 2a1073f commit 2d114bd
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 41 deletions.
93 changes: 61 additions & 32 deletions stock_picking_report_valued/README.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

===========================
Stock Picking Report Valued
===========================
=====================
Valued Picking Report
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_picking_report_valued
:alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-12-0/stock-logistics-reporting-12-0-stock_picking_report_valued
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/151/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Add amount information to Delivery Slip report.
You can select at partner level if picking list report must be valued or not.
If the picking is done it's valued with quantity done, otherwise the picking
is valued with reserved quantity.

**Table of contents**

.. contents::
:local:

Configuration
=============

Expand All @@ -25,14 +49,9 @@ To get the stock picking valued report:
#. Create a Sale Order with stockable products a *Valued picking* able
customer.
#. Confirm the Sale Order.
#. Click on *Deliveries* stat button.
#. Click on *Delivery* stat button.
#. Go to *Print > Delivery Slip*.


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/151/11.0

Known issues / Roadmap
======================

Expand All @@ -41,40 +60,50 @@ Known issues / Roadmap
Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/stock-logistics-reporting/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_valued%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Images
------
Authors
~~~~~~~

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Tecnativa

Contributors
------------
~~~~~~~~~~~~

* `Avanzosc <http://www.avanzosc.es>`_:

* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Oihane Crucelaegui <oihane.crucelaegi@avanzosc.es>
* Carlos Dauden <carlos.dauden@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Luis M. Ontalba <luis.martinez@tecnativa.com>
* Oihane Crucelaegui

Maintainer
----------
* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Antonio Espinosa
* Carlos Dauden
* David Vidal
* Luis M. Ontalba
* Ernesto Tejeda

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_picking_report_valued>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions stock_picking_report_valued/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
{
"name": "Valued Picking Report",
"summary": "Adding Valued Picking on Delivery Slip report",
"version": "11.0.1.0.3",
"version": "12.0.1.0.0",
"author": "Tecnativa, "
"Odoo Community Association (OCA)",
"website": "https://www.tecnativa.com",
"website": "https://github.com/OCA/stock-logistics-reporting",
"category": "Warehouse Management",
"license": "AGPL-3",
"depends": [
Expand Down
5 changes: 0 additions & 5 deletions stock_picking_report_valued/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,22 @@ class StockMoveLine(models.Model):
sale_line = fields.Many2one(
related='move_id.sale_line_id', readonly=True,
string='Related order line',
related_sudo=True, # See explanation for sudo in compute method
)
currency_id = fields.Many2one(
related='sale_line.currency_id', readonly=True,
string='Sale Currency',
related_sudo=True,
)
sale_tax_id = fields.Many2many(
related='sale_line.tax_id', readonly=True,
string='Sale Tax',
related_sudo=True,
)
sale_price_unit = fields.Float(
related='sale_line.price_unit', readonly=True,
string='Sale price unit',
related_sudo=True,
)
sale_discount = fields.Float(
related='sale_line.discount', readonly=True,
string='Sale discount (%)',
related_sudo=True,
)
sale_tax_description = fields.Char(
compute='_compute_sale_order_line_fields',
Expand Down
2 changes: 2 additions & 0 deletions stock_picking_report_valued/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#. Go to *Customers > (select one of your choice) > Sales & Purchases*.
#. Set *Valued picking* field on.
12 changes: 12 additions & 0 deletions stock_picking_report_valued/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* `Avanzosc <http://www.avanzosc.es>`_:

* Oihane Crucelaegui

* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Antonio Espinosa
* Carlos Dauden
* David Vidal
* Luis M. Ontalba
* Ernesto Tejeda
4 changes: 4 additions & 0 deletions stock_picking_report_valued/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Add amount information to Delivery Slip report.
You can select at partner level if picking list report must be valued or not.
If the picking is done it's valued with quantity done, otherwise the picking
is valued with reserved quantity.
1 change: 1 addition & 0 deletions stock_picking_report_valued/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* If the picking is not reserved, values aren't computed.
7 changes: 7 additions & 0 deletions stock_picking_report_valued/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To get the stock picking valued report:

#. Create a Sale Order with stockable products a *Valued picking* able
customer.
#. Confirm the Sale Order.
#. Click on *Delivery* stat button.
#. Go to *Print > Delivery Slip*.
4 changes: 2 additions & 2 deletions stock_picking_report_valued/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<xpath expr="//page[@name='sales_purchases']//field[@name='user_id']" position="after">
<field name="valued_picking"
attrs="{'invisible': [('customer', '=', False)]}"/>
</field>
</xpath>
</field>
</record>

Expand Down

0 comments on commit 2d114bd

Please sign in to comment.