mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[MIG] stock_picking_report_valued: Migration to 12.0
This commit is contained in:
@@ -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
|
||||
<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
|
||||
------------
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* 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>
|
||||
* `Avanzosc <http://www.avanzosc.es>`_:
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
* Oihane Crucelaegui
|
||||
|
||||
* `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.
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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',
|
||||
|
||||
2
stock_picking_report_valued/readme/CONFIGURE.rst
Normal file
2
stock_picking_report_valued/readme/CONFIGURE.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
#. Go to *Customers > (select one of your choice) > Sales & Purchases*.
|
||||
#. Set *Valued picking* field on.
|
||||
12
stock_picking_report_valued/readme/CONTRIBUTORS.rst
Normal file
12
stock_picking_report_valued/readme/CONTRIBUTORS.rst
Normal file
@@ -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
stock_picking_report_valued/readme/DESCRIPTION.rst
Normal file
4
stock_picking_report_valued/readme/DESCRIPTION.rst
Normal file
@@ -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
stock_picking_report_valued/readme/ROADMAP.rst
Normal file
1
stock_picking_report_valued/readme/ROADMAP.rst
Normal file
@@ -0,0 +1 @@
|
||||
* If the picking is not reserved, values aren't computed.
|
||||
7
stock_picking_report_valued/readme/USAGE.rst
Normal file
7
stock_picking_report_valued/readme/USAGE.rst
Normal file
@@ -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*.
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user