[IMP] pre-commit: first run on whole repo

This commit is contained in:
Kevin Khao
2021-11-26 18:54:38 +03:00
parent a04b8980e1
commit 167aefee13
289 changed files with 6020 additions and 4170 deletions

View File

@@ -4,12 +4,12 @@
{
'name': 'Stock Valuation XLSX',
'version': '14.0.1.0.0',
'category': 'Tools',
'license': 'AGPL-3',
'summary': 'Generate XLSX reports for past or present stock levels',
'description': """
"name": "Stock Valuation XLSX",
"version": "14.0.1.0.0",
"category": "Tools",
"license": "AGPL-3",
"summary": "Generate XLSX reports for past or present stock levels",
"description": """
Stock Valuation XLSX
====================
@@ -33,15 +33,15 @@ You can access this XLSX stock valuation report either:
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': "Akretion",
'website': 'http://www.akretion.com',
'depends': ['stock_account'],
'data': [
'security/ir.model.access.csv',
'wizard/stock_valuation_xlsx_view.xml',
'wizard/stock_variation_xlsx_view.xml',
'views/stock_inventory.xml',
'views/stock_expiry_depreciation_rule.xml',
],
'installable': True,
"author": "Akretion",
"website": "https://github.com/OCA/odoo-usability",
"depends": ["stock_account"],
"data": [
"security/ir.model.access.csv",
"wizard/stock_valuation_xlsx_view.xml",
"wizard/stock_variation_xlsx_view.xml",
"views/stock_inventory.xml",
"views/stock_expiry_depreciation_rule.xml",
],
"installable": True,
}

View File

@@ -1,22 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 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).
-->
<odoo>
<record id="view_inventory_form" model="ir.ui.view">
<field name="name">xlsx.stock.inventory.form</field>
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
<field name="inherit_id" ref="stock.view_inventory_form" />
<field name="arch" type="xml">
<button name="action_validate" position="after">
<button name="%(stock_valuation_xlsx_action)d" type="action"
states="done" string="XLSX Valuation Report"
context="{'default_source': 'inventory', 'default_inventory_id': active_id}"/>
<button
name="%(stock_valuation_xlsx_action)d"
type="action"
states="done"
string="XLSX Valuation Report"
context="{'default_source': 'inventory', 'default_inventory_id': active_id}"
/>
</button>
</field>
</record>

File diff suppressed because it is too large Load Diff

View File

@@ -1,46 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 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).
-->
<odoo>
<record id="stock_valuation_xlsx_form" model="ir.ui.view">
<field name="name">stock.valuation.xlsx.form</field>
<field name="model">stock.valuation.xlsx</field>
<field name="arch" type="xml">
<field name="arch" type="xml">
<form string="Stock valuation XLSX">
<div name="help">
<p>The generated XLSX report has the valuation of stockable products located on the selected stock locations (and their childrens).</p>
<p
>The generated XLSX report has the valuation of stockable products located on the selected stock locations (and their childrens).</p>
</div>
<group name="setup">
<field name="state" invisible="1"/>
<field name="categ_ids" widget="many2many_tags"/>
<field name="warehouse_id"/>
<field name="location_id"/>
<field name="source" widget="radio"/>
<field name="inventory_id" attrs="{'invisible': [('source', '!=', 'inventory')], 'required': [('source', '=', 'inventory')]}"/>
<field name="stock_date_type" attrs="{'invisible': [('source', '!=', 'stock')], 'required': [('source', '=', 'stock')]}" widget="radio"/>
<field name="past_date" attrs="{'invisible': ['|', ('source', '!=', 'stock'), ('stock_date_type', '!=', 'past')], 'required': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"/>
<field name="standard_price_date" attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'present')]}" widget="radio"/>
<field name="state" invisible="1" />
<field name="categ_ids" widget="many2many_tags" />
<field name="warehouse_id" />
<field name="location_id" />
<field name="source" widget="radio" />
<field
name="inventory_id"
attrs="{'invisible': [('source', '!=', 'inventory')], 'required': [('source', '=', 'inventory')]}"
/>
<field
name="stock_date_type"
attrs="{'invisible': [('source', '!=', 'stock')], 'required': [('source', '=', 'stock')]}"
widget="radio"
/>
<field
name="past_date"
attrs="{'invisible': ['|', ('source', '!=', 'stock'), ('stock_date_type', '!=', 'past')], 'required': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"
/>
<field
name="standard_price_date"
attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'present')]}"
widget="radio"
/>
<field name="categ_subtotal" />
<field name="has_expiry_date" invisible="1"/>
<field name="split_by_lot" attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}" groups="stock.group_production_lot"/>
<field name="split_by_location" attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"/>
<field name="apply_depreciation" groups="stock.group_production_lot" attrs="{'invisible': ['|', '|', ('split_by_lot', '=', False), ('has_expiry_date', '=', False), '&amp;', ('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"/>
<field name="has_expiry_date" invisible="1" />
<field
name="split_by_lot"
attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"
groups="stock.group_production_lot"
/>
<field
name="split_by_location"
attrs="{'invisible': [('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"
/>
<field
name="apply_depreciation"
groups="stock.group_production_lot"
attrs="{'invisible': ['|', '|', ('split_by_lot', '=', False), ('has_expiry_date', '=', False), '&amp;', ('source', '=', 'stock'), ('stock_date_type', '=', 'past')]}"
/>
</group>
<group name="done" states="done" string="Result">
<field name="export_file" filename="export_filename"/>
<field name="export_filename" invisible="1"/>
<field name="export_file" filename="export_filename" />
<field name="export_filename" invisible="1" />
</group>
<footer>
<button name="generate" type="object" states="setup"
class="btn-primary" string="Generate"/>
<button special="cancel" string="Cancel" class="btn-default" states="setup"/>
<button special="cancel" string="Close" class="btn-default" states="done"/>
<button
name="generate"
type="object"
states="setup"
class="btn-primary"
string="Generate"
/>
<button
special="cancel"
string="Cancel"
class="btn-default"
states="setup"
/>
<button
special="cancel"
string="Close"
class="btn-default"
states="done"
/>
</footer>
</form>
</field>
@@ -55,7 +95,7 @@
<!-- Replace native menu, to avoid user confusion -->
<record id="stock_account.menu_valuation" model="ir.ui.menu">
<field name="action" ref="stock_valuation_xlsx.stock_valuation_xlsx_action"/>
<field name="action" ref="stock_valuation_xlsx.stock_valuation_xlsx_action" />
<field name="name">Stock Valuation XLSX</field>
<field name="sequence">0</field>
</record>