Initialize v14.0 branch

Remove module stock_inventory_valuation_ods
This commit is contained in:
Alexis de Lattre
2020-12-01 10:53:20 +01:00
parent 03a57798b6
commit 9592097487
56 changed files with 51 additions and 139 deletions

View File

@@ -19,5 +19,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
"website": "http://www.akretion.com",
"depends": ["account"],
"data": ["views/account_fiscal_position_view.xml"],
"installable": True,
"installable": False,
}

View File

@@ -20,5 +20,5 @@ This module has been written by Alexis de Lattre from Akretion
'data': [
'account_invoice_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -17,5 +17,5 @@
'wizard/account_invoice_update_view.xml',
'views/account_invoice.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -24,5 +24,5 @@
'wizard/account_invoice_mark_sent_view.xml',
'report/invoice_report.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -14,5 +14,5 @@
# I depend on base_usability only for _report_company_legal_name()
'depends': ['base_usability'],
'data': ['company_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -22,5 +22,5 @@ Base Partner Reference
'website': 'http://www.akretion.com',
'depends': ['base'],
'data': ['partner_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -20,5 +20,5 @@
'views/module_view.xml',
'views/base_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -16,5 +16,5 @@
'data': [
'views/company_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -25,5 +25,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'sale_view.xml',
'stock_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -27,5 +27,5 @@ from Akretion <david.beal@akretion.com>.
'data': [
'menu_view.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -21,5 +21,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'website': 'http://www.akretion.com',
'depends': ['web_m2x_options'],
'post_init_hook': 'web_m2x_options_create',
'installable': True,
'installable': False,
}

View File

@@ -23,5 +23,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'depends': ['intrastat_product', 'l10n_fr_intrastat_service'],
'data': ['product_view.xml'],
'post_init_hook': 'set_intrastat_type_on_products',
'installable': True,
'installable': False,
}

View File

@@ -4,7 +4,7 @@
{
'name': 'MRP Average Cost',
'version': '12.0.1.0.0',
'version': '12.0.1.0.0', # WARNING: we'll probably not port this module to v14, because part of its feature is now provided by the module mrp_account
'category': 'Manufactuing',
'license': 'AGPL-3',
'summary': 'Update standard_price upon validation of a manufacturing order',
@@ -29,5 +29,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'data/mrp_data.xml',
'views/mrp_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -26,5 +26,5 @@ from Akretion <alexis.delattre@akretion.com>.
'depends': ['mrp', 'sale_purchase_no_product_template_menu'],
'auto_install': True,
'data': ['mrp_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/product_template.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -17,5 +17,5 @@
'views/product_views.xml',
'report/mrp_report.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -22,5 +22,5 @@ This module has been written by Alexis de Lattre <alexis.delattre@akretion.com>
'website': 'http://www.akretion.com',
'depends': ['base'],
'data': ['views/partner_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -24,5 +24,5 @@ from Akretion <david.beal@akretion.com>.
'depends': ['point_of_sale', 'sale_purchase_no_product_template_menu'],
'auto_install': True,
'data': ['pos_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -25,5 +25,5 @@ Akretion:
"website": "http://www.akretion.com",
"depends": ["point_of_sale"],
"data": ["report/pos.xml"],
"installable": True,
"installable": False,
}

View File

@@ -24,5 +24,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'security/product_security.xml',
'security/ir.model.access.csv',
],
'installable': True,
'installable': False,
}

View File

@@ -23,6 +23,6 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'data': [
'security/ir.model.access.csv',
],
'installable': True,
'installable': False,
'auto_install': True,
}

View File

@@ -37,4 +37,5 @@ And it reduces the start time of the Point of Sale !
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['product'],
'installable': False,
}

View File

@@ -34,5 +34,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'views/product_template_view.xml',
'views/product_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/product_template.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -25,5 +25,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
'data': [
'stock_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -14,5 +14,5 @@
'data': [
'purchase_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -31,5 +31,5 @@ This module has been written by Alexis de Lattre from Akretion
'views/account_move_line.xml',
'views/account_payment.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -21,5 +21,5 @@ This module has been written by Alexis de Lattre from Akretion
'website': 'http://www.akretion.com',
'depends': ['sale'],
'data': ['sale_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -11,7 +11,7 @@
"author": " Akretion",
"license": "AGPL-3",
"application": False,
"installable": True,
"installable": False,
"external_dependencies": {
"python": [],
"bin": [],

View File

@@ -11,7 +11,7 @@
"author": " Akretion",
"license": "AGPL-3",
"application": False,
"installable": True,
"installable": False,
"external_dependencies": {
"python": [],
"bin": [],

View File

@@ -11,7 +11,7 @@
"author": " Akretion",
"license": "AGPL-3",
"application": False,
"installable": True,
"installable": False,
"external_dependencies": {
"python": [],
"bin": [],

View File

@@ -18,5 +18,5 @@ This module has been written by Alexis de Lattre from Akretion
'website': 'http://www.akretion.com',
'depends': ['sale_stock'],
'data': ['views/sale_order.xml'],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/product_template.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -25,5 +25,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'sale',
],
'data': ['view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -21,5 +21,5 @@ This module has been written by Alexis de Lattre from Akretion
'website': 'http://www.akretion.com',
'depends': ['sale'],
'data': ['sale_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -23,5 +23,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'website': 'http://www.akretion.com',
'depends': ['sale_stock'],
'data': ['sale_stock_view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -20,5 +20,5 @@
'product_view.xml',
'account_invoice_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -14,5 +14,5 @@
'data': [
'wizard/service_qty_update_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/purchase_order.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/sale_order.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -32,5 +32,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'product_view.xml',
'wizard/stock_quantity_history_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -1 +0,0 @@
from . import stock_inventory

View File

@@ -1,25 +0,0 @@
# Copyright 2016-2019 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Stock Inventory Validation ODS',
'version': '12.0.1.0.0',
'category': 'Tools',
'license': 'AGPL-3',
'summary': 'Adds a Py3o ODS report on inventories',
'description': """
Stock Inventory Validation ODS
==============================
This module will add a Py3o ODS report on Stock Inventories.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': "Akretion",
'website': 'http://www.akretion.com',
'depends': ['stock_inventory_valuation', 'report_py3o'],
'data': ['report.xml'],
'installable': True,
}

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="stock_inventory_valuation_ods" model="ir.actions.report">
<field name="name">Inventory Valuation per Location (ODS)</field>
<field name="model">stock.inventory</field>
<field name="report_name">stock.inventory.ods</field>
<field name="report_type">py3o</field>
<field name="py3o_filetype">ods</field>
<field name="module">stock_inventory_valuation_ods</field>
<field name="py3o_template_fallback">inventory.ods</field>
<field name="binding_type">report</field>
<field name="binding_model_id" ref="stock.model_stock_inventory"/>
</record>
<record id="stock_inventory_valuation_grouped_ods" model="ir.actions.report">
<field name="name">Inventory Valuation (ODS)</field>
<field name="model">stock.inventory</field>
<field name="report_name">stock.inventory.grouped.ods</field>
<field name="report_type">py3o</field>
<field name="py3o_filetype">ods</field>
<field name="module">stock_inventory_valuation_ods</field>
<field name="py3o_template_fallback">inventory_grouped.ods</field>
<field name="binding_type">report</field>
<field name="binding_model_id" ref="stock.model_stock_inventory"/>
</record>
</odoo>

View File

@@ -1,33 +0,0 @@
# Copyright 2016-2019 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class StockInventory(models.Model):
_inherit = 'stock.inventory'
def report_group_lines(self):
self.ensure_one()
self._cr.execute("""
SELECT
min(id) AS min_line_id,
product_id,
package_id,
prod_lot_id,
product_uom_id,
standard_price,
sum(product_qty) AS product_qty,
sum(theoretical_qty) AS theoretical_qty
FROM stock_inventory_line
WHERE inventory_id=%s
GROUP BY product_id, package_id, prod_lot_id,
product_uom_id, standard_price
""", (self.id, ))
res = []
silo = self.env['stock.inventory.line']
for row in self._cr.dictfetchall():
row['min_line'] = silo.browse(row['min_line_id'])
res.append(row)
return res

View File

@@ -22,5 +22,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'website': 'http://www.akretion.com',
'depends': ['stock'],
'data': ['view.xml'],
'installable': True,
'installable': False,
}

View File

@@ -18,5 +18,5 @@
'data': [
'views/product_template.xml'
],
'installable': True,
'installable': False,
}

View File

@@ -32,5 +32,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'wizard/stock_quantity_history_view.xml',
'security/ir.model.access.csv',
],
'installable': True,
'installable': False,
}

View File

@@ -14,5 +14,5 @@
'data': [
'views/users_view.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -11,5 +11,5 @@
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['mrp', 'stock_user_default_warehouse_base'],
'installable': True,
'installable': False,
}

View File

@@ -11,5 +11,5 @@
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['purchase', 'stock_user_default_warehouse_base'],
'installable': True,
'installable': False,
}

View File

@@ -11,5 +11,5 @@
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale_stock', 'stock_user_default_warehouse_base'],
'installable': True,
'installable': False,
}

View File

@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'wizard/stock_valuation_xlsx_view.xml',
'views/stock_inventory.xml',
],
'installable': True,
'installable': False,
}

View File

@@ -16,5 +16,5 @@
'data': [
'data/precision.xml',
],
'installable': True,
'installable': False,
}