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

15.0 mig account cashbox #363

Open
wants to merge 4 commits into
base: 15.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
70 changes: 70 additions & 0 deletions account_cashbox/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.. |company| replace:: ADHOC SA

.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png
:alt: ADHOC SA
:target: https://www.adhoc.com.ar

.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

================
Point of Payment
================

NOTA: por el momento se requiere modulo account_accountant para disponibilizar los full accounting features y ver el menú banco y caja (de account_payment_group)

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

To install this module, you need to:

#. Do this ...

Configuration
=============

To configure this module, you need to:

#. Go to ...

Usage
=====

To use this module, you need to:

#. Go to ...

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/

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

Bugs are tracked on `GitHub Issues
<https://github.com/ingadhoc/account_payment/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
=======

Images
------

* |company| |icon|

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

Maintainer
----------

|company_logo|

This module is maintained by the |company|.

To contribute to this module, please visit https://www.adhoc.com.ar.
2 changes: 2 additions & 0 deletions account_cashbox/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
34 changes: 34 additions & 0 deletions account_cashbox/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# © 2022 juanpgarza - Juan Pablo Garza <juanp@juanpgarza.com>
# © 2023 ADHOC SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Cashbox management",
"summary": "Introduces concept cashbox and accounting journal sessions",
"version": "15.0.1.0.0",
"category": "Accounting",
"website": "www.adhoc.com.ar",
"author": "juanpgarza, ADHOC SA",
"license": "AGPL-3",
"depends": [
"account_payment_group",
# la dependencia con payment group es solo para forzar utilizar el metodo parcheado
# _compute_available_journal_ids. En v17 depreciariamos payment group y ya no seria necesario
# ademas, al depender de payment group, por ahora no implementamos los wizard de payment register
# ya que los mismos no se usan con payment group
],
"demo": [
'demo/cashbox_demo.xml',
],
"data": [
'security/cashbox_security.xml',
'security/ir.model.access.csv',
'views/account_cashbox_session.xml',
'views/account_cashbox.xml',
'views/res_users_views.xml',
'views/account_payment.xml',
# 'views/templates.xml',
'wizards/account_cashbox_payment_import.xml',
],
"installable": True,
"application": False,
}
114 changes: 114 additions & 0 deletions account_cashbox/demo/cashbox_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="partner_demo_invoicing" model="res.partner">
<field name="name">Cashbox demo</field>
<field name="company_id" ref="base.main_company"/>
<field name="company_name">ADHOC S.A.</field>
<field name="street">Ovidio Lagos 41 Bis</field>
<field name="city">Rosario</field>
<field name="state_id" model="res.country.state" search="[('code','ilike','AR')]"/>
<field name="zip">2000</field>
<field name="country_id" ref="base.ar"/>
<field name="tz">America/Buenos_Aires</field>
<field name="email">demo.invoice@adhoc.com.ar</field>
<field name="phone">+549 341 512 2208</field>
</record>

<record id="user_demo_invoicing" model="res.users">
<field name="partner_id" ref="account_cashbox.partner_demo_invoicing"/>
<field name="login">demo_invoicing</field>
<field name="password">demo_invoicing</field>
<field name="signature" type="html"><span>-- <br/>+Mr demo invoicing</span></field>
<field name="company_id" ref="base.main_company"/>
<field name="requiere_account_cashbox_session" eval="True"/>
<field name="groups_id" eval="[Command.set([ref('base.group_user'), ref('base.group_partner_manager'), ref('account.group_account_user')])]"/>
<field name="image_1920" type="base64" file="account_cashbox/static/img/user_demo_invoicing-image.jpg"/>
</record>

<!-- Journals -->

<record id="journal_cajas" model="account.journal">
<field name="name">Cajas</field>
<field name="type">cash</field>
<field name="code">CAJAS</field>
</record>

<record id="journal_caja_central" model="account.journal">
<field name="name">Caja Central</field>
<field name="type">cash</field>
<field name="code">CAJAC</field>
</record>

<record id="journal_billetera_virtual" model="account.journal">
<field name="name">Billetera Virtual</field>
<field name="type">bank</field>
<field name="code">BILL1</field>
</record>

<record id="journal_viaticos" model="account.journal">
<field name="name">Viaticos</field>
<field name="type">cash</field>
<field name="code">VIA01</field>
</record>

<!-- Sequences and cashbox -->

<record id="sequence_account_cashbox_caja_1" model="ir.sequence">
<field name="name">Caja 01</field>
<field name="code">account_cashbox_sequence</field>
<field name="prefix">caja1-</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>

<!-- Caja 1, para demo pero admin tambien puede usarla por ser admin -->
<record id="pop_config_caja_1" model="account.cashbox">
<field name="name">Caja 01 (sin cash control)</field>
<field name="sequence_id" ref="sequence_account_cashbox_caja_1" />
<field name="journal_ids" eval="[(6, 0, [ref('journal_billetera_virtual')])]"/>
<field name="allowed_res_users_ids" eval="[(6,0,[ref('base.user_admin'),ref('account_cashbox.user_demo_invoicing'),])]"/>
</record>

<record id="sequence_account_cashbox_caja_2" model="ir.sequence">
<field name="name">Caja 02</field>
<field name="code">account_cashbox_sequence</field>
<field name="prefix">caja2-</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>

<!-- Caja 2, solo para admin y sin cash control -->
<record id="pop_config_caja_2" model="account.cashbox">
<field name="name">Caja 02 (con cash control)</field>
<field name="sequence_id" ref="sequence_account_cashbox_caja_2" />
<field name="journal_ids" eval="[(6, 0, [ref('journal_cajas'), ref('journal_billetera_virtual')])]"/>
<field name="allowed_res_users_ids" eval="[(6,0,[ref('base.user_admin'),ref('account_cashbox.user_demo_invoicing'),])]"/>
<field name="cash_control_journal_ids" eval="[(6, 0, [ref('journal_cajas')])]"/>
</record>

<!-- Viaticos, solo para admin -->
<record id="pop_config_viaticos" model="account.cashbox">
<field name="name">Viaticos</field>
<field name="allow_concurrent_sessions" eval="True" />
<field name="journal_ids" eval="[(6,0,[ref('journal_viaticos')])]"/>
<field name="allowed_res_users_ids" eval="[(6,0,[ref('base.user_admin'),ref('account_cashbox.user_demo_invoicing'),])]"/>
</record>

<!-- Caja central, para probar las transferencias e importar -->
<record id="sequence_account_cashbox_caja_central" model="ir.sequence">
<field name="name">Caja Central</field>
<field name="code">account_cashbox_sequence</field>
<field name="prefix">CC-</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>

<record id="pop_config_caja_central" model="account.cashbox">
<field name="name">Caja Central</field>
<field name="sequence_id" ref="sequence_account_cashbox_caja_central" />
<field name="journal_ids" eval="[(6,0,[ref('journal_caja_central')])]"/>
<field name="cash_control_journal_ids" eval="[(6,0,[ref('journal_caja_central')])]"/>
<field name="allowed_res_users_ids" eval="[(6,0,[ref('base.user_admin')])]"/>
</record>

</odoo>
Loading