Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ssi_account_receivable_penalty] 14.0.1.0.0 #23

Open
wants to merge 3 commits into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: edb24fc
_commit: b7bb2ff
_src_path: gh:open-synergy/ssi-addons-repo-template
dependency_installation_mode: OCA
generate_requirements_txt: true
include_aeroo_report: false
include_wkhtmltopdf: false
odoo_version: 14.0
rebel_module_groups: []
repo_description: null
repo_description: ssi-financial-accounting
repo_name: ssi-financial-accounting
repo_slug: ssi-financial-accounting
travis_apt_packages: []
Expand Down
16 changes: 1 addition & 15 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,13 @@ on:

jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9.7"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
if [ "$newfiles" != "" ] ; then
echo "Please check-in the following files:"
echo "$newfiles"
exit 1
fi
24 changes: 24 additions & 0 deletions .github/workflows/pre-commit.yml.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml (rejected hunks)
@@ -13,3 +18,20 @@ jobs:
with:
- python-version: "3.9.7"
- - uses: pre-commit/[email protected]
+ python-version: "3.9.7"
+ - name: Get python version
+ run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
+ - uses: actions/cache@v1
+ with:
+ path: ~/.cache/pre-commit
+ key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
+ - name: Install pre-commit
+ run: pip install pre-commit
+ - name: Run pre-commit
+ run: pre-commit run --all-files --show-diff-on-failure --color=always
+ - name: Check that all files generated by pre-commit are in git
+ run: |
+ newfiles="$(git ls-files --others --exclude-from=.gitignore)"
+ if [ "$newfiles" != "" ] ; then
+ echo "Please check-in the following files:"
+ echo "$newfiles"
+ exit 1
+ fi
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ repos:
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://gitlab.com/PyCQA/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# ssi-financial-accounting

None
ssi-financial-accounting

<!-- /!\ do not modify below this line -->

Expand Down
51 changes: 51 additions & 0 deletions ssi_account_receivable_penalty/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3

==========================
Account Receivable Penalty
==========================


Installation
============

To install this module, you need to:

1. Clone the branch 14.0 of the repository <https://github.com/open-synergy/ssi-financial-accounting/tree/14.0>
2. Add the path to this repository in your configuration (addons-path)
3. Update the module list
4. Go to menu *Apps -> Apps -> Main Apps*
5. Search For *Account Receivable Penalty*
6. Install the module

Roadmap
=======


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/open-synergy/ssi-financial-accounting/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.


Credits
=======

Contributors
------------

* Michael Viriyananda <[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.
6 changes: 6 additions & 0 deletions ssi_account_receivable_penalty/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2022 OpenSynergy Indonesia
# Copyright 2022 PT. Simetri Sinergi Indonesia
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from . import (
models,
)
40 changes: 40 additions & 0 deletions ssi_account_receivable_penalty/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2022 OpenSynergy Indonesia
# Copyright 2022 PT. Simetri Sinergi Indonesia
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Account Receivable Penalty",
"version": "14.0.1.0.0",
"category": "Accounting",
"website": "https://simetri-sinergi.id",
"author": "PT. Simetri Sinergi Indonesia, OpenSynergy Indonesia",
"license": "LGPL-3",
"installable": True,
"depends": [
"ssi_account_move_line_day_overdue",
"ssi_master_data_mixin",
"ssi_transaction_open_mixin",
"ssi_transaction_confirm_mixin",
"ssi_transaction_done_mixin",
"ssi_transaction_cancel_mixin",
"ssi_company_currency_mixin",
"base_automation",
],
"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/receivable_penalty_policy_data.xml",
"data/receivable_penalty_comp_policy_data.xml",
"data/approval_template_data.xml",
"data/ir_actions_server_data.xml",
"data/base_automation_data.xml",
"views/account_receivable_penalty_type_views.xml",
"views/account_receivable_penalty_computation_views.xml",
"views/account_receivable_penalty_views.xml",
],
"demo": [],
"images": [],
}
49 changes: 49 additions & 0 deletions ssi_account_receivable_penalty/data/approval_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo>
<data noupdate="1">
<!-- Account Receivable Penalty -->
<record id="approval_template1" model="approval.template">
<field name="name">Standard</field>
<field
name="model_id"
ref="ssi_account_receivable_penalty.model_account_receivable_penalty"
/>
<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="approval_template1_detail1" model="approval.template_detail">
<field name="template_id" ref="approval_template1" />
<field name="approver_selection_method">use_group</field>
<field
name="approver_group_ids"
eval="[(6,0,[ref('ssi_account_receivable_penalty.receivable_penalty_validator_group')])]"
/>
</record>

<!-- Account Receivable Penalty Computation-->
<record id="approval_template2" model="approval.template">
<field name="name">Standard</field>
<field
name="model_id"
ref="ssi_account_receivable_penalty.model_account_receivable_penalty_computation"
/>
<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="approval_template1_detail2" model="approval.template_detail">
<field name="template_id" ref="approval_template2" />
<field name="approver_selection_method">use_group</field>
<field
name="approver_group_ids"
eval="[(6,0,[ref('ssi_account_receivable_penalty.receivable_penalty_comp_validator_group')])]"
/>
</record>
</data>
</odoo>
21 changes: 21 additions & 0 deletions ssi_account_receivable_penalty/data/base_automation_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<odoo>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<data>
<record id="penalty_ready_2_done" model="base.automation">
<field name="action_server_id" ref="penalty_action_done" />
<field name="trigger">on_write</field>
<field name="filter_pre_domain">[('reconcile','=',False)]</field>
<field name="filter_domain">[('reconcile','=',True)]</field>
</record>

<record id="penalty_ready_2_open" model="base.automation">
<field name="action_server_id" ref="penalty_action_open" />
<field name="trigger">on_write</field>
<field name="filter_pre_domain">[('reconcile','=',True)]</field>
<field name="filter_domain">[('reconcile','=',False)]</field>
</record>

</data>
</odoo>
20 changes: 20 additions & 0 deletions ssi_account_receivable_penalty/data/ir_actions_server_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<odoo>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<data>
<record id="penalty_action_open" model="ir.actions.server">
<field name="name">Action Open</field>
<field name="model_id" ref="model_account_receivable_penalty" />
<field name="state">code</field>
<field name="code">records.action_open()</field>
</record>

<record id="penalty_action_done" model="ir.actions.server">
<field name="name">Action Done</field>
<field name="model_id" ref="model_account_receivable_penalty" />
<field name="state">code</field>
<field name="code">records.action_done()</field>
</record>
</data>
</odoo>
28 changes: 28 additions & 0 deletions ssi_account_receivable_penalty/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo>
<data noupdate="1">
<record id="sequence_receivable_penalty" model="ir.sequence">
<field name="name">Default</field>
<field name="code">account.receivable_penalty</field>
<field name="prefix">ARP/%(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>
<record id="sequence_receivable_penalty_comp" model="ir.sequence">
<field name="name">Default</field>
<field name="code">account.receivable_penalty_computation</field>
<field name="prefix">ARPC/%(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>
Loading