Skip to content

Commit

Permalink
Merge pull request #148 from akretion/migration/l10n_br_sale_stock
Browse files Browse the repository at this point in the history
Migration/l10n br sale stock
  • Loading branch information
renatonlima committed Jan 23, 2016
2 parents 46939bc + d56af8d commit 21d6788
Show file tree
Hide file tree
Showing 26 changed files with 312 additions and 289 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -90,6 +90,7 @@ addon | version | summary
[l10n_br_purchase](l10n_br_purchase/) | 8.0.1.0.0 | Brazilian Localization Purchase
[l10n_br_sale](l10n_br_sale/) | 8.0.1.0.0 | Brazilian Localization Sale
[l10n_br_sale_product](l10n_br_sale_product/) | 8.0.1.0.0 | Brazilian Localization Sale Product
[l10n_br_sale_stock](l10n_br_sale_stock/) | 8.0.1.0.0 | Brazilian Localization Sales and Warehouse
[l10n_br_stock](l10n_br_stock/) | 8.0.1.0.0 | Brazilian Localization Warehouse
[l10n_br_stock_account](l10n_br_stock_account/) | 8.0.1.0.0 | Brazilian Localization WMS Accounting
[l10n_br_zip](l10n_br_zip/) | 8.0.1.0.0 | Brazilian Localisation ZIP Codes
Expand All @@ -103,6 +104,5 @@ addon | version | summary
[l10n_br_delivery](l10n_br_delivery/) | 7.0 (unported) | Brazilian Localization Delivery
[l10n_br_hr_timesheet_invoice](l10n_br_hr_timesheet_invoice/) | 1.0 (unported) | Brazilian Invoice on Timesheets
[l10n_br_sale_service](l10n_br_sale_service/) | 7.0 (unported) | Brazilian Localization Sale Service
[l10n_br_sale_stock](l10n_br_sale_stock/) | 7.0 (unported) | Brazilian Localization Sales and Warehouse

[//]: # (end addons)

This file was deleted.

81 changes: 81 additions & 0 deletions l10n_br_base/README.rst
@@ -0,0 +1,81 @@
.. 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 Base da localização Brasileira
=====================================

This module was written to extend the functionality of ... to support ...
and allow you to ...

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: 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

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_base%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Renato Lima <renato.lima@akretion.com.br>
* Raphaël Valyi <raphael.valyi@akretion.com.br>
* Luis Felipe Mileo <mileo@kmee.com.br>
* Michell Stuttgart <michell.stuttgart@kmee.com.br>

Maintainer
----------

.. 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.
1 change: 0 additions & 1 deletion l10n_br_base/__openerp__.py
Expand Up @@ -37,7 +37,6 @@
'views/res_partner_view.xml',
'views/res_company_view.xml',
'security/ir.model.access.csv',
'security/l10n_br_base_security.xml',
],
'demo': [
'demo/base_demo.xml',
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_base/models/l10n_br_base.py
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion #
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_base/models/res_country.py
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion #
Expand Down
4 changes: 2 additions & 2 deletions l10n_br_base/models/res_partner.py
Expand Up @@ -38,8 +38,8 @@ def _display_address(self, address, without_company=False):
address, without_company=False)
else:
address_format = (
address.country_id and address.country_id.address_format
or "%(street)s\n%(street2)s\n%(city)s"
address.country_id and address.country_id.address_format or
"%(street)s\n%(street2)s\n%(city)s"
" %(state_code)s%(zip)s\n%(country_name)s")
args = {
'state_code': address.state_id and
Expand Down
8 changes: 0 additions & 8 deletions l10n_br_base/security/l10n_br_base_security.xml

This file was deleted.

2 changes: 1 addition & 1 deletion l10n_br_base/tools/fiscal.py
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2013 Renato Lima - Akretion #
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_base/tools/misc.py
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2014 Renato Lima - Akretion #
Expand Down
80 changes: 0 additions & 80 deletions l10n_br_delivery/sale.py

This file was deleted.

1 change: 0 additions & 1 deletion l10n_br_sale/models/sale.py
Expand Up @@ -325,7 +325,6 @@ def product_id_change(self, pricelist, product, qty=0,
partner_id=False, lang=False, update_tax=True,
date_order=False, packaging=False,
fiscal_position=False, flag=False):

context = dict(self.env.context)
self = self.with_context(context)
parent_fiscal_category_id = context.get('parent_fiscal_category_id')
Expand Down
2 changes: 0 additions & 2 deletions l10n_br_sale_stock/README.md

This file was deleted.

79 changes: 79 additions & 0 deletions l10n_br_sale_stock/README.rst
@@ -0,0 +1,79 @@
.. 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 Sale Stcok
=================

This module was written to extend the functionality of ... to support ...
and allow you to ...

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: 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

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_sale_stock%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Renato Lima <renato.lima@akretion.com.br>
* Raphaël Valyi <raphael.valyi@akretion.com.br>

Maintainer
----------

.. 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.
25 changes: 12 additions & 13 deletions l10n_br_sale_stock/__init__.py
@@ -1,22 +1,21 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2013 Raphaël Valyi - Akretion #
# Copyright (C) 2013 Renato Lima - Akretion #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU Affero General Public License as published by #
#the Free Software Foundation, either version 3 of the License, or #
#(at your option) any later version. #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
#This program is distributed in the hope that it will be useful, #
#but WITHOUT ANY WARRANTY; without even the implied warranty of #
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
#GNU Affero General Public License for more details. #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
#You should have received a copy of the GNU Affero General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
# You should have received a copy of the GNU Affero General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
###############################################################################

import stock
import sale
from . import models

0 comments on commit 21d6788

Please sign in to comment.