[MIG] stock_move_value_report: Migration to v12

This module adds the possibility to obtain a report with the cost value of a
given operation.
This commit is contained in:
Carlos Roca
2020-09-29 08:44:24 +02:00
committed by CarlosRoca13
parent 2f264468b0
commit a4110177d4
9 changed files with 29 additions and 21 deletions

View File

@@ -14,13 +14,13 @@ Stock Move Cost Value Report
: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/11.0/stock_move_value_report
:target: https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_move_value_report
: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-11-0/stock-logistics-reporting-11-0-stock_move_value_report
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-12-0/stock-logistics-reporting-12-0-stock_move_value_report
: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/11.0
:target: https://runbot.odoo-community.org/runbot/151/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -60,7 +60,7 @@ 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 <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_move_value_report%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_move_value_report%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.
@@ -78,6 +78,7 @@ Contributors
* `Tecnativa <https://www.tecnativa.com>`_:
* David Vidal
* Carlos Roca
Maintainers
~~~~~~~~~~~
@@ -92,6 +93,6 @@ 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.
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/11.0/stock_move_value_report>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_move_value_report>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Move Cost Value Report",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-reporting",
"author": "Tecnativa, "

View File

@@ -1,3 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* David Vidal
* Carlos Roca

View File

@@ -5,9 +5,9 @@
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h1 class="mt0 pull-left">Inventory <t t-esc="inventory.name"/></h1>
<h1 class="mt0 float-left">Inventory <t t-esc="inventory.name"/></h1>
<div class="clearfix"/>
<table class="table table-condensed">
<table class="table table-sm">
<thead>
<tr>
<th><strong>Location</strong></th>

View File

@@ -2,7 +2,7 @@
<odoo>
<template id="stock_move_lines_value">
<table class="table table-condensed mt4 mb0">
<table class="table table-sm mt4 mb0">
<t t-set="has_serial_number" t-value="move_lines.mapped('lot_id')" groups="stock.group_production_lot"/>
<thead>
<tr>
@@ -66,8 +66,8 @@
<template id="stock_move_lines_value_total">
<div class="clearfix">
<div id="total" class="row">
<div class="col-xs-4 pull-right">
<table class="table table-condensed" style="min-width: 250px;max-width: 400px;page-break-inside: avoid;">
<div class="col-xs-4 float-right">
<table class="table table-sm" style="min-width: 250px;max-width: 400px;page-break-inside: avoid;">
<tr class="border-black">
<td><strong>Total</strong></td>
<td class="text-right">
@@ -141,7 +141,7 @@
<div class="clearfix">
<div id="total" class="row">
<div class="col-xs-4 pull-right">
<table class="table table-condensed" style="min-width: 250px;max-width: 400px;page-break-inside: avoid;">
<table class="table table-sm" style="min-width: 250px;max-width: 400px;page-break-inside: avoid;">
<tr class="border-black">
<td><strong>Total operations value balance</strong></td>
<td class="text-right">

View File

@@ -6,7 +6,7 @@
<t t-call="web.external_layout">
<div class="page">
<div class="row">
<div class="col-xs-6">
<div class="col-6">
<div t-if="picking.move_lines and picking.move_lines[0].partner_id and picking.move_lines[0].partner_id.id != picking.partner_id.id">
<span><strong>Delivery Address:</strong></span>
<div t-field="picking.move_lines[0].partner_id"
@@ -30,15 +30,15 @@
</div>
<div t-if="picking.partner_id" name="partner_header">
<div t-field="picking.partner_id"
t-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": True, "phone_icons": True}'/>
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
<p t-if="picking.sudo().partner_id.vat"><t t-esc="picking.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="picking.sudo().partner_id.vat"/></p>
</div>
</div>
</div>
<br/>
<h1 t-field="picking.name" class="mt0 pull-left"/>
<h1 t-field="picking.name" class="mt0 float-left"/>
<div class="clearfix"/>
<table class="table table-condensed">
<table class="table table-sm">
<thead>
<tr>
<th t-if="picking.origin"><strong>Order (Origin)</strong></th>

View File

@@ -5,9 +5,9 @@
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h1 class="mt0 pull-left">Scrap <t t-esc="scrap.name"/></h1>
<h1 class="mt0 float-left">Scrap <t t-esc="scrap.name"/></h1>
<div class="clearfix"/>
<table class="table table-condensed">
<table class="table table-sm">
<thead>
<tr>
<th><strong>Location</strong></th>

View File

@@ -8,6 +8,7 @@
report_type="qweb-pdf"
name="stock_move_value_report.report_stock_move_line_value"
file="stock_move_value_report.report_stock_move_line_value"
paperformat="base.paperformat_euro"
/>
<report
@@ -17,6 +18,7 @@
report_type="qweb-pdf"
name="stock_move_value_report.report_stock_move_value"
file="stock_move_value_report.report_stock_move_value"
paperformat="base.paperformat_euro"
/>
<report
@@ -26,6 +28,7 @@
report_type="qweb-pdf"
name="stock_move_value_report.report_stock_picking_value"
file="stock_move_value_report.report_stock_picking_value"
paperformat="base.paperformat_euro"
/>
<report
@@ -35,6 +38,7 @@
report_type="qweb-pdf"
name="stock_move_value_report.report_stock_scrap_value"
file="stock_move_value_report.report_stock_scrap_value"
paperformat="base.paperformat_euro"
/>
<report
@@ -44,6 +48,7 @@
report_type="qweb-pdf"
name="stock_move_value_report.report_stock_inventory_value"
file="stock_move_value_report.report_stock_inventory_value"
paperformat="base.paperformat_euro"
/>
</odoo>

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/11.0/stock_move_value_report"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-11-0/stock-logistics-reporting-11-0-stock_move_value_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/151/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_move_value_report"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-12-0/stock-logistics-reporting-12-0-stock_move_value_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/151/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to obtain a report with the cost value of a given
operation set like a picking, a scrap, an inventory or even a selection of
moves or move lines.</p>
@@ -408,7 +408,7 @@ be obtained. Keep in mind that only done operations will have a cost value.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_move_value_report%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_move_value_report%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@@ -424,6 +424,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<ul class="simple">
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>David Vidal</li>
<li>Carlos Roca</li>
</ul>
</li>
</ul>
@@ -435,7 +436,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/11.0/stock_move_value_report">OCA/stock-logistics-reporting</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_move_value_report">OCA/stock-logistics-reporting</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>