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

[14.0][MIG] l10n_br_sale_commission_stock #2681

Closed
Closed
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
113 changes: 113 additions & 0 deletions l10n_br_sale_commission_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
=====================================================
Brazilian Localization Sales Commission and Warehouse
=====================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c2f9c1087c64a04ddf209391d7cda98ce6283923fd09f2bba36b685b21d92d58
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/12.0/l10n_br_sale_commission_stock
: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-12-0/l10n-brazil-12-0-l10n_br_sale_commission_stock
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=12.0
:alt: Try me on Runboat

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

Module created to copy the sales order commission information to the invoice created through picking.

**Table of contents**

.. contents::
:local:

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

This module depends on:

* l10n_br_sale_stock
* l10n_br_stock_account
* l10n_br_sale_commission

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

No configuration required.

Changelog
=========

12.0.1.0.0 (2020-05-29)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] Initial version

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_sale_commission_stock%0Aversion:%2012.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 <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Aketion LTDA

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

This module is maintained by the OCA.

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

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.

.. |maintainer-renatonlima| image:: https://github.com/renatonlima.png?size=40px
:target: https://github.com/renatonlima
:alt: renatonlima

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-renatonlima|

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_sale_commission_stock>`_ 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_commission_stock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
21 changes: 21 additions & 0 deletions l10n_br_sale_commission_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2022 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Brazilian Localization Sales Commission and Warehouse",
"category": "Localization",
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-brazil",
"version": "14.0.1.0.0",
"maintainers": ["renatonlima"],
"depends": [
"l10n_br_sale_stock",
"l10n_br_sale_commission",
],
"demo": [
"demo/sale_order.xml",
],
"installable": True,
"auto_install": True,
}
79 changes: 79 additions & 0 deletions l10n_br_sale_commission_stock/demo/sale_order.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Main Company Simples Nacional -->
<record id="main_so_l10n_br_sale_commission_stock_1" model="sale.order">
<field
name="name"
>l10n_br_sale_commission_stock - Informações de Comissões</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_admin" />
<field name="pricelist_id" ref="product.list0" />
<field name="payment_term_id" ref="account.account_payment_term_advance" />
<field name="team_id" ref="sales_team.crm_team_1" />
<field name="state">draft</field>
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
<field name="company_id" ref="base.main_company" />
</record>

<record id="main_sl_l10n_br_sale_commission_stock_1_1" model="sale.order.line">
<field name="order_id" ref="main_so_l10n_br_sale_commission_stock_1" />
<field name="name">[FURN_8855] Gaveta</field>
<field name="product_id" ref="product.product_product_27" />
<field name="product_uom_qty">2</field>
<field name="product_uom" ref="uom.product_uom_unit" />
<field name="price_unit">500</field>
<field name="fiscal_operation_type">out</field>
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
</record>

<function model="sale.order.line" name="_onchange_fiscal_operation_id">
<value eval="[ref('main_sl_l10n_br_sale_commission_stock_1_1')]" />
</function>

<function model="sale.order.line" name="_onchange_fiscal_operation_line_id">
<value eval="[ref('main_sl_l10n_br_sale_commission_stock_1_1')]" />
</function>

<record
id="main_sl_l10n_br_sale_commission_stock_1_1_agent"
model="sale.order.line.agent"
>
<field name="object_id" ref="main_sl_l10n_br_sale_commission_stock_1_1" />
<field name="agent_id" ref="sale_commission.res_partner_pritesh_sale_agent" />
<field name="commission_id" ref="sale_commission.demo_commission" />
</record>

<record id="main_sl_l10n_br_sale_commission_stock_1_2" model="sale.order.line">
<field name="order_id" ref="main_so_l10n_br_sale_commission_stock_1" />
<field name="name">[FURN_0269] Cadeira de Escritório Preta</field>
<field name="product_id" ref="product.product_product_12" />
<field name="product_uom_qty">2</field>
<field name="product_uom" ref="uom.product_uom_unit" />
<field name="price_unit">500</field>
<field name="fiscal_operation_type">out</field>
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
</record>

<function model="sale.order.line" name="_onchange_fiscal_operation_id">
<value eval="[ref('main_sl_l10n_br_sale_commission_stock_1_2')]" />
</function>

<function model="sale.order.line" name="_onchange_fiscal_operation_line_id">
<value eval="[ref('main_sl_l10n_br_sale_commission_stock_1_2')]" />
</function>

<record
id="main_sl_l10n_br_sale_commission_stock_1_2_agent"
model="sale.order.line.agent"
>
<field name="object_id" ref="main_sl_l10n_br_sale_commission_stock_1_2" />
<field name="agent_id" ref="sale_commission.res_partner_pritesh_sale_agent" />
<field name="commission_id" ref="sale_commission.demo_commission" />
</record>

</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_br_sale_commission_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_br_sale_commission_stock
#: model:ir.model,name:l10n_br_sale_commission_stock.model_stock_invoice_onshipping
msgid "Stock Invoice Onshipping"
msgstr ""

1 change: 1 addition & 0 deletions l10n_br_sale_commission_stock/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No configuration required.
1 change: 1 addition & 0 deletions l10n_br_sale_commission_stock/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Renato Lima <[email protected]>
3 changes: 3 additions & 0 deletions l10n_br_sale_commission_stock/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The development of this module has been financially supported by:

* Aketion LTDA
1 change: 1 addition & 0 deletions l10n_br_sale_commission_stock/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Module created to copy the sales order commission information to the invoice created through picking.
4 changes: 4 additions & 0 deletions l10n_br_sale_commission_stock/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
12.0.1.0.0 (2020-05-29)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] Initial version
5 changes: 5 additions & 0 deletions l10n_br_sale_commission_stock/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module depends on:

* l10n_br_sale_stock
* l10n_br_stock_account
* l10n_br_sale_commission
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading