Skip to content

Commit

Permalink
Merge 567e5fb into d19acf6
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcosta committed Sep 11, 2019
2 parents d19acf6 + 567e5fb commit 4bfb2f2
Show file tree
Hide file tree
Showing 25 changed files with 1,181 additions and 517 deletions.
1 change: 1 addition & 0 deletions l10n_br_sale/demo/l10n_br_sale_demo.xml
Expand Up @@ -53,6 +53,7 @@
<field name="fiscal_category_id" ref="demo_fiscal_category-venda"/>
<field name="company_id" ref="base.main_company"/>
<field name="type">output</field>
<field name="cfop_id" ref="l10n_br_account_product.cfop_5102"/>
</record>

<record id="fiscal_position_tax_venda_sp" model="account.fiscal.position.tax">
Expand Down
114 changes: 69 additions & 45 deletions l10n_br_sale_product/README.rst
@@ -1,80 +1,104 @@
.. 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

==========================================
Módulo Informações Contabéis para Produtos
==========================================

This module was written to extend the functionality of ... to support ...
and allow you to ...
===================================
Brazilian Localization Sale Product
===================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_sale_product
:alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-brazil-10-0/l10n-brazil-10-0-l10n_br_sale_product
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/124/10.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the standard Odoo sale module for Brazil, specially when selling products with NFe's.

It deals with the propagation of the fiscal operation and fiscal comment. I also displays the following sale total details:

* untaxed amount
* taxes
* gross amount (valor bruto)
* shipping (frete)
* costs (outros custos)
* insurance (seguro)

**Table of contents**

.. contents::
:local:

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

To install this module, you need to:
This module depends on:

* do this ...
* l10n_br_sale
* l10n_br_account_product

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: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}


.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
.. branch is "8.0" for example
Known issues / Roadmap
======================

TODO
No configuration required.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/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 `here <https://github.com/OCA/
l10n-brazil/issues/new?body=module:%20
l10n_br_account_product%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_sale_product%0Aversion:%2010.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion

Contributors
------------
~~~~~~~~~~~~

* Renato Lima <renato.lima@akretion.com.br>
* Raphaël Valyi <raphael.valyi@akretion.com.br>
* Luis Felipe Miléo <mileo@kmee.com.br>

Maintainer
----------
Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* AKRETION LTDA - www.akretion.com

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_sale_product>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_br_sale_product/__init__.py
Expand Up @@ -3,3 +3,4 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import tests
6 changes: 3 additions & 3 deletions l10n_br_sale_product/__manifest__.py
Expand Up @@ -8,7 +8,7 @@
'license': 'AGPL-3',
'author': 'Akretion, Odoo Community Association (OCA)',
'website': 'http://odoo-brasil.org',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'depends': [
'l10n_br_sale',
'l10n_br_account_product',
Expand All @@ -18,10 +18,10 @@
'views/res_company_view.xml',
'data/l10n_br_sale_product_data.xml',
],
'test': [],
'demo': [
'demo/product_demo.xml',
'demo/l10n_br_sale_product_demo.xml',
],
'installable': False,
'installable': True,
'auto_install': True,
}
12 changes: 5 additions & 7 deletions l10n_br_sale_product/data/l10n_br_sale_product_data.xml
@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<odoo noupdate="1">

<record id="base.main_company" model="res.company">
<field name="sale_fiscal_category_id" ref="l10n_br_account_product.fc_78df616ab31e95ee46c6a519a2ce9e12"/>
</record>
<record id="base.main_company" model="res.company">
<field name="sale_fiscal_category_id" ref="l10n_br_account_product.fc_78df616ab31e95ee46c6a519a2ce9e12"/>
</record>

</data>
</openerp>
</odoo>
44 changes: 44 additions & 0 deletions l10n_br_sale_product/demo/l10n_br_sale_product_demo.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<!-- Sale Order Teste - 1 -->
<record id="l10n_br_sale_product_demo_1" model="sale.order">
<field name="name">Teste l10n_br_sale_product - 1</field>
<field name="partner_id" ref="l10n_br_base.res_partner_akretion"/>
<field name="partner_invoice_id" ref="l10n_br_base.res_partner_akretion"/>
<field name="partner_shipping_id" ref="l10n_br_base.res_partner_akretion"/>
<field name="user_id" ref="base.user_demo"/>
<field name="pricelist_id" ref="product.list0"/>
<field name="team_id" ref="sales_team.crm_team_1"/>
<field name="state">draft</field>
<field name="fiscal_category_id" ref="l10n_br_sale.demo_fiscal_category-venda"/>
<field name="note">TESTE</field>
</record>

<record id="sale_order_line_teste_1-1" model="sale.order.line">
<field name="order_id" ref="l10n_br_sale_product_demo_1"/>
<field name="name">Laptop Customized</field>
<field name="product_id" ref="product.product_product_27"/>
<field name="product_uom_qty">2</field>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="price_unit">3645.00</field>
<field name="fiscal_category_id" ref="l10n_br_sale.demo_fiscal_category-venda"/>
<field name="insurance_value">2.0</field>
<field name="other_costs_value">1.0</field>
<field name="freight_value">3.0</field>
</record>

<record id="sale_order_line_teste_1-2" model="sale.order.line">
<field name="order_id" ref="l10n_br_sale_product_demo_1"/>
<field name="name">Mouse, Wireless</field>
<field name="product_id" ref="product.product_product_12"/>
<field name="product_uom_qty">2</field>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="price_unit">12.50</field>
<field name="fiscal_category_id" ref="l10n_br_sale.demo_fiscal_category-venda"/>
<field name="insurance_value">2.0</field>
<field name="other_costs_value">1.0</field>
<field name="freight_value">3.0</field>
</record>

</odoo>

0 comments on commit 4bfb2f2

Please sign in to comment.