diff --git a/stock_picking_report_valued/README.rst b/stock_picking_report_valued/README.rst index 99d4caa..b9bb0b8 100644 --- a/stock_picking_report_valued/README.rst +++ b/stock_picking_report_valued/README.rst @@ -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 +===================== +Valued Picking Report +===================== -=========================== -Stock Picking Report Valued -=========================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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 ============= @@ -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 ====================== @@ -41,40 +60,50 @@ Known issues / Roadmap Bug Tracker =========== -Bugs are tracked on `GitHub 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 `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ -* Pedro M. Baeza -* Antonio Espinosa -* Oihane Crucelaegui -* Carlos Dauden -* David Vidal -* Luis M. Ontalba +* `Avanzosc `_: -Maintainer ----------- + * Oihane Crucelaegui + +* `Tecnativa `_: + + * 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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_report_valued/__manifest__.py b/stock_picking_report_valued/__manifest__.py index deacb9b..ed0de43 100644 --- a/stock_picking_report_valued/__manifest__.py +++ b/stock_picking_report_valued/__manifest__.py @@ -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": [ diff --git a/stock_picking_report_valued/models/stock_move_line.py b/stock_picking_report_valued/models/stock_move_line.py index 92e8143..6c6029d 100644 --- a/stock_picking_report_valued/models/stock_move_line.py +++ b/stock_picking_report_valued/models/stock_move_line.py @@ -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', diff --git a/stock_picking_report_valued/readme/CONFIGURE.rst b/stock_picking_report_valued/readme/CONFIGURE.rst new file mode 100644 index 0000000..489332d --- /dev/null +++ b/stock_picking_report_valued/readme/CONFIGURE.rst @@ -0,0 +1,2 @@ +#. Go to *Customers > (select one of your choice) > Sales & Purchases*. +#. Set *Valued picking* field on. diff --git a/stock_picking_report_valued/readme/CONTRIBUTORS.rst b/stock_picking_report_valued/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..dcbbe9f --- /dev/null +++ b/stock_picking_report_valued/readme/CONTRIBUTORS.rst @@ -0,0 +1,12 @@ +* `Avanzosc `_: + + * Oihane Crucelaegui + +* `Tecnativa `_: + + * Pedro M. Baeza + * Antonio Espinosa + * Carlos Dauden + * David Vidal + * Luis M. Ontalba + * Ernesto Tejeda diff --git a/stock_picking_report_valued/readme/DESCRIPTION.rst b/stock_picking_report_valued/readme/DESCRIPTION.rst new file mode 100644 index 0000000..6a0269d --- /dev/null +++ b/stock_picking_report_valued/readme/DESCRIPTION.rst @@ -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. diff --git a/stock_picking_report_valued/readme/ROADMAP.rst b/stock_picking_report_valued/readme/ROADMAP.rst new file mode 100644 index 0000000..2ef668b --- /dev/null +++ b/stock_picking_report_valued/readme/ROADMAP.rst @@ -0,0 +1 @@ +* If the picking is not reserved, values aren't computed. diff --git a/stock_picking_report_valued/readme/USAGE.rst b/stock_picking_report_valued/readme/USAGE.rst new file mode 100644 index 0000000..7ee36a2 --- /dev/null +++ b/stock_picking_report_valued/readme/USAGE.rst @@ -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*. diff --git a/stock_picking_report_valued/views/res_partner_view.xml b/stock_picking_report_valued/views/res_partner_view.xml index c17da3a..f2a5200 100644 --- a/stock_picking_report_valued/views/res_partner_view.xml +++ b/stock_picking_report_valued/views/res_partner_view.xml @@ -6,10 +6,10 @@ res.partner - + - +