Skip to content

Commit

Permalink
Merge PR #37 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Nov 29, 2023
2 parents 2ff418b + 8439d70 commit 98fa528
Show file tree
Hide file tree
Showing 24 changed files with 905 additions and 0 deletions.
95 changes: 95 additions & 0 deletions l10n_mx_res_partner_csf/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
======================
Contact CSF for Mexico
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:218019f2862d69bc3801e33c068ccfece5081fb367b2c248c6134113d324ea56
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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--mexico-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-mexico/tree/17.0/l10n_mx_res_partner_csf
:alt: OCA/l10n-mexico
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-mexico-17-0/l10n-mexico-17-0-l10n_mx_res_partner_csf
: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-mexico&target_branch=17.0
:alt: Try me on Runboat

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

This module allows you to upload the proof of tax situation (Constancia
de situacion fiscal) from the Mexican Tax Authority (SAT) and update the
information of a partner.

**Table of contents**

.. contents::
:local:

Usage
=====

- Go to Contacts
- Click on "Create"
- Click on "Upload CSF"
- Select the pdf document and click "Upload"

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-mexico/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-mexico/issues/new?body=module:%20l10n_mx_res_partner_csf%0Aversion:%2017.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
-------

* Open Source Integrators

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

- `Open Source Integrators <https://www.opensourceintegrators.com>`__:

- Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
- Murtaza Mithaiwala <mmithaiwala@opensourceintegrators.com>
- Samuel Macias <smacias@opensourceintegrators.com>

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

- Open Source Integrators

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.

This module is part of the `OCA/l10n-mexico <https://github.com/OCA/l10n-mexico/tree/17.0/l10n_mx_res_partner_csf>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions l10n_mx_res_partner_csf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2023 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . import wizard
20 changes: 20 additions & 0 deletions l10n_mx_res_partner_csf/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2023 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Contact CSF for Mexico",
"summary": "Scan and extract information from CSF",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"website": "https://github.com/OCA/l10n-mexico",
"author": "Open Source Integrators, " "Odoo Community Association (OCA)",
"category": "Localization",
"depends": ["contacts"],
"data": [
"security/ir.model.access.csv",
"wizard/import_csf.xml",
"views/res_partner_view.xml",
],
"external_dependencies": {
"python": ["pdfminer.six==20220319"],
},
}
98 changes: 98 additions & 0 deletions l10n_mx_res_partner_csf/i18n/l10n_mx_res_partner_csf.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_mx_res_partner_csf
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_mx_res_partner_csf
#: model_terms:ir.ui.view,arch_db:l10n_mx_res_partner_csf.import_csf
msgid "Cancel"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model,name:l10n_mx_res_partner_csf.model_res_partner
msgid "Contact"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__create_uid
msgid "Created by"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__create_date
msgid "Created on"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__file
msgid "File"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__file_name
msgid "File Name"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__id
msgid "ID"
msgstr ""

#. module: l10n_mx_res_partner_csf
#. odoo-python
#: code:addons/l10n_mx_res_partner_csf/models/res_partner.py:0
#, python-format
msgid "Import CSF File"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf____last_update
msgid "Last Modified on"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__write_uid
msgid "Last Updated by"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model.fields,field_description:l10n_mx_res_partner_csf.field_import_csf__write_date
msgid "Last Updated on"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model_terms:ir.ui.view,arch_db:l10n_mx_res_partner_csf.view_partner_form_inherit_cfs
msgid "Subir CSF"
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model_terms:ir.ui.view,arch_db:l10n_mx_res_partner_csf.import_csf
msgid "Upload"
msgstr ""

#. module: l10n_mx_res_partner_csf
#. odoo-python
#: code:addons/l10n_mx_res_partner_csf/wizard/import_csf.py:0
#, python-format
msgid "Uploaded file is not in PDF format (%s)."
msgstr ""

#. module: l10n_mx_res_partner_csf
#: model:ir.model,name:l10n_mx_res_partner_csf.model_import_csf
msgid "import.csf"
msgstr ""
4 changes: 4 additions & 0 deletions l10n_mx_res_partner_csf/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2019 Wissen MX
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import res_partner
16 changes: 16 additions & 0 deletions l10n_mx_res_partner_csf/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2023 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, models


class ResPartner(models.Model):
_inherit = "res.partner"

def action_upload_csf(self):
return {
"name": _("Import CSF File"),
"type": "ir.actions.act_window",
"view_mode": "form",
"res_model": "import.csf",
"target": "new",
}
3 changes: 3 additions & 0 deletions l10n_mx_res_partner_csf/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions l10n_mx_res_partner_csf/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [Open Source Integrators](https://www.opensourceintegrators.com):
- Maxime Chambreuil \<<mchambreuil@opensourceintegrators.com>\>
- Murtaza Mithaiwala \<<mmithaiwala@opensourceintegrators.com>\>
- Samuel Macias \<<smacias@opensourceintegrators.com>\>
1 change: 1 addition & 0 deletions l10n_mx_res_partner_csf/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Open Source Integrators
3 changes: 3 additions & 0 deletions l10n_mx_res_partner_csf/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module allows you to upload the proof of tax situation (Constancia
de situacion fiscal) from the Mexican Tax Authority (SAT) and update the
information of a partner.
7 changes: 7 additions & 0 deletions l10n_mx_res_partner_csf/readme/INSTALLATION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module requires the unaccent extension of PostgreSQL:

.. code-block:: sql
create extension "unaccent" ;
and `unaccent=True` in Odoo configuration file.
4 changes: 4 additions & 0 deletions l10n_mx_res_partner_csf/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Go to Contacts
- Click on "Create"
- Click on "Upload CSF"
- Select the pdf document and click "Upload"
2 changes: 2 additions & 0 deletions l10n_mx_res_partner_csf/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_import_csf,import_csf,model_import_csf,,1,1,1,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 98fa528

Please sign in to comment.