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

[16.0][REF] l10n_br_purchase: default load demo #3644

Open
wants to merge 1 commit into
base: 16.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
24 changes: 12 additions & 12 deletions l10n_br_purchase/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Installation

This module depends on:

- purchase
- l10n_br_account
- purchase
- l10n_br_account

Configuration
=============
Expand All @@ -77,22 +77,22 @@ Changelog
14.0.1.0.0 (2022-06-02)
-----------------------

- Module migration.
- Module migration.

13.0.1.0.0 (2021-01-14)
-----------------------

- Module migration.
- Module migration.

12.0.1.0.0 (2021-01-30)
-----------------------

- Module migration.
- Module migration.

10.0.1.0.0 (2019-09-20)
-----------------------

- Module migration.
- Module migration.

Bug Tracker
===========
Expand All @@ -115,21 +115,21 @@ Authors
Contributors
------------

- `Akretion <https://akretion.com/pt-BR>`__:
- `Akretion <https://akretion.com/pt-BR>`__:

- Renato Lima <[email protected]>
- Raphaël Valyi <[email protected]>
- Renato Lima <[email protected]>
- Raphaël Valyi <[email protected]>

- `KMEE <https://www.kmee.com.br>`__:
- `KMEE <https://www.kmee.com.br>`__:

- Luis Felipe Mileo <[email protected]>
- Luis Felipe Mileo <[email protected]>

Other credits
-------------

The development of this module has been financially supported by:

- AKRETION LTDA - `www.akretion.com <http://www.akretion.com>`__
- AKRETION LTDA - `www.akretion.com <http://www.akretion.com>`__

Maintainers
-----------
Expand Down
5 changes: 0 additions & 5 deletions l10n_br_purchase/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# Copyright (C) 2009 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from .hooks import post_init_hook

from . import models
from . import reports
3 changes: 2 additions & 1 deletion l10n_br_purchase/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"security/ir.model.access.csv",
# Data
"data/company.xml",
# Demo
"demo/fiscal_operation.xml",
# View
"views/purchase_view.xml",
"views/res_company_view.xml",
Expand All @@ -28,6 +30,5 @@
"demo/l10n_br_purchase.xml",
],
"installable": True,
"post_init_hook": "post_init_hook",
"auto_install": False,
}
84 changes: 84 additions & 0 deletions l10n_br_purchase/demo/fiscal_operation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- pylint:disable=xml-duplicate-record-id -->
<odoo>
<!-- Compras -->
<record
id="l10n_br_fiscal.fo_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('base.main_company')]}"
>
<field
name="journal_id"
ref="l10n_br_coa_simple.purchase_journal_main_company"
/>
</record>
<record
id="l10n_br_fiscal.fo_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_simples_nacional')]}"
>
<field name="journal_id" ref="l10n_br_coa_simple.purchase_journal_empresa_sn" />
</record>
<record
id="l10n_br_fiscal.fo_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_lucro_presumido')]}"
>
<field
name="journal_id"
ref="l10n_br_coa_generic.purchase_journal_empresa_lp"
/>
</record>

<!-- Devolução de Compras -->
<record
id="l10n_br_fiscal.fo_devolucao_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('base.main_company')]}"
>
<field
name="journal_id"
ref="l10n_br_coa_simple.general_journal_main_company"
/>
</record>
<record
id="l10n_br_fiscal.fo_devolucao_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_simples_nacional')]}"
>
<field name="journal_id" ref="l10n_br_coa_simple.general_journal_empresa_sn" />
</record>
<record
id="l10n_br_fiscal.fo_devolucao_compras"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_lucro_presumido')]}"
>
<field name="journal_id" ref="l10n_br_coa_generic.general_journal_empresa_lp" />
</record>

<!-- Outras Entradas -->
<record
id="l10n_br_fiscal.fo_entrada_remessa"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('base.main_company')]}"
>
<field
name="journal_id"
ref="l10n_br_coa_simple.general_journal_main_company"
/>
</record>
<record
id="l10n_br_fiscal.fo_entrada_remessa"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_simples_nacional')]}"
>
<field name="journal_id" ref="l10n_br_coa_simple.general_journal_empresa_sn" />
</record>
<record
id="l10n_br_fiscal.fo_entrada_remessa"
model="l10n_br_fiscal.operation"
context="{'allowed_company_ids': [ref('l10n_br_base.empresa_lucro_presumido')]}"
>
<field name="journal_id" ref="l10n_br_coa_generic.general_journal_empresa_lp" />
</record>
</odoo>
71 changes: 0 additions & 71 deletions l10n_br_purchase/demo/fiscal_operation_generic.xml

This file was deleted.

134 changes: 0 additions & 134 deletions l10n_br_purchase/demo/fiscal_operation_simple.xml

This file was deleted.

Loading