-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee1e50f
commit 96a9371
Showing
20 changed files
with
1,074 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
================= | ||
Inventory Closing | ||
================= | ||
|
||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-inventory-closing | ||
2. Add the path to this repository in your configuration (addons-path) | ||
3. Update the module list (Must be on developer mode) | ||
4. Go to menu *Apps -> Apps -> Main Apps* | ||
5. Search For *Inventory Closing* | ||
6. Install the module | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/open-synergy/ssi-inventory-closing/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smash it by providing detailed and welcomed feedback. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Usamah <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://simetri-sinergi.id/logo.png | ||
:alt: PT. Simetri Sinergi Indonesia | ||
:target: https://simetri-sinergi.id.com | ||
|
||
This module is maintained by the PT. Simetri Sinergi Indonesia. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright 2023 OpenSynergy Indonesia | ||
# Copyright 2023 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import ( | ||
models, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2023 OpenSynergy Indonesia | ||
# Copyright 2023 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Inventory Closing", | ||
"version": "14.0.1.2.0", | ||
"website": "https://simetri-sinergi.id", | ||
"author": "PT. Simetri Sinergi Indonesia, OpenSynergy Indonesia", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"depends": [ | ||
"ssi_stock_account", | ||
"ssi_product", | ||
"ssi_master_data_mixin", | ||
"ssi_transaction_confirm_mixin", | ||
"ssi_transaction_done_mixin", | ||
"ssi_transaction_cancel_mixin", | ||
"ssi_transaction_date_duration_mixin", | ||
"ssi_m2o_configurator_mixin", | ||
], | ||
"data": [ | ||
"security/ir_module_category_data.xml", | ||
"security/res_group_data.xml", | ||
"security/ir.model.access.csv", | ||
"security/ir_rule_data.xml", | ||
"data/ir_sequence_data.xml", | ||
"data/sequence_template_data.xml", | ||
"data/policy_template_data.xml", | ||
"data/approval_template_data.xml", | ||
"menu.xml", | ||
"views/inventory_closing_type_views.xml", | ||
"views/inventory_closing_views.xml", | ||
], | ||
"demo": [], | ||
"images": [], | ||
} |
27 changes: 27 additions & 0 deletions
27
ssi_inventory_closing_queue/data/approval_template_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 OpenSynergy Indonesia | ||
Copyright 2023 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="inventory_closing_approval_template" model="approval.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_inventory_closing" /> | ||
<field name="sequence" eval="100" /> | ||
<field name="computation_method">use_python</field> | ||
<field name="python_code">result = True</field> | ||
<field name="validate_sequence" eval="1" /> | ||
</record> | ||
<record | ||
id="inventory_closing_approval_template_detail" | ||
model="approval.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_approval_template" /> | ||
<field name="approver_selection_method">use_group</field> | ||
<field | ||
name="approver_group_ids" | ||
eval="[(6,0,[ref('inventory_closing_validator_group')])]" | ||
/> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 OpenSynergy Indonesia | ||
Copyright 2023 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="inventory_closing_sequence" model="ir.sequence"> | ||
<field name="name">Inventory Closing</field> | ||
<field name="code">inventory_closing</field> | ||
<field name="prefix">IC/%(range_year)s/</field> | ||
<field eval="1" name="number_next" /> | ||
<field eval="1" name="number_increment" /> | ||
<field name="padding" eval="6" /> | ||
<field name="use_date_range" eval="1" /> | ||
<field eval="False" name="company_id" /> | ||
</record> | ||
</data> | ||
</odoo> |
173 changes: 173 additions & 0 deletions
173
ssi_inventory_closing_queue/data/policy_template_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 OpenSynergy Indonesia | ||
Copyright 2023 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="inventory_closing_policy_template" model="policy.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_inventory_closing" /> | ||
<field | ||
name="state_field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','state')]" | ||
/> | ||
<field name="sequence" eval="100" /> | ||
<field name="python_code">result=True</field> | ||
</record> | ||
|
||
<!-- confirm --> | ||
<record | ||
id="inventory_closing_policy_template_detail_confirm" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','confirm_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','=','draft')]" | ||
/> | ||
<field name="restrict_user" eval="1" /> | ||
<field name="computation_method">use_group</field> | ||
<field name="group_ids" eval="[(6,0,[ref('inventory_closing_user_group')])]" /> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- approve --> | ||
<record | ||
id="inventory_closing_policy_template_detail_approve" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','approve_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','=','confirm')]" | ||
/> | ||
<field name="restrict_user" eval="0" /> | ||
<field name="restrict_additional" eval="1" /> | ||
<field name="additional_python_code">result = False | ||
if env.user.id in document.active_approver_user_ids.ids: | ||
result = True | ||
</field> | ||
</record> | ||
|
||
<!-- reject --> | ||
<record | ||
id="inventory_closing_policy_template_detail_reject" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','reject_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','=','confirm')]" | ||
/> | ||
<field name="restrict_user" eval="0" /> | ||
<field name="restrict_additional" eval="1" /> | ||
<field name="additional_python_code">result = False | ||
if env.user.id in document.active_approver_user_ids.ids: | ||
result = True | ||
</field> | ||
</record> | ||
|
||
<!-- restart approval --> | ||
<record | ||
id="inventory_closing_policy_template_detail_restart_approval" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','restart_approval_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','=','confirm')]" | ||
/> | ||
<field name="restrict_user" eval="1" /> | ||
<field name="computation_method">use_group</field> | ||
<field name="group_ids" eval="[(6,0,[ref('inventory_closing_validator_group')])]" /> | ||
<field name="restrict_additional" eval="1" /> | ||
<field name="additional_python_code">result = False | ||
if not document.approval_template_id: | ||
result = True | ||
</field> | ||
</record> | ||
|
||
<!-- cancel --> | ||
<record | ||
id="inventory_closing_policy_template_detail_cancel" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','cancel_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','in',['draft','confirm','done'])]" | ||
/> | ||
<field name="restrict_user" eval="1" /> | ||
<field name="computation_method">use_group</field> | ||
<field name="group_ids" eval="[(6,0,[ref('inventory_closing_validator_group')])]" /> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- restart --> | ||
<record | ||
id="inventory_closing_policy_template_detail_restart" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','restart_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','in',['cancel','reject'])]" | ||
/> | ||
<field name="restrict_user" eval="1" /> | ||
<field name="computation_method">use_group</field> | ||
<field name="group_ids" eval="[(6,0,[ref('inventory_closing_validator_group')])]" /> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- manual number --> | ||
<record | ||
id="inventory_closing_policy_template_detail_manual_number" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="inventory_closing_policy_template" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','manual_number_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','inventory_closing'),('value','=','draft')]" | ||
/> | ||
<field name="restrict_user" eval="1" /> | ||
<field name="computation_method">use_group</field> | ||
<field name="group_ids" eval="[(6,0,[ref('inventory_closing_validator_group')])]" /> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
</data> | ||
</odoo> |
28 changes: 28 additions & 0 deletions
28
ssi_inventory_closing_queue/data/sequence_template_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 OpenSynergy Indonesia | ||
Copyright 2023 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="inventory_closing_sequence_template" model="sequence.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_inventory_closing" /> | ||
<field name="sequence" eval="100" /> | ||
<field name="initial_string">/</field> | ||
<field | ||
name="sequence_field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','name')]" | ||
/> | ||
<field | ||
name="date_field_id" | ||
search="[('model_id.model','=','inventory_closing'),('name','=','date')]" | ||
/> | ||
<field name="computation_method">use_python</field> | ||
<field name="python_code">result=True</field> | ||
<field name="sequence_id" ref="inventory_closing_sequence" /> | ||
<field name="sequence_selection_method">use_sequence</field> | ||
<field name="add_custom_prefix" eval="0" /> | ||
<field name="add_custom_suffix" eval="0" /> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 OpenSynergy Indonesia | ||
Copyright 2023 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) --> | ||
<odoo> | ||
<data> | ||
|
||
<menuitem | ||
id="menu_inventory_closing_config" | ||
name="Inventory Closing" | ||
parent="stock.menu_stock_config_settings" | ||
sequence="20" | ||
/> | ||
|
||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 2023 OpenSynergy Indonesia | ||
# Copyright 2023 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import ( | ||
inventory_closing_type, | ||
inventory_closing, | ||
stock_valuation_layer, | ||
stock_move, | ||
) |
Oops, something went wrong.