Skip to content

Commit 69dacef

Browse files
authored
TA#45949 add module stock_account_visibility (#66)
* Init repository * TA#45949 Account Stock Visibility
1 parent 65a6743 commit 69dacef

File tree

10 files changed

+100
-0
lines changed

10 files changed

+100
-0
lines changed

.docker_files/main/__manifest__.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"category": "Other",
1212
"summary": "Install all addons required for testing.",
1313
"depends": [
14+
"stock_account_visibility",
1415
],
1516
"installable": True,
1617
}

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS
1818

1919
USER odoo
2020

21+
COPY stock_account_visibility /mnt/extra-addons/stock_account_visibility
22+
2123
COPY .docker_files/main /mnt/extra-addons/main
2224
COPY .docker_files/odoo.conf /etc/odoo

stock_account_visibility/README.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Account Stock Properties Visibility
2+
===================================
3+
4+
This module change the visibility of Account Stock Properties.
5+
6+
Before
7+
------
8+
When a category is in manual valuation, the accounting property fields of the stock are not visible.
9+
10+
.. image:: static/description/Account_Stock_Prop_Hidden.png
11+
12+
13+
After
14+
-----
15+
The module makes the fields `Stock Valuation Account`, `Stock Journal` and `Stock Input Account` visible even if the `Inventory Valuation` is Manuel.
16+
Then adds a text bloc for information purpose.
17+
18+
.. image:: static/description/Account_Stock_Prop_Visible.png
19+
20+
Contributors
21+
------------
22+
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
23+
24+
More information
25+
----------------
26+
* Meet us at https://bit.ly/numigi-com

stock_account_visibility/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# © 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# © 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
3+
{
4+
'name': 'Stock Account Visibility',
5+
'version': '1.0.0',
6+
'category': 'Accounting',
7+
'summary': 'Manage the Visibility of Account Stock Properties',
8+
'author': 'Numigi',
9+
'depends': [
10+
'stock_account',
11+
],
12+
'data': [
13+
'views/stock_account_view.xml',
14+
],
15+
'application': False,
16+
'license': 'LGPL-3',
17+
}

stock_account_visibility/i18n/fr.po

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_account_visibility
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2022-08-02 21:38+0000\n"
10+
"PO-Revision-Date: 2022-08-02 21:38+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: stock_account_visibility
19+
#: model_terms:ir.ui.view,arch_db:stock_account_visibility.view_category_property_form
20+
msgid ""
21+
"When Inventory Valuation is manual, The Account used on Vendor Bills is the "
22+
"Stock Input Account. In this contexte, the Valuation Account is only for "
23+
"Information Purpose."
24+
msgstr ""
25+
"En valorisation manuelle, pour tout article stockable, le compte de charge "
26+
"affecté sur la facture fournisseur est le compte du champ 'Compte d'entrée "
27+
"en stock'. Le 'compte de valorisation' sert pour fin d'information uniquement, "
28+
"pour les traitements manuels comptables de fin de période pour la valorisation du stock."
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<odoo>
3+
<record id="view_category_property_form" model="ir.ui.view">
4+
<field name="name">product.category.stock.property.form.inherit</field>
5+
<field name="model">product.category</field>
6+
<field name="inherit_id" ref="stock_account.view_category_property_form"/>
7+
<field name="arch" type="xml">
8+
<group name="account_stock_property" position="attributes">
9+
<attribute name="attrs">{}</attribute>
10+
</group>
11+
<field name="property_stock_account_output_categ_id" position="attributes">
12+
<attribute name="attrs">{'invisible':[('property_valuation', '=', 'manual_periodic')]}</attribute>
13+
</field>
14+
<xpath expr="//div[@role='status']" position="after">
15+
<div colspan="2" class="alert alert-info mt16" role="status" attrs="{'invisible':[('property_valuation', '!=', 'manual_periodic')]}">
16+
When Inventory Valuation is manual, The Account used on Vendor Bills is the Stock Input Account. In this contexte, the Valuation Account is only for Information Purpose.
17+
</div>
18+
</xpath>
19+
<xpath expr="//div[@role='status']" position="attributes">
20+
<attribute name="attrs">{'invisible':[('property_valuation', '=', 'manual_periodic')]}</attribute>
21+
</xpath>
22+
</field>
23+
</record>
24+
</odoo>

0 commit comments

Comments
 (0)