diff --git a/.copier-answers.yml b/.copier-answers.yml index 5855f1db4..c0ed8d6ae 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -10,7 +10,7 @@ github_enable_makepot: true github_enable_stale_action: true github_enforce_dev_status_compatibility: true include_wkhtmltopdf: false -odoo_version: 17.0 +odoo_version: 18.0 org_name: Open Source Integrators org_slug: ursais rebel_module_groups: [] diff --git a/README.md b/README.md index a67bfc3cb..0b484dad7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Build Status](https://travis-ci.org/ursais/osi-addons.svg?branch=15.0)](https://travis-ci.org/ursais/osi-addons) - # OSI Addons Odoo modules from Open Source Integrators. diff --git a/advance_check_void/README.rst b/advance_check_void/README.rst deleted file mode 100644 index 46eb7ea91..000000000 --- a/advance_check_void/README.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. 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 - -======== -Overview -======== - -This module is used to make vendor bill payments via checks and also void the checks. -With this module we can keep a track of payment check History and also see all voided Checks. - -Configuration -============= -Install OSI Advance Check Void Module - -Usage -===== - -To use this module - -* Applicable to payments that are type Check only -* Go to Accounting > Vendors > Payments -* Go to the payment that has payment type Check and Check is printed -* There are two options of Void -* Void: Voids check only and allows to reprint check -* Void Check and Payment: Reverses payment on date specified, Opens bills, Reconciles AP and Bank accounts and log void details -* The payment is now in Void status for Audit purposes - -Credits -======= - -* Murtada Karjikar - -Authors -======= - -* Open Source Integrators - -Contributors -============ - -* Murtada Karjikar -* Patrick Wilson - -History -======= - -14.0.1.0.0 ----------- -- Migration from v13 to v14 - -13.0.1.0.2 ----------- -- Did changes in .xml files according to odoo version 13. -- Added the search view in payment.check.history object. -- Done some code optimization. - -13.0.1.0.1 ----------- -- Solved error in print_checks method -- Removed empty Keys in manifest.py file... - -13.0.1.0.0 ----------- -- Payment Check History Menuitem is added into Account_accountant module under Accounting Main Menu. -- Inherited account.payment object to add checks void functionality. -- is_visible_check boolean field is added to make check_number visible. -- is_readonly_check boolean field is added to make check_number readonly. -- Void state is added to account.payment object. -- onchange_payment_method new method is added in account.payment object, to make visible check_number field on condition. -- print_checks overrided this method. -- unmark_sent overrided this method added to Void the checks. -- void_check_reversal_payment new method is written to Void Check and Payment. -- payment.check.history new object created to keep a record of all payments done by checks. -- payment.check.void new object created to keep a record of all voided checks to see the voided checks, added button Void Checks on account.payment . -- Button Print Checks is used to have the report of particular check. diff --git a/advance_check_void/__init__.py b/advance_check_void/__init__.py deleted file mode 100644 index 12a39a5a3..000000000 --- a/advance_check_void/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import models -from . import wizard diff --git a/advance_check_void/__manifest__.py b/advance_check_void/__manifest__.py deleted file mode 100644 index 2b6faed71..000000000 --- a/advance_check_void/__manifest__.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -{ - "name": "Advance Check Void", - "version": "17.0.1.0.0", - "category": "Accounting", - "summary": "Void History for Check Payments", - "author": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "license": "AGPL-3", - "depends": [ - "account_check_printing", - ], - "data": [ - "data/payment_methods_data.xml", - "security/ir.model.access.csv", - "wizard/account_move_reversal_view.xml", - "wizard/simple_void_check.xml", - "views/account_payment_view.xml", - "views/payment_check_history_view.xml", - ], - "maintainers": ["Open Source Integrators"], - "installable": True, - "auto_install": False, - "application": True, -} diff --git a/advance_check_void/data/payment_methods_data.xml b/advance_check_void/data/payment_methods_data.xml deleted file mode 100644 index 37871b1d4..000000000 --- a/advance_check_void/data/payment_methods_data.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Check - check_printing - inbound - - diff --git a/advance_check_void/models/__init__.py b/advance_check_void/models/__init__.py deleted file mode 100644 index 734980fd1..000000000 --- a/advance_check_void/models/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright (C) 2019 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import account_payment -from . import payment_check_void -from . import payment_check_history diff --git a/advance_check_void/models/account_payment.py b/advance_check_void/models/account_payment.py deleted file mode 100644 index 6ec24bb00..000000000 --- a/advance_check_void/models/account_payment.py +++ /dev/null @@ -1,286 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import _, api, fields, models -from odoo.exceptions import ValidationError - - -class AccountPayment(models.Model): - _inherit = ["account.payment"] - - is_hide_check = fields.Boolean("Hide Check Number?") - is_visible_check = fields.Boolean( - help="Use for the visible or invisible check number." - ) - is_readonly_check = fields.Boolean( - help="Use for the readonly or editable check number.", - ) - void_reason = fields.Char() - voided_count = fields.Integer( - string="# Voids", compute="_compute_stat_buttons_voided_count" - ) - can_be_voided = fields.Boolean( - string="Can be Voided", compute="_compute_can_be_voided" - ) - - @api.model - def _compute_stat_buttons_voided_count(self): - for payment in self: - res = self.env["payment.check.void"].search_count( - [("payment_id", "=", payment.id)] - ) - payment.voided_count = res or 0 - - @api.model - def _compute_can_be_voided(self): - for payment in self: - payment.can_be_voided = False - if ( - payment.payment_method_id.payment_type == "outbound" - and payment.state == "posted" - and payment.payment_state != "reversed" - ): - if ( - payment.payment_method_code == "check_printing" - and payment.is_move_sent - ): - payment.can_be_voided = True - if payment.payment_method_code == "ACH-Out": - payment.can_be_voided = True - if payment.payment_method_code == "manual" and payment.is_move_sent: - payment.can_be_voided = True - - @api.onchange("payment_method_id") - def onchange_payment_method(self): - """Allow to customer payment to enter check number. - - Based on journal check printing manual True/False for vendor.""" - self.is_visible_check = False - self.is_readonly_check = False - if self.payment_method_id: - if ( - self.payment_method_id.payment_type == "inbound" - and self.payment_method_code in ("check_printing", "ACH-Out", "manual") - ): - self.is_visible_check = True - self.check_number = 0 - elif self._context.get("is_vendor"): - if ( - self.payment_method_id.payment_type == "outbound" - and self.payment_method_code - in ("check_printing", "ACH-Out", "manual") - ): - self.is_visible_check = False - elif ( - self.payment_method_id.payment_type == "outbound" - and self.payment_method_code in ("check_printing", "ACH-Out", "manual") - ): - self.is_visible_check = True - if not self.check_manual_sequencing: - self.is_readonly_check = True - - def print_checks(self): - for rec in self: - if rec.payment_type == "outbound": - domain = [ - ("payment_id", "=", rec.id), - ("check_number", "=", int(rec.check_number)), - ] - payment_check_void_ids = self.env["payment.check.void"].search( - domain, order="id DESC", limit=1 - ) - is_manual = rec.journal_id.check_manual_sequencing - if payment_check_void_ids and is_manual: - rec.check_number = rec.journal_id.check_next_number - rec.is_visible_check = True - sequence = rec.journal_id.check_sequence_id - sequence.next_by_id() - message = ( - ( - """
    -
  • (_(Check Updated Date:)) %s
  • -
  • (_(Check Number:)) %s (Generated)
  • -
  • (_(State:)) %s
""" - ) - % ( - fields.Date.to_string(fields.Date.context_today(self)), - rec.check_number, - rec.state.title(), - ) - ) - rec.message_post(body=message) - result = super().print_checks() - return result - - def void_check_button(self): - return { - "name": _("Void Check"), - "type": "ir.actions.act_window", - "res_model": "simple.void.check", - "view_type": "form", - "view_mode": "form", - "target": "new", - "context": { - "default_payment_id": self.id, - }, - } - - def write(self, vals): - if vals.get("check_number") and not str(vals.get("check_number")).isdigit(): - raise ValidationError(_("Check number must be integer.")) - result = super().write(vals) - check_hist_obj = self.env["payment.check.history"] - for res in self: - new_chk = False - if "check_number" in vals and vals["check_number"] and res.check_number: - check_hist = { - "name": res.name, - "payment_id": res.id, - "partner_id": res.partner_id.id, - "amount": res.amount, - "check_amount": res.amount, - "check_number": res.check_number, - "journal_id": res.journal_id.id, - "date": fields.Datetime.now(), - "create_date": fields.Datetime.now(), - "write_date": fields.Date.context_today(res), - "create_uid": res.create_uid.id, - "state": res.state, - "is_visible_check": not res.check_number, - } - new_chk = check_hist_obj.create(check_hist) - if new_chk: - check_ids = check_hist_obj.search( - [ - ("payment_id", "=", res.id), - ("check_number", "=", res.check_number), - ("id", "!=", new_chk.id), - ], - limit=1, - ) - else: - check_ids = check_hist_obj.search( - [("payment_id", "=", res.id), ("write_date", "<=", res.write_date)], - limit=1, - ) - if check_ids: - for chk in check_ids: - if res.state != "sent": - chk.write({"state": "void"}) - return result - - def action_cancel(self): - if self.check_number and self.payment_type == "outbound": - raise ValidationError( - _( - "You can not allow cancelling payment because\ - a check is already printed." - ) - ) - result = super().action_cancel() - for rec in self: - payment_check_history_obj = self.env["payment.check.history"] - domain = [ - ("payment_id", "=", rec.id), - ("partner_id", "=", rec.partner_id.id), - ("journal_id", "=", rec.journal_id.id), - ] - if rec.check_number: - domain += [("check_number", "=", rec.check_number)] - payment_check_history_ids = payment_check_history_obj.search( - domain, limit=1 - ) - payment_check_history_ids.write({"state": "cancelled"}) - - # Set Messages.... - message = ( - ( - """
  • (_(Updated On:)) %s
  • -
  • (_(Check Number:)) %s (Cancelled)
  • -
  • (_(State:)) %s
""" - ) - % ( - fields.Date.to_string(fields.Date.context_today(rec)), - rec.check_number, - rec.state, - ) - ) - rec.message_post(body=message) - rec.write({"is_hide_check": True}) - return result - - def void_check_reversal_payment(self): - check_hist_obj = self.env["payment.check.history"] - journal_id = self.journal_id and self.journal_id.id - self._cr.execute( - """ - SELECT DISTINCT(aml.move_id) - FROM account_payment AS ap - INNER JOIN account_move_line AS aml - ON aml.payment_id=ap.id - AND ap.id = %s - INNER JOIN account_move AS am - ON aml.move_id = am.id - """, - (self.id,), - ) - am_ids = self._cr.fetchone() - if am_ids: - am_ids = am_ids[0] - - for rec in self: - # Update payment check history.. - check_ids = check_hist_obj.search( - [("payment_id", "=", rec.id), ("check_number", "=", rec.check_number)], - limit=1, - ) - if check_ids: - check_ids.write({"state": "posted"}) - self.write({"is_move_sent": False}) - return { - "name": _("Reverse Moves"), - "type": "ir.actions.act_window", - "res_model": "account.move.reversal", - "view_type": "form", - "view_mode": "form", - "target": "new", - "context": { - "is_void_button": True, - "default_journal_id": journal_id or False, - "account_move_id": am_ids, - "payment_id": self.id, - }, - } - - def button_void_checks(self): - return { - "name": _("Void Checks"), - "view_type": "form", - "view_mode": "tree,form", - "res_model": "payment.check.void", - "view_id": False, - "type": "ir.actions.act_window", - "domain": [("payment_id", "in", self.ids)], - } - - def action_validate_invoice_payment(self): - for record in self: - if record.payment_type == "inbound" and record.payment_method_code in ( - "check_printing", - "ACH-Out", - ): - if record.check_number <= 0: - raise ValidationError(_("Please Enter Check Number")) - return super().action_validate_invoice_payment() - - def post(self): - res = super().post() - for record in self: - if ( - record.payment_type == "inbound" - and record.payment_method_code - in ("check_printing", "ACH-Out", "manual") - and not record.invoice_ids - and record.check_number <= 0 - ): - raise ValidationError(_("Please Enter Check Number")) - return res diff --git a/advance_check_void/models/payment_check_history.py b/advance_check_void/models/payment_check_history.py deleted file mode 100644 index db40feff8..000000000 --- a/advance_check_void/models/payment_check_history.py +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class PaymentCheckHistory(models.Model): - _name = "payment.check.history" - _description = "Payment Info for the check Payment Feature" - _order = "id desc" - - name = fields.Char(readonly=True) - payment_id = fields.Many2one( - "account.payment", string="Payment Info", readonly=True - ) - partner_id = fields.Many2one("res.partner", string="Partner", readonly=True) - amount = fields.Float("Gross Amount", readonly=True) - check_number = fields.Integer(readonly=True) - check_amount = fields.Float(readonly=True) - journal_id = fields.Many2one("account.journal", "Journal", readonly=True) - date = fields.Date(readonly=True) - create_date = fields.Datetime(readonly=True) - write_date = fields.Datetime(readonly=True) - create_uid = fields.Many2one( - comodel_name="res.users", string="Created By", readonly=True - ) - write_uid = fields.Many2one( - comodel_name="res.users", string="Updated By", readonly=True - ) - state = fields.Selection( - [ - ("draft", "Draft"), - ("posted", "Posted"), - ("sent", "Sent"), - ("void", "Void"), - ("cancelled", "Cancelled"), - ("reconciled", "Reconciled"), - ], - readonly=True, - default="draft", - copy=False, - string="Status", - tracking=True, - ) - currency_id = fields.Many2one( - related="payment_id.currency_id", string="Currency", readonly=True, store=True - ) - is_visible_check = fields.Boolean( - help="Use for the visible or invisible check number." - ) - - def _valid_field_parameter(self, field, name): - # I can't even - return name == "tracking" or super()._valid_field_parameter(field, name) diff --git a/advance_check_void/models/payment_check_void.py b/advance_check_void/models/payment_check_void.py deleted file mode 100644 index cd7f46bf7..000000000 --- a/advance_check_void/models/payment_check_void.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class PaymentCheckVoid(models.Model): - _name = "payment.check.void" - _description = "Payment Check Void" - _order = "check_number" - - bill_ref = fields.Char("Bill Number") - create_date = fields.Date("Check Void Date") - check_number = fields.Integer() - state = fields.Selection([("void", "Void")], default="void") - payment_id = fields.Many2one("account.payment", "Payment") - void_reason = fields.Char() diff --git a/advance_check_void/readme/CONFIGURATION.rst b/advance_check_void/readme/CONFIGURATION.rst deleted file mode 100644 index 7fdd4af72..000000000 --- a/advance_check_void/readme/CONFIGURATION.rst +++ /dev/null @@ -1 +0,0 @@ -Install OSI Advance Check Void Module diff --git a/advance_check_void/readme/CONTRIBUTORS.rst b/advance_check_void/readme/CONTRIBUTORS.rst deleted file mode 100644 index e0e825ee6..000000000 --- a/advance_check_void/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Open Source Integrators `: - - * Murtada Karjikar - * Patrick Wilson diff --git a/advance_check_void/readme/DESCRIPTION.rst b/advance_check_void/readme/DESCRIPTION.rst deleted file mode 100644 index 8c10c3985..000000000 --- a/advance_check_void/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -This module is used to make vendor bill payments via checks and also void the checks. -With this module we can keep a track of payment check History and also see all voided Checks. diff --git a/advance_check_void/readme/USAGE.rst b/advance_check_void/readme/USAGE.rst deleted file mode 100644 index c3647675f..000000000 --- a/advance_check_void/readme/USAGE.rst +++ /dev/null @@ -1,9 +0,0 @@ -To use this module - -* Applicable to payments that are type Check only -* Go to Accounting > Vendors > Payments -* Go to the payment that has payment type Check and Check is printed -* There are two options of Void -* Void: Voids check only and allows to reprint check -* Void Check and Payment: Reverses payment on date specified, Opens bills, Reconciles AP and Bank accounts and log void details -* The payment is now in Void status for Audit purposes diff --git a/advance_check_void/security/ir.model.access.csv b/advance_check_void/security/ir.model.access.csv deleted file mode 100644 index 3ff9ed060..000000000 --- a/advance_check_void/security/ir.model.access.csv +++ /dev/null @@ -1,4 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_payment_check_history,payment.check.history,model_payment_check_history,,1,1,1,1 -access_payment_check_void,payment.check.void,model_payment_check_void,,1,1,1,1 -access_simple_void_check,simple.void.check,model_simple_void_check,,1,1,1,1 diff --git a/advance_check_void/static/description/icon.png b/advance_check_void/static/description/icon.png deleted file mode 100644 index 84791119f..000000000 Binary files a/advance_check_void/static/description/icon.png and /dev/null differ diff --git a/advance_check_void/views/account_payment_view.xml b/advance_check_void/views/account_payment_view.xml deleted file mode 100644 index 05105127f..000000000 --- a/advance_check_void/views/account_payment_view.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - account.payment.list.inherited - account.payment - - - - - - - - - - account.payment.form.inherited - account.payment - - 100 - - - - - - - - - - - - - - - payment.check.void.tree - payment.check.void - - - - - - - - - - - - - payment.check.void.form - payment.check.void - -
- - - - - - - - - - -
-
-
-
diff --git a/advance_check_void/views/payment_check_history_view.xml b/advance_check_void/views/payment_check_history_view.xml deleted file mode 100644 index ff07e0970..000000000 --- a/advance_check_void/views/payment_check_history_view.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - payment.check.details.tree - payment.check.history - - - - - - - - - - - - - - - - - - - - - - payment.check.details.search - payment.check.history - - - - - - - - - - - - - - - - - - - - payment.check.details.form - payment.check.history - -
- - - - - - - - - - - - - - - - - -
-
-
- - - Payment Check History - payment.check.history - tree,form - {'search_default_reconcilation':1} - [] - - - - - -
diff --git a/advance_check_void/wizard/__init__.py b/advance_check_void/wizard/__init__.py deleted file mode 100644 index abc281567..000000000 --- a/advance_check_void/wizard/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from . import account_move_reversal -from . import simple_void_check -from . import account_payment_register diff --git a/advance_check_void/wizard/account_move_reversal.py b/advance_check_void/wizard/account_move_reversal.py deleted file mode 100644 index c21f60bbb..000000000 --- a/advance_check_void/wizard/account_move_reversal.py +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -import logging - -from odoo import _, api, fields, models -from odoo.exceptions import ValidationError - -_logger = logging.getLogger(__name__) - - -class AccountMoveReversal(models.TransientModel): - _inherit = "account.move.reversal" - - action_type = fields.Selection( - [("void_check", "Void Check"), ("void_payment", "Void Check & Payment")], - string="Action", - default="void_check", - ) - void_reason = fields.Char() - - def reverse_moves(self): - res = super().reverse_moves() - payment_check_void_obj = self.env["payment.check.void"] - payment_check_history_obj = self.env["payment.check.history"] - today_date = fields.Date.to_string(fields.Date.context_today(self)) - if self._context.get("is_void_button") and self._context.get("payment_id"): - payment_id = self.env["account.payment"].browse( - self._context.get("payment_id") - ) - if payment_id.state in ("draft", "reversed"): - raise ValidationError( - _("You can only reverse payments with status of posted or sent.") - ) - if payment_id.reconciled_bill_ids == []: - raise ValidationError( - _("You can only void checks and payments linked to invoices.") - ) - - payment_check_void_obj.create( - { - "bill_ref": payment_id.ref, - "create_date": today_date, - "check_number": payment_id.check_number, - "state": "void", - "payment_id": payment_id.id, - "void_reason": self.void_reason, - } - ) - payment_id.write( - { - "payment_state": "reversed", - "is_hide_check": True, - "void_reason": self.void_reason, - } - ) - domain = [ - ("payment_id", "=", payment_id.id), - ("partner_id", "=", payment_id.partner_id.id), - ("journal_id", "=", payment_id.journal_id.id), - ] - payment_check_history_ids = payment_check_history_obj.search( - domain, order="id DESC", limit=1 - ) - payment_check_history_ids.write({"state": "void"}) - return res - - @api.model - def fields_view_get( - self, view_id=None, view_type=False, toolbar=False, submenu=False - ): - res = super().fields_view_get( - view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu - ) - context = self._context - pay_obj = self.env["account.payment"] - if context.get("active_model") == "account.payment" and context.get( - "active_ids" - ): - pay_ids = self._context.get("active_ids", False) - for pay in pay_obj.browse(pay_ids): - if pay.state in ("draft", "cancel"): - raise ValidationError( - _( - "State of payment is not posted or sent.\ - Please select posted or sent payments only to reverse payment" - ) - ) - return res - - @api.model - def default_get(self, fields): - res = super().default_get(fields) - if self._context.get("is_void_button") and self._context.get("account_move_id"): - move_id = self.env["account.move"].browse( - self._context.get("account_move_id") - ) - res["move_ids"] = move_id.ids - res["residual"] = len(move_id) == 1 and move_id.amount_residual or 0 - res["currency_id"] = ( - len(move_id.currency_id) == 1 and move_id.currency_id.id or False - ) - res["move_type"] = len(move_id) == 1 and move_id.move_type or False - return res diff --git a/advance_check_void/wizard/account_move_reversal_view.xml b/advance_check_void/wizard/account_move_reversal_view.xml deleted file mode 100644 index bd65da66e..000000000 --- a/advance_check_void/wizard/account_move_reversal_view.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - Reverse & Void Payment - account.move.reversal - tree,form - - new - - - account.move.reversal.form - account.move.reversal - - - - - - - - diff --git a/advance_check_void/wizard/account_payment_register.py b/advance_check_void/wizard/account_payment_register.py deleted file mode 100644 index 3cebe807f..000000000 --- a/advance_check_void/wizard/account_payment_register.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import _, models -from odoo.exceptions import ValidationError - - -class AccountRegisterPayment(models.TransientModel): - _inherit = "account.payment.register" - - def _prepare_payment_vals(self, invoices): - res = super()._prepare_payment_vals(invoices) - if ( - self.multi - and self.payment_type == "inbound" - and self.payment_method_code in ("check_printing", "ACH-Out", "manual") - and self.check_number - ): - raise ValidationError( - _( - "In order to receive multiple invoices\ - payment from same check number, you must use the same\ - Partner." - ) - ) - if ( - self.payment_type == "inbound" - and self.payment_method_code in ("check_printing", "ACH-Out", "manual") - and self.check_number <= 0 - ): - raise ValidationError(_("Please Enter Check Number")) - else: - if self.payment_type == "inbound" and self.payment_method_code in ( - "check_printing", - "ACH-Out", - ): - res.update( - { - "check_number": self.check_number, - "is_visible_check": True if self.check_number > 0 else False, - } - ) - return res diff --git a/advance_check_void/wizard/simple_void_check.py b/advance_check_void/wizard/simple_void_check.py deleted file mode 100644 index 2490876be..000000000 --- a/advance_check_void/wizard/simple_void_check.py +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (C) 2019 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class SimpleVoidCheck(models.TransientModel): - _name = "simple.void.check" - _description = "Void Check" - - void_reason = fields.Char() - payment_id = fields.Many2one("account.payment", string="Payment") - - def simple_void_check(self): - """Void Check.................""" - payment_check_void_obj = self.env["payment.check.void"] - check_hist_obj = self.env["payment.check.history"] - payment_check_void_obj.create( - { - "bill_ref": self.payment_id.ref, - "check_number": self.payment_id.check_number, - "state": "void", - "payment_id": self.payment_id.id, - "void_reason": self.void_reason, - } - ) - self.payment_id.write({"is_visible_check": False}) - # Update payment check history.. - check_ids = check_hist_obj.search( - [ - ("payment_id", "=", self.payment_id.id), - ("check_number", "=", self.payment_id.check_number), - ], - order="id desc", - limit=1, - ) - if check_ids: - check_ids.write({"state": "posted"}) - self.payment_id.action_unmark_sent() diff --git a/advance_check_void/wizard/simple_void_check.xml b/advance_check_void/wizard/simple_void_check.xml deleted file mode 100644 index 86335c6cf..000000000 --- a/advance_check_void/wizard/simple_void_check.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - simple_void_check_form - simple.void.check - -
- - - - -
-
-
-
-
-
diff --git a/documents_mrp/README.rst b/documents_mrp/README.rst deleted file mode 100644 index 58615eace..000000000 --- a/documents_mrp/README.rst +++ /dev/null @@ -1,84 +0,0 @@ -=============================== -Documents for Production Orders -=============================== - -.. |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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/OCA/osi-addons/tree/14.0/osi_custom_profit_loss - :alt: OCA/osi-addons - -|badge1| |badge2| |badge3| - -This module provides a documents folder where all the files attached to production -orders will be available. - -**Table of contents** - -.. contents:: - :local: - -Usage -===== - -* Go to Manufacturing > Operations > Manufacturing Orders -* Create or open a record -* Upload a file as an attachment -* Go to Documents -* Select the Manufacturing folder -* Select the file uploaded previously. It is linked to the Manufacturing Order. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* `Open Source Integrators `__: - - * Antonio Yamuta - * Maxime Chambreuil - * Melody Fetterly - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://www.opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of -open source business process consulting and implementations. - -.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px - :target: https://github.com/max3903 - :alt: max3903 - -Current `maintainer `__: - -|maintainer-max3903| - -This module is part of the `OSI Addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/documents_mrp/__init__.py b/documents_mrp/__init__.py deleted file mode 100644 index 708e164fd..000000000 --- a/documents_mrp/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import models diff --git a/documents_mrp/__manifest__.py b/documents_mrp/__manifest__.py deleted file mode 100644 index d5bcfb8cc..000000000 --- a/documents_mrp/__manifest__.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Documents - MRP", - "summary": "Documents for Production Orders", - "category": "Productivity/Documents", - "website": "https://github.com/ursais/osi-addons", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "version": "17.0.1.0.0", - "license": "LGPL-3", - "depends": ["documents", "mrp"], - "data": [ - "data/documents_folder.xml", - "data/res_company.xml", - "data/documents_facet.xml", - "data/documents_tag.xml", - "views/res_config_settings.xml", - ], - "development_status": "Beta", - "maintainers": ["max3903"], -} diff --git a/documents_mrp/data/documents_facet.xml b/documents_mrp/data/documents_facet.xml deleted file mode 100644 index 4dc41a0c9..000000000 --- a/documents_mrp/data/documents_facet.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - Documents - 5 - - - - diff --git a/documents_mrp/data/documents_folder.xml b/documents_mrp/data/documents_folder.xml deleted file mode 100644 index 561c5e3ec..000000000 --- a/documents_mrp/data/documents_folder.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Manufacturing - 14 - - - diff --git a/documents_mrp/data/documents_tag.xml b/documents_mrp/data/documents_tag.xml deleted file mode 100644 index 9d417eeea..000000000 --- a/documents_mrp/data/documents_tag.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - New - - 10 - - - diff --git a/documents_mrp/data/res_company.xml b/documents_mrp/data/res_company.xml deleted file mode 100644 index 5965e430d..000000000 --- a/documents_mrp/data/res_company.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/documents_mrp/models/__init__.py b/documents_mrp/models/__init__.py deleted file mode 100644 index 7239195a0..000000000 --- a/documents_mrp/models/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import res_company -from . import mrp_production -from . import res_config_settings diff --git a/documents_mrp/models/mrp_production.py b/documents_mrp/models/mrp_production.py deleted file mode 100644 index 688f552f4..000000000 --- a/documents_mrp/models/mrp_production.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class MrpProduction(models.Model): - _name = "mrp.production" - _inherit = ["mrp.production", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.mrp_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.mrp_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return company.documents_mrp_settings and super()._check_create_documents() diff --git a/documents_mrp/models/res_company.py b/documents_mrp/models/res_company.py deleted file mode 100644 index a8370ab2c..000000000 --- a/documents_mrp/models/res_company.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class ResCompany(models.Model): - _inherit = "res.company" - - def _domain_company(self): - company = self.env.company - return ["|", ("company_id", "=", False), ("company_id", "=", company)] - - documents_mrp_settings = fields.Boolean() - mrp_folder = fields.Many2one( - "documents.folder", - string="Manufacturing Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_mrp_folder", raise_if_not_found=False - ), - ) - mrp_tags = fields.Many2many("documents.tag", "mrp_tags_table") diff --git a/documents_mrp/models/res_config_settings.py b/documents_mrp/models/res_config_settings.py deleted file mode 100644 index 6f59050ff..000000000 --- a/documents_mrp/models/res_config_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import api, fields, models - - -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" - - documents_mrp_settings = fields.Boolean( - related="company_id.documents_mrp_settings", - readonly=False, - string="Manufacturing", - ) - mrp_folder = fields.Many2one( - "documents.folder", - related="company_id.mrp_folder", - readonly=False, - string="Manufacturing Default Workspace", - ) - mrp_tags = fields.Many2many( - "documents.tag", - "mrp_tags_table", - related="company_id.mrp_tags", - readonly=False, - string="Manufacturing Tags", - ) - - @api.onchange("mrp_folder") - def on_mrp_folder_change(self): - if self.mrp_folder != self.mrp_tags.mapped("folder_id"): - self.mrp_tags = False diff --git a/documents_mrp/static/description/icon.png b/documents_mrp/static/description/icon.png deleted file mode 100644 index ff28f5b3a..000000000 Binary files a/documents_mrp/static/description/icon.png and /dev/null differ diff --git a/documents_mrp/views/res_config_settings.xml b/documents_mrp/views/res_config_settings.xml deleted file mode 100644 index 313d4d2fe..000000000 --- a/documents_mrp/views/res_config_settings.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - res.config.settings.documents.mrp - res.config.settings - - - - - 0 - - - - - -
-
-
-
-
-
-
-
-
-
-
- -
diff --git a/documents_partner/README.rst b/documents_partner/README.rst deleted file mode 100644 index e22bfab9d..000000000 --- a/documents_partner/README.rst +++ /dev/null @@ -1,84 +0,0 @@ -===================== -Documents for Vendors -===================== - -.. |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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/OCA/osi-addons/tree/14.0/osi_custom_profit_loss - :alt: OCA/osi-addons - -|badge1| |badge2| |badge3| - -This module provides a documents folder where all the files attached to partners will -be available. - -**Table of contents** - -.. contents:: - :local: - -Usage -===== - -* Go to Purchase > Orders > Vendors -* Create or open a record -* Upload a file as an attachment -* Go to Documents -* Select the Vendors folder -* Select the file uploaded previously. It is linked to the vendor. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* `Open Source Integrators `__: - - * Antonio Yamuta - * Maxime Chambreuil - * Melody Fetterly - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://www.opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of -open source business process consulting and implementations. - -.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px - :target: https://github.com/max3903 - :alt: max3903 - -Current `maintainer `__: - -|maintainer-max3903| - -This module is part of the `OSI Addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/documents_partner/__init__.py b/documents_partner/__init__.py deleted file mode 100644 index 708e164fd..000000000 --- a/documents_partner/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import models diff --git a/documents_partner/__manifest__.py b/documents_partner/__manifest__.py deleted file mode 100644 index e7606dea1..000000000 --- a/documents_partner/__manifest__.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Documents for Partners", - "summary": "Manage documents attached to partners", - "category": "Productivity/Documents", - "website": "https://github.com/ursais/osi-addons", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "version": "17.0.1.0.0", - "license": "LGPL-3", - "depends": ["documents", "contacts"], - "data": [ - "data/documents_folder.xml", - "data/res_company.xml", - "data/documents_facet.xml", - "data/documents_tag.xml", - "views/res_config_settings.xml", - ], - "development_status": "Beta", - "maintainers": ["max3903"], -} diff --git a/documents_partner/data/documents_facet.xml b/documents_partner/data/documents_facet.xml deleted file mode 100644 index 964651d87..000000000 --- a/documents_partner/data/documents_facet.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - Documents - 5 - - - - diff --git a/documents_partner/data/documents_folder.xml b/documents_partner/data/documents_folder.xml deleted file mode 100644 index bd6a320af..000000000 --- a/documents_partner/data/documents_folder.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Partners - 14 - - - diff --git a/documents_partner/data/documents_tag.xml b/documents_partner/data/documents_tag.xml deleted file mode 100644 index 7094ba640..000000000 --- a/documents_partner/data/documents_tag.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - New - - 10 - - - diff --git a/documents_partner/data/res_company.xml b/documents_partner/data/res_company.xml deleted file mode 100644 index 53aa53663..000000000 --- a/documents_partner/data/res_company.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/documents_partner/models/__init__.py b/documents_partner/models/__init__.py deleted file mode 100644 index 8909b98f4..000000000 --- a/documents_partner/models/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import res_company -from . import res_partner -from . import res_config_settings diff --git a/documents_partner/models/res_company.py b/documents_partner/models/res_company.py deleted file mode 100644 index 275cc85fe..000000000 --- a/documents_partner/models/res_company.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class ResCompany(models.Model): - _inherit = "res.company" - - def _domain_company(self): - company = self.env.company - return ["|", ("company_id", "=", False), ("company_id", "=", company)] - - documents_partner_settings = fields.Boolean() - partner_folder = fields.Many2one( - "documents.folder", - string="Partner Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_partner_folder", raise_if_not_found=False - ), - ) - partner_tags = fields.Many2many("documents.tag", "partner_tags_table") diff --git a/documents_partner/models/res_config_settings.py b/documents_partner/models/res_config_settings.py deleted file mode 100644 index ca2977f1f..000000000 --- a/documents_partner/models/res_config_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import api, fields, models - - -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" - - documents_partner_settings = fields.Boolean( - related="company_id.documents_partner_settings", - readonly=False, - string="Partners", - ) - partner_folder = fields.Many2one( - "documents.folder", - related="company_id.partner_folder", - readonly=False, - string="Partners Default Workspace", - ) - partner_tags = fields.Many2many( - "documents.tag", - "partner_tags_table", - related="company_id.partner_tags", - readonly=False, - string="Partners Tags", - ) - - @api.onchange("partner_folder") - def on_partner_folder_change(self): - if self.partner_folder != self.partner_tags.mapped("folder_id"): - self.partner_tags = False diff --git a/documents_partner/models/res_partner.py b/documents_partner/models/res_partner.py deleted file mode 100644 index 491ef0e70..000000000 --- a/documents_partner/models/res_partner.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class ResPartner(models.Model): - _name = "res.partner" - _inherit = ["res.partner", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.partner_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.partner_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return company.documents_partner_settings and super()._check_create_documents() diff --git a/documents_partner/static/description/icon.png b/documents_partner/static/description/icon.png deleted file mode 100644 index ff28f5b3a..000000000 Binary files a/documents_partner/static/description/icon.png and /dev/null differ diff --git a/documents_partner/views/res_config_settings.xml b/documents_partner/views/res_config_settings.xml deleted file mode 100644 index 9bb455a3a..000000000 --- a/documents_partner/views/res_config_settings.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - res.config.settings.documents.partner - res.config.settings - - - - - 0 - - - - - -
-
-
-
-
-
-
-
-
-
-
- -
diff --git a/documents_purchase/README.rst b/documents_purchase/README.rst deleted file mode 100644 index af67436c9..000000000 --- a/documents_purchase/README.rst +++ /dev/null @@ -1,84 +0,0 @@ -============================= -Documents for Purchase Orders -============================= - -.. |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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/OCA/osi-addons/tree/14.0/osi_custom_profit_loss - :alt: OCA/osi-addons - -|badge1| |badge2| |badge3| - -This module provides a documents folder where all the purchase orders attachments will -be available. - -**Table of contents** - -.. contents:: - :local: - -Usage -===== - -* Go to Purchase > Orders > Requests for Quotation (or Purchase Orders) -* Create or open a record -* Upload a file as an attachment -* Go to Documents -* Select the Purchase folder -* Select the file uploaded previously. It is linked to the Purchase Order. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* `Open Source Integrators `__: - - * Antonio Yamuta - * Maxime Chambreuil - * Melody Fetterly - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://www.opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of -open source business process consulting and implementations. - -.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px - :target: https://github.com/max3903 - :alt: max3903 - -Current `maintainer `__: - -|maintainer-max3903| - -This module is part of the `OSI Addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/documents_purchase/__init__.py b/documents_purchase/__init__.py deleted file mode 100644 index 708e164fd..000000000 --- a/documents_purchase/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import models diff --git a/documents_purchase/__manifest__.py b/documents_purchase/__manifest__.py deleted file mode 100644 index cfc5daa99..000000000 --- a/documents_purchase/__manifest__.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Documents - Purchase", - "summary": "Documents for Purchase Orders", - "category": "Productivity/Documents", - "website": "https://github.com/ursais/osi-addons", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "version": "17.0.1.0.0", - "license": "LGPL-3", - "depends": ["documents", "purchase"], - "data": [ - "data/documents_folder.xml", - "data/res_company.xml", - "data/documents_facet.xml", - "data/documents_tag.xml", - "views/res_config_settings.xml", - ], - "development_status": "Beta", - "maintainers": ["max3903"], -} diff --git a/documents_purchase/data/documents_facet.xml b/documents_purchase/data/documents_facet.xml deleted file mode 100644 index 381e8e13b..000000000 --- a/documents_purchase/data/documents_facet.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - Documents - 5 - - - - diff --git a/documents_purchase/data/documents_folder.xml b/documents_purchase/data/documents_folder.xml deleted file mode 100644 index a99915dd1..000000000 --- a/documents_purchase/data/documents_folder.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Purchase - 14 - - - diff --git a/documents_purchase/data/documents_tag.xml b/documents_purchase/data/documents_tag.xml deleted file mode 100644 index e7a31c501..000000000 --- a/documents_purchase/data/documents_tag.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - New - - 10 - - - diff --git a/documents_purchase/data/res_company.xml b/documents_purchase/data/res_company.xml deleted file mode 100644 index 00cfc4f50..000000000 --- a/documents_purchase/data/res_company.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/documents_purchase/models/__init__.py b/documents_purchase/models/__init__.py deleted file mode 100644 index 9ccfdeec1..000000000 --- a/documents_purchase/models/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import res_company -from . import purchase_order -from . import res_config_settings diff --git a/documents_purchase/models/purchase_order.py b/documents_purchase/models/purchase_order.py deleted file mode 100644 index 862a1345c..000000000 --- a/documents_purchase/models/purchase_order.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class PurchaseOrder(models.Model): - _name = "purchase.order" - _inherit = ["purchase.order", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.purchase_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.purchase_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return company.documents_purchase_settings and super()._check_create_documents() diff --git a/documents_purchase/models/res_company.py b/documents_purchase/models/res_company.py deleted file mode 100644 index d67c84a10..000000000 --- a/documents_purchase/models/res_company.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class ResCompany(models.Model): - _inherit = "res.company" - - def _domain_company(self): - company = self.env.company - return ["|", ("company_id", "=", False), ("company_id", "=", company)] - - documents_purchase_settings = fields.Boolean() - purchase_folder = fields.Many2one( - "documents.folder", - string="Purchase Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_purchase_folder", raise_if_not_found=False - ), - ) - purchase_tags = fields.Many2many("documents.tag", "purchase_tags_table") diff --git a/documents_purchase/models/res_config_settings.py b/documents_purchase/models/res_config_settings.py deleted file mode 100644 index 91361f913..000000000 --- a/documents_purchase/models/res_config_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import api, fields, models - - -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" - - documents_purchase_settings = fields.Boolean( - related="company_id.documents_purchase_settings", - readonly=False, - string="Purchase", - ) - purchase_folder = fields.Many2one( - "documents.folder", - related="company_id.purchase_folder", - readonly=False, - string="Purchase Default Workspace", - ) - purchase_tags = fields.Many2many( - "documents.tag", - "purchase_tags_table", - related="company_id.purchase_tags", - readonly=False, - string="Purchase Tags", - ) - - @api.onchange("purchase_folder") - def on_purchase_folder_change(self): - if self.purchase_folder != self.purchase_tags.mapped("folder_id"): - self.purchase_tags = False diff --git a/documents_purchase/static/description/icon.png b/documents_purchase/static/description/icon.png deleted file mode 100644 index ff28f5b3a..000000000 Binary files a/documents_purchase/static/description/icon.png and /dev/null differ diff --git a/documents_purchase/views/res_config_settings.xml b/documents_purchase/views/res_config_settings.xml deleted file mode 100644 index ebb3a7765..000000000 --- a/documents_purchase/views/res_config_settings.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - res.config.settings.documents.purchase - res.config.settings - - - - - 0 - - - - - -
-
-
-
-
-
-
-
-
-
-
- -
diff --git a/documents_quality/README.rst b/documents_quality/README.rst deleted file mode 100644 index e6a921eb9..000000000 --- a/documents_quality/README.rst +++ /dev/null @@ -1,98 +0,0 @@ -===================== -Documents for Quality -===================== - -.. |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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/OCA/osi-addons/tree/14.0/osi_custom_profit_loss - :alt: OCA/osi-addons - -|badge1| |badge2| |badge3| - -This module provides 3 documents folders where all the files attached to: - -* quality control points -* quality checks -* quality alerts - -will be available. - -**Table of contents** - -.. contents:: - :local: - -Configure -========= - -* Go to Documents > Settings -* Activate the settings -* Change the folder -* Set the tags - -Usage -===== - -* Go to Quality > Quality Control > Control Points (or Quality Checks or Quality Alerts) -* Create or open a record -* Upload a file as an attachment -* Go to Documents -* Select the Quality Control Points (or Quality Checks or Quality Alerts) folder -* Select the file uploaded previously. It is linked to the quality control point - (or quality check or quality alert). - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* `Open Source Integrators `__: - - * Antonio Yamuta - * Maxime Chambreuil - * Melody Fetterly - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://www.opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of -open source business process consulting and implementations. - -.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px - :target: https://github.com/max3903 - :alt: max3903 - -Current `maintainer `__: - -|maintainer-max3903| - -This module is part of the `OSI Addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/documents_quality/__init__.py b/documents_quality/__init__.py deleted file mode 100644 index 708e164fd..000000000 --- a/documents_quality/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import models diff --git a/documents_quality/__manifest__.py b/documents_quality/__manifest__.py deleted file mode 100644 index a5e2abfcc..000000000 --- a/documents_quality/__manifest__.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Documents - Quality", - "summary": "Documents for Quality Control Points, Checks and Alerts", - "category": "Productivity/Documents", - "website": "https://github.com/ursais/osi-addons", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "version": "17.0.1.0.0", - "license": "LGPL-3", - "depends": ["documents", "quality"], - "data": [ - "data/documents_folder.xml", - "data/res_company.xml", - "data/documents_facet.xml", - "data/documents_tag.xml", - "views/res_config_settings.xml", - ], - "development_status": "Beta", - "maintainers": ["max3903"], -} diff --git a/documents_quality/data/documents_facet.xml b/documents_quality/data/documents_facet.xml deleted file mode 100644 index 742f243ce..000000000 --- a/documents_quality/data/documents_facet.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - Documents - 5 - - - - - Documents - 5 - - - - - Documents - 5 - - - - diff --git a/documents_quality/data/documents_folder.xml b/documents_quality/data/documents_folder.xml deleted file mode 100644 index e3df145ae..000000000 --- a/documents_quality/data/documents_folder.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - Quality - 20 - - - - Control Points - 20 - - - - - Checks - 25 - - - - - Alerts - 30 - - - - diff --git a/documents_quality/data/documents_tag.xml b/documents_quality/data/documents_tag.xml deleted file mode 100644 index 9e94a3e2d..000000000 --- a/documents_quality/data/documents_tag.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - New - - 10 - - - - New - - 10 - - - - New - - 10 - - - diff --git a/documents_quality/data/res_company.xml b/documents_quality/data/res_company.xml deleted file mode 100644 index 769deda5a..000000000 --- a/documents_quality/data/res_company.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/documents_quality/models/__init__.py b/documents_quality/models/__init__.py deleted file mode 100644 index 69dc3b727..000000000 --- a/documents_quality/models/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import ( - quality_point, - quality_check, - quality_alert, - res_config_settings, - res_company, -) diff --git a/documents_quality/models/quality_alert.py b/documents_quality/models/quality_alert.py deleted file mode 100644 index e3e2e2724..000000000 --- a/documents_quality/models/quality_alert.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class QualityAlert(models.Model): - _name = "quality.alert" - _inherit = ["quality.alert", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.quality_alert_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.quality_alert_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return ( - company.documents_quality_alert_settings - and super()._check_create_documents() - ) diff --git a/documents_quality/models/quality_check.py b/documents_quality/models/quality_check.py deleted file mode 100644 index c053a61c4..000000000 --- a/documents_quality/models/quality_check.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class QualityCheck(models.Model): - _name = "quality.check" - _inherit = ["quality.check", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.quality_check_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.quality_check_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return ( - company.documents_quality_check_settings - and super()._check_create_documents() - ) diff --git a/documents_quality/models/quality_point.py b/documents_quality/models/quality_point.py deleted file mode 100644 index 69248225c..000000000 --- a/documents_quality/models/quality_point.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class QualityPoint(models.Model): - _name = "quality.point" - _inherit = ["quality.point", "documents.mixin"] - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.quality_point_tags - - def _get_document_folder(self): - company = self.company_id or self.env.company - return company.quality_point_folder - - def _check_create_documents(self): - company = self.company_id or self.env.company - return ( - company.documents_quality_point_settings - and super()._check_create_documents() - ) diff --git a/documents_quality/models/res_company.py b/documents_quality/models/res_company.py deleted file mode 100644 index 4296d3a64..000000000 --- a/documents_quality/models/res_company.py +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class ResCompany(models.Model): - _inherit = "res.company" - - def _domain_company(self): - company = self.env.company or self.env.user.company_id.id - return ["|", ("company_id", "=", False), ("company_id", "=", company)] - - # Quality Control Points - documents_quality_point_settings = fields.Boolean() - quality_point_folder = fields.Many2one( - "documents.folder", - string="Quality Control Points Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_quality_point_folder", raise_if_not_found=False - ), - ) - quality_point_tags = fields.Many2many("documents.tag", "quality_point_tags_table") - - # Quality Checks - documents_quality_check_settings = fields.Boolean() - quality_check_folder = fields.Many2one( - "documents.folder", - string="Quality Checks Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_quality_check_folder", raise_if_not_found=False - ), - ) - quality_check_tags = fields.Many2many("documents.tag", "quality_check_tags_table") - - # Quality Alerts - documents_quality_alert_settings = fields.Boolean() - quality_alert_folder = fields.Many2one( - "documents.folder", - string="Quality Alerts Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_quality_alert_folder", raise_if_not_found=False - ), - ) - quality_alert_tags = fields.Many2many("documents.tag", "quality_alert_tags_table") diff --git a/documents_quality/models/res_config_settings.py b/documents_quality/models/res_config_settings.py deleted file mode 100644 index acfb4d49e..000000000 --- a/documents_quality/models/res_config_settings.py +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import api, fields, models - - -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" - - # Quality Control Points - documents_quality_point_settings = fields.Boolean( - related="company_id.documents_quality_point_settings", - readonly=False, - string="Quality Control Points", - ) - quality_point_folder = fields.Many2one( - "documents.folder", - related="company_id.quality_point_folder", - readonly=False, - string="Quality Control Points Default Workspace", - ) - quality_point_tags = fields.Many2many( - "documents.tag", - "quality_point_tags_table", - related="company_id.quality_point_tags", - readonly=False, - string="Quality Control Points Tags", - ) - - @api.onchange("quality_point_folder") - def on_quality_point_folder_change(self): - if self.quality_point_folder != self.quality_point_tags.mapped("folder_id"): - self.quality_point_tags = False - - # Quality Checks - documents_quality_check_settings = fields.Boolean( - related="company_id.documents_quality_check_settings", - readonly=False, - string="Quality Checks", - ) - quality_check_folder = fields.Many2one( - "documents.folder", - related="company_id.quality_check_folder", - readonly=False, - string="Quality Checks Default Workspace", - ) - quality_check_tags = fields.Many2many( - "documents.tag", - "quality_check_tags_table", - related="company_id.quality_check_tags", - readonly=False, - string="Quality Checks Tags", - ) - - @api.onchange("quality_check_folder") - def on_quality_check_folder_change(self): - if self.quality_check_folder != self.quality_check_tags.mapped("folder_id"): - self.quality_check_tags = False - - # Quality Alerts - documents_quality_alert_settings = fields.Boolean( - related="company_id.documents_quality_alert_settings", - readonly=False, - string="Quality Alerts", - ) - quality_alert_folder = fields.Many2one( - "documents.folder", - related="company_id.quality_alert_folder", - readonly=False, - string="Quality Alerts Default Workspace", - ) - quality_alert_tags = fields.Many2many( - "documents.tag", - "quality_alert_tags_table", - related="company_id.quality_alert_tags", - readonly=False, - string="Quality Alerts Tags", - ) - - @api.onchange("quality_alert_folder") - def on_quality_alert_folder_change(self): - if self.quality_alert_folder != self.quality_alert_tags.mapped("folder_id"): - self.quality_alert_tags = False diff --git a/documents_quality/static/description/icon.png b/documents_quality/static/description/icon.png deleted file mode 100644 index ff28f5b3a..000000000 Binary files a/documents_quality/static/description/icon.png and /dev/null differ diff --git a/documents_quality/views/res_config_settings.xml b/documents_quality/views/res_config_settings.xml deleted file mode 100644 index 65b814580..000000000 --- a/documents_quality/views/res_config_settings.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - res.config.settings.documents.purchase - res.config.settings - - - - - 0 - - - - - - -
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- -
diff --git a/documents_stock_lot/README.rst b/documents_stock_lot/README.rst deleted file mode 100644 index 1de9a2ac5..000000000 --- a/documents_stock_lot/README.rst +++ /dev/null @@ -1,86 +0,0 @@ -================================== -Documents for Lot/Tracking Numbers -================================== - -.. |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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-ursais%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/ursais/osi-addons/tree/17.0/documents_stock_lot - :alt: ursais/osi-addons - -|badge1| |badge2| |badge3| - -This module allows you to create a document when attaching a file to a lot/tracking -number. It also allows you to upload a document and attach it to an existing lot. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -#. Go to Documents -#. Activate the lot/tracking number -#. Configure the folder and the tags - -Usage -===== - -To use this module, you need to: - -#. Go to Inventory > Products > Lot/Tracking Numbers -#. Create or select a lot/tracking number -#. Add an attachment -#. Go to Documents -#. Select the Lot/Tracking Numbers folder -#. Select the file uploaded previously. It is linked to the lot/tracking number. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Vimal Patel - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of open source -business process consulting and implementations. - -This module is part of the `ursais/osi-addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/documents_stock_lot/__init__.py b/documents_stock_lot/__init__.py deleted file mode 100644 index 54bda241d..000000000 --- a/documents_stock_lot/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import wizards -from . import models diff --git a/documents_stock_lot/__manifest__.py b/documents_stock_lot/__manifest__.py deleted file mode 100644 index f39f8ad65..000000000 --- a/documents_stock_lot/__manifest__.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Documents for lot/tracking number", - "version": "17.0.1.0.0", - "category": "Documents", - "summary": """Manage documents attached to lot/tracking numbers""", - "website": "https://github.com/ursais/osi-addons", - "author": "Open Source Integrators", - "license": "LGPL-3", - "depends": ["documents", "stock"], - "data": [ - "security/ir.model.access.csv", - "data/documents_folder.xml", - "data/documents_facet.xml", - "data/documents_tag.xml", - "data/documents_workflow_rule.xml", - "data/res_company.xml", - "views/res_config_settings.xml", - "wizards/select_lot_view.xml", - ], - "maintainers": ["bodedra"], -} diff --git a/documents_stock_lot/data/documents_facet.xml b/documents_stock_lot/data/documents_facet.xml deleted file mode 100644 index 3058cbf3f..000000000 --- a/documents_stock_lot/data/documents_facet.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - Lot - 6 - - - - diff --git a/documents_stock_lot/data/documents_folder.xml b/documents_stock_lot/data/documents_folder.xml deleted file mode 100644 index a5499fec0..000000000 --- a/documents_stock_lot/data/documents_folder.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - Lot/Tracking Numbers - - - True - 12 - - - diff --git a/documents_stock_lot/data/documents_tag.xml b/documents_stock_lot/data/documents_tag.xml deleted file mode 100644 index 7d1fc9ad8..000000000 --- a/documents_stock_lot/data/documents_tag.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - New - - 10 - - - diff --git a/documents_stock_lot/data/documents_workflow_rule.xml b/documents_stock_lot/data/documents_workflow_rule.xml deleted file mode 100644 index 153210b0f..000000000 --- a/documents_stock_lot/data/documents_workflow_rule.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - Attach to Lot/Tracking Number - - criteria - stock.lot - - - diff --git a/documents_stock_lot/data/res_company.xml b/documents_stock_lot/data/res_company.xml deleted file mode 100644 index 4530fe104..000000000 --- a/documents_stock_lot/data/res_company.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/documents_stock_lot/models/__init__.py b/documents_stock_lot/models/__init__.py deleted file mode 100644 index 33f0f5919..000000000 --- a/documents_stock_lot/models/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import ( - res_company, - res_config_settings, - stock_lot, - documents_workflow_rule, -) diff --git a/documents_stock_lot/models/documents_workflow_rule.py b/documents_stock_lot/models/documents_workflow_rule.py deleted file mode 100644 index c71768f05..000000000 --- a/documents_stock_lot/models/documents_workflow_rule.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class DocumentsWorkflowRule(models.Model): - _inherit = ["documents.workflow.rule"] - - def _compute_business(self): - return self._get_business() - - has_business_option = fields.Boolean(default=True, compute="_compute_business") - create_model = fields.Selection( - selection_add=[("stock.lot", "Lot/Tracking Number")] - ) - - def create_record(self, documents=None): - res = super().create_record(documents=documents) - if self.create_model == "stock.lot": - ctx = self._context.copy() - ctx.update({"documents": documents.ids}) - view_id = self.env.ref("documents_stock_lot.select_lot_view_form").id - return { - "type": "ir.actions.act_window", - "res_model": "select.lot", - "name": "Lot/Tracking Number", - "context": ctx, - "view_mode": "form", - "target": "new", - "views": [(view_id, "form")], - "view_id": view_id, - } - return res diff --git a/documents_stock_lot/models/res_company.py b/documents_stock_lot/models/res_company.py deleted file mode 100644 index d43a2b440..000000000 --- a/documents_stock_lot/models/res_company.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class ResCompany(models.Model): - _inherit = "res.company" - - def _domain_company(self): - company = self.env.company - return ["|", ("company_id", "=", False), ("company_id", "=", company)] - - documents_lot_settings = fields.Boolean() - lot_folder = fields.Many2one( - "documents.folder", - string="Lot/Tracking Number Workspace", - domain=_domain_company, - default=lambda self: self.env.ref( - "documents_stock_lot.documents_folder_lot", - raise_if_not_found=False, - ), - ) - document_lot_tags = fields.Many2many( - "documents.tag", "document_lot_tags", string="Lot/Tracking Number Tags" - ) diff --git a/documents_stock_lot/models/res_config_settings.py b/documents_stock_lot/models/res_config_settings.py deleted file mode 100644 index 4050bab81..000000000 --- a/documents_stock_lot/models/res_config_settings.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import api, fields, models - - -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" - - documents_lot_settings = fields.Boolean( - related="company_id.documents_lot_settings", - readonly=False, - string="Lot", - ) - lot_folder = fields.Many2one( - "documents.folder", - related="company_id.lot_folder", - readonly=False, - string="Lot Default Workspace", - ) - lot_tags = fields.Many2many( - "documents.tag", - "document_lot_tag", - related="company_id.document_lot_tags", - readonly=False, - string="Lot Tags", - ) - - @api.onchange("lot_folder") - def _onchange_lot_folder(self): - if self.lot_folder != self.lot_tags.mapped("folder_id"): - self.lot_tags = False diff --git a/documents_stock_lot/models/stock_lot.py b/documents_stock_lot/models/stock_lot.py deleted file mode 100644 index 23677488a..000000000 --- a/documents_stock_lot/models/stock_lot.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models - - -class StockLot(models.Model): - _name = "stock.lot" - _inherit = ["stock.lot", "documents.mixin"] - - def _get_document_folder(self): - return self.company_id.lot_folder - - def _get_document_tags(self): - company = self.company_id or self.env.company - return company.document_lot_tags - - def _check_create_documents(self): - company = self.company_id or self.env.company - return company.documents_lot_settings and super()._check_create_documents() diff --git a/documents_stock_lot/security/ir.model.access.csv b/documents_stock_lot/security/ir.model.access.csv deleted file mode 100644 index d705039d5..000000000 --- a/documents_stock_lot/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_select_lot,access_select_lot,model_select_lot,base.group_user,1,1,1,1 diff --git a/documents_stock_lot/static/description/icon.png b/documents_stock_lot/static/description/icon.png deleted file mode 100644 index ff28f5b3a..000000000 Binary files a/documents_stock_lot/static/description/icon.png and /dev/null differ diff --git a/documents_stock_lot/views/res_config_settings.xml b/documents_stock_lot/views/res_config_settings.xml deleted file mode 100644 index 06e734cd3..000000000 --- a/documents_stock_lot/views/res_config_settings.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - res.config.settings.view.form.documents.lot - res.config.settings - - - - - 0 - - - - - -
-
-
-
-
-
-
-
-
-
-
- -
diff --git a/documents_stock_lot/wizards/__init__.py b/documents_stock_lot/wizards/__init__.py deleted file mode 100644 index 41c7f543c..000000000 --- a/documents_stock_lot/wizards/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -from . import select_lot diff --git a/documents_stock_lot/wizards/select_lot.py b/documents_stock_lot/wizards/select_lot.py deleted file mode 100644 index daff8e920..000000000 --- a/documents_stock_lot/wizards/select_lot.py +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (C) 2021 Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import fields, models - - -class SelectLot(models.TransientModel): - _name = "select.lot" - _description = "Select existing Lot/Tracking Number" - - lot_id = fields.Many2one( - "stock.lot", - string="Lot/Tracking Number", - ) - - def action_select_lot_number(self): - ctx = self._context - if ctx.get("documents"): - documents = self.env["documents.document"].browse(ctx["documents"]) - for document in documents: - # this_document is the document in use for the workflow - this_document = document - if ( - document.res_model or document.res_id - ) and document.res_model != "documents.document": - attachment_copy = document.attachment_id.with_context( - no_document=True - ).copy() - this_document = document.copy({"attachment_id": attachment_copy.id}) - this_document.write( - { - "res_model": self.lot_id._name, - "res_id": self.lot_id.id, - } - ) - view_id = self.env.ref("stock.view_production_lot_form").id - return { - "type": "ir.actions.act_window", - "res_model": "stock.lot", - "name": "Lot/Tracking Number", - "context": ctx, - "view_mode": "form", - "views": [(view_id, "form")], - "res_id": self.lot_id.id, - "view_id": view_id, - "target": "current", - } diff --git a/documents_stock_lot/wizards/select_lot_view.xml b/documents_stock_lot/wizards/select_lot_view.xml deleted file mode 100644 index d93590fb9..000000000 --- a/documents_stock_lot/wizards/select_lot_view.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - select.lot.view.form - select.lot - -
- - - - - -
-
-
-
-
-
diff --git a/l10n_mx_edi_addenda_audi/README.rst b/l10n_mx_edi_addenda_audi/README.rst deleted file mode 100644 index 33bf48e74..000000000 --- a/l10n_mx_edi_addenda_audi/README.rst +++ /dev/null @@ -1,116 +0,0 @@ -============ -Addenda Audi -============ - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-ursais%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/ursais/osi-addons/tree/17.0/l10n_mx_edi_addenda_audi - :alt: ursais/osi-addons - -|badge1| |badge2| |badge3| - -This module adds the addenda of Audi and allows you to generate electronic invoices. - -How To Test -=========== - -Go to `https://cfdi.audi.com.mx `_. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -Customer -~~~~~~~~ - -#. Go to Accounting > Customers > Customers -#. Create a new partner "Audi" with the complete address -#. In the "Sales and Purchase" tab, select the "Addenda Audi" for the addenda - -Product -~~~~~~~ - -#. Go to Sales > Products > Products -#. Create a new product or edit an existing one -#. In the "Accounting" tab, fill in the Audi reference that corresponds to - the part number - -Usage -===== - -To use this module, you need to: - -#. Go to Accounting > Customers > Invoices -#. Create a new invoice fo Audi -#. In the "Other Information" tab, fill in the Customer reference field -#. In the "Addenda Audi" tab, fill in the business unit and applicant email - fields - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Santiago Rodriguez -* Edgar Martinez -* Samuel Macias -* Maxime Chambreuil - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of open source -business process consulting and implementations. - -.. |maintainer-smaciasosi| image:: https://github.com/smaciasosi.png?size=40px - :target: https://github.com/smaciasOSI - :alt: smaciasOSI - -Current `maintainer `__: - -|maintainer-smaciasosi| - -This module is part of the `ursais/osi-addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_mx_edi_addenda_audi/__init__.py b/l10n_mx_edi_addenda_audi/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/l10n_mx_edi_addenda_audi/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/l10n_mx_edi_addenda_audi/__manifest__.py b/l10n_mx_edi_addenda_audi/__manifest__.py deleted file mode 100644 index 54511aac4..000000000 --- a/l10n_mx_edi_addenda_audi/__manifest__.py +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators (https://www.opensourceintegrators.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Mexican Addendum For Invoices For Audi", - "version": "17.0.1.3.0", - "license": "LGPL-3", - "summary": "Mexican Localization Addendum For Audi", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "depends": ["account", "l10n_mx_edi", "product"], - "data": [ - "views/account_move.xml", - "views/l10n_mx_edi_addenda_audi.xml", - "views/res_partner_views.xml", - ], - "application": False, -} diff --git a/l10n_mx_edi_addenda_audi/i18n/es_MX.po b/l10n_mx_edi_addenda_audi/i18n/es_MX.po deleted file mode 100644 index 5ecc148cd..000000000 --- a/l10n_mx_edi_addenda_audi/i18n/es_MX.po +++ /dev/null @@ -1,64 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_audi -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-07 20:00+0000\n" -"PO-Revision-Date: 2024-06-07 20:00+0000\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_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_applicant_email -msgid "Applicant email" -msgstr "Email del solicitante" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_flag -msgid "Audi Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_audi.view_product_template_form_inherit_addenda_audi -msgid "Audi Product Reference" -msgstr "Referencia del producto Audi" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_business_unit -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_business_unit -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_business_unit -msgid "Business Unit" -msgstr "Unidad de negocio" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_account_move -msgid "Journal Entry" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_account_move_line -msgid "Journal Item" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_product_template -msgid "Product" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move_line__audi_line_product_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_product_product__audi_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_product_template__audi_ref -msgid "Product Reference" -msgstr "Referencia del producto" diff --git a/l10n_mx_edi_addenda_audi/i18n/l10n_mx_edi_addenda_audi.pot b/l10n_mx_edi_addenda_audi/i18n/l10n_mx_edi_addenda_audi.pot deleted file mode 100644 index 5ecc148cd..000000000 --- a/l10n_mx_edi_addenda_audi/i18n/l10n_mx_edi_addenda_audi.pot +++ /dev/null @@ -1,64 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_audi -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-07 20:00+0000\n" -"PO-Revision-Date: 2024-06-07 20:00+0000\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_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_applicant_email -msgid "Applicant email" -msgstr "Email del solicitante" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_flag -msgid "Audi Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_audi.view_product_template_form_inherit_addenda_audi -msgid "Audi Product Reference" -msgstr "Referencia del producto Audi" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_bank_statement_line__audi_business_unit -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move__audi_business_unit -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_payment__audi_business_unit -msgid "Business Unit" -msgstr "Unidad de negocio" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_account_move -msgid "Journal Entry" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_account_move_line -msgid "Journal Item" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model,name:l10n_mx_edi_addenda_audi.model_product_template -msgid "Product" -msgstr "" - -#. module: l10n_mx_edi_addenda_audi -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_account_move_line__audi_line_product_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_product_product__audi_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_audi.field_product_template__audi_ref -msgid "Product Reference" -msgstr "Referencia del producto" diff --git a/l10n_mx_edi_addenda_audi/models/__init__.py b/l10n_mx_edi_addenda_audi/models/__init__.py deleted file mode 100644 index a81017898..000000000 --- a/l10n_mx_edi_addenda_audi/models/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from . import account_move -from . import account_move_line -from . import res_partner diff --git a/l10n_mx_edi_addenda_audi/models/account_move.py b/l10n_mx_edi_addenda_audi/models/account_move.py deleted file mode 100644 index fb008ddb8..000000000 --- a/l10n_mx_edi_addenda_audi/models/account_move.py +++ /dev/null @@ -1,19 +0,0 @@ -from odoo import api, fields, models - - -class AccountMove(models.Model): - _inherit = "account.move" - - audi_business_unit = fields.Char(string="Business Unit") - audi_applicant_email = fields.Char(string="Applicant email") - audi_flag = fields.Boolean(compute="_compute_audi_flag", store=True) - audi_tax_code = fields.Char(string="Tax Code") - audi_fiscal_document_type = fields.Char(string="Fiscal Document Type") - audi_document_type = fields.Char(string="Document Type") - - @api.depends("partner_id.l10n_mx_edi_addenda") - def _compute_audi_flag(self): - for record in self: - record.audi_flag = ( - record.partner_id.l10n_mx_edi_addenda_name == "Addenda Audi" - ) diff --git a/l10n_mx_edi_addenda_audi/models/account_move_line.py b/l10n_mx_edi_addenda_audi/models/account_move_line.py deleted file mode 100644 index 1ba86f0db..000000000 --- a/l10n_mx_edi_addenda_audi/models/account_move_line.py +++ /dev/null @@ -1,7 +0,0 @@ -from odoo import fields, models - - -class AccountMoveLine(models.Model): - _inherit = "account.move.line" - - audi_product_ref = fields.Char(string="Audi Product Reference") diff --git a/l10n_mx_edi_addenda_audi/models/res_partner.py b/l10n_mx_edi_addenda_audi/models/res_partner.py deleted file mode 100644 index d868885af..000000000 --- a/l10n_mx_edi_addenda_audi/models/res_partner.py +++ /dev/null @@ -1,8 +0,0 @@ -from odoo import fields, models - - -class ResPartner(models.Model): - _inherit = "res.partner" - - audi_supplier_email = fields.Char(string="Supplier Email") - audi_supplier_number = fields.Char(string="Supplier Number") diff --git a/l10n_mx_edi_addenda_audi/static/description/icon.png b/l10n_mx_edi_addenda_audi/static/description/icon.png deleted file mode 100644 index e0980d8dd..000000000 Binary files a/l10n_mx_edi_addenda_audi/static/description/icon.png and /dev/null differ diff --git a/l10n_mx_edi_addenda_audi/views/account_move.xml b/l10n_mx_edi_addenda_audi/views/account_move.xml deleted file mode 100644 index 0f736297e..000000000 --- a/l10n_mx_edi_addenda_audi/views/account_move.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - account.move.form.inherit.addenda.audi - account.move - - - - - - - - - - - - - - - - - - - - - diff --git a/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml b/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml deleted file mode 100644 index 02140a379..000000000 --- a/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - diff --git a/l10n_mx_edi_addenda_audi/views/res_partner_views.xml b/l10n_mx_edi_addenda_audi/views/res_partner_views.xml deleted file mode 100644 index ab224edde..000000000 --- a/l10n_mx_edi_addenda_audi/views/res_partner_views.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - res.partner.form.inherit.addenda.audi - res.partner - - - - - - - - - - diff --git a/l10n_mx_edi_addenda_ford/README.rst b/l10n_mx_edi_addenda_ford/README.rst deleted file mode 100644 index f4bae2f5b..000000000 --- a/l10n_mx_edi_addenda_ford/README.rst +++ /dev/null @@ -1,97 +0,0 @@ -============ -Addenda Ford -============ - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-ursais%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/ursais/osi-addons/tree/17.0/l10n_mx_edi_addenda_ford - :alt: ursais/osi-addons - -|badge1| |badge2| |badge3| - -This module adds the addenda of Ford and allow you to generate electronic invoices. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -#. Go to Accounting > Customers > Customers -#. Create a new partner "Ford" with the complete address -#. In the "Sales and Purchase" tab, in the Fiscal Information section select the "Addenda Ford" for the addenda - -Usage -===== - -To use this module, you need to: - -#. Go to Accounting > Customers > Invoices -#. Create a new invoice for Ford -#. In the "Other Information" tab, add the customer reference -#. In the "Ford Addenda" tab, add the sale reference - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Santiago Rodriguez -* Samuel Macias -* Maxime Chambreuil - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of open source -business process consulting and implementations. - -.. |maintainer-smaciasosi| image:: https://github.com/smaciasosi.png?size=40px - :target: https://github.com/smaciasOSI - :alt: smaciasOSI - -Current `maintainer `__: - -|maintainer-smaciasosi| - -This module is part of the `ursais/osi-addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_mx_edi_addenda_ford/__init__.py b/l10n_mx_edi_addenda_ford/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/l10n_mx_edi_addenda_ford/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/l10n_mx_edi_addenda_ford/__manifest__.py b/l10n_mx_edi_addenda_ford/__manifest__.py deleted file mode 100644 index bdebfd3f4..000000000 --- a/l10n_mx_edi_addenda_ford/__manifest__.py +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators (https://www.opensourceintegrators.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Mexican Addendum For Invoices For Ford", - "version": "17.0.1.1.0", - "license": "LGPL-3", - "summary": "Mexican Localization Addendum For Ford", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "depends": [ - "account", - "l10n_mx_edi", - ], - "data": ["views/account_move_views.xml", "views/l10n_mx_addenda_ford_view.xml"], - "application": False, - "maintainers": ["ursais"], -} diff --git a/l10n_mx_edi_addenda_ford/i18n/es_MX.po b/l10n_mx_edi_addenda_ford/i18n/es_MX.po deleted file mode 100644 index 68ddc7c41..000000000 --- a/l10n_mx_edi_addenda_ford/i18n/es_MX.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_ford -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-05 16:30+0000\n" -"PO-Revision-Date: 2024-06-05 16:30+0000\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_edi_addenda_ford -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_bank_statement_line__ford_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_move__ford_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_payment__ford_flag -msgid "Ford Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_ford -#: model:ir.model,name:l10n_mx_edi_addenda_ford.model_account_move -msgid "Journal Entry" -msgstr "Asiento contable" - -#. module: l10n_mx_edi_addenda_ford -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_bank_statement_line__ford_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_move__ford_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_payment__ford_ref -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_ford.view_account_move_form_inherit_addenda_ford -msgid "Reference" -msgstr "Referencia" diff --git a/l10n_mx_edi_addenda_ford/i18n/l10n_mx_edi_addenda_ford.pot b/l10n_mx_edi_addenda_ford/i18n/l10n_mx_edi_addenda_ford.pot deleted file mode 100644 index 4998b08ff..000000000 --- a/l10n_mx_edi_addenda_ford/i18n/l10n_mx_edi_addenda_ford.pot +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_ford -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-05 16:29+0000\n" -"PO-Revision-Date: 2024-06-05 16:29+0000\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_edi_addenda_ford -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_bank_statement_line__ford_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_move__ford_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_payment__ford_flag -msgid "Ford Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_ford -#: model:ir.model,name:l10n_mx_edi_addenda_ford.model_account_move -msgid "Journal Entry" -msgstr "Asientos Contables" - -#. module: l10n_mx_edi_addenda_ford -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_bank_statement_line__ford_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_move__ford_ref -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_ford.field_account_payment__ford_ref -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_ford.view_account_move_form_inherit_addenda_ford -msgid "Reference" -msgstr "Referencia" diff --git a/l10n_mx_edi_addenda_ford/models/__init__.py b/l10n_mx_edi_addenda_ford/models/__init__.py deleted file mode 100644 index 9c0a42138..000000000 --- a/l10n_mx_edi_addenda_ford/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import account_move diff --git a/l10n_mx_edi_addenda_ford/models/account_move.py b/l10n_mx_edi_addenda_ford/models/account_move.py deleted file mode 100644 index a8b79bc7f..000000000 --- a/l10n_mx_edi_addenda_ford/models/account_move.py +++ /dev/null @@ -1,16 +0,0 @@ -from odoo import api, fields, models - - -class AccountMove(models.Model): - _inherit = "account.move" - - # New Fields - ford_ref = fields.Char(string="Ford Reference", default="NA") - ford_flag = fields.Boolean(compute="_compute_ford_flag", store=True) - - @api.depends("partner_id.l10n_mx_edi_addenda") - def _compute_ford_flag(self): - for record in self: - record.ford_flag = ( - record.partner_id.l10n_mx_edi_addenda_name == "Addenda Ford" - ) diff --git a/l10n_mx_edi_addenda_ford/static/description/icon.png b/l10n_mx_edi_addenda_ford/static/description/icon.png deleted file mode 100644 index 338a82e9b..000000000 Binary files a/l10n_mx_edi_addenda_ford/static/description/icon.png and /dev/null differ diff --git a/l10n_mx_edi_addenda_ford/views/account_move_views.xml b/l10n_mx_edi_addenda_ford/views/account_move_views.xml deleted file mode 100644 index 1864299a6..000000000 --- a/l10n_mx_edi_addenda_ford/views/account_move_views.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - account.move.form.inherit.addenda.ford - account.move - - - - - - - - - - - - - diff --git a/l10n_mx_edi_addenda_ford/views/l10n_mx_addenda_ford_view.xml b/l10n_mx_edi_addenda_ford/views/l10n_mx_addenda_ford_view.xml deleted file mode 100644 index cb0655d14..000000000 --- a/l10n_mx_edi_addenda_ford/views/l10n_mx_addenda_ford_view.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - diff --git a/l10n_mx_edi_addenda_mabe/README.rst b/l10n_mx_edi_addenda_mabe/README.rst deleted file mode 100644 index 53220fbb4..000000000 --- a/l10n_mx_edi_addenda_mabe/README.rst +++ /dev/null @@ -1,104 +0,0 @@ -============ -Addenda Mabe -============ - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-ursais%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/ursais/osi-addons/tree/17.0/l10n_mx_edi_addenda_mabe - :alt: ursais/osi-addons - -|badge1| |badge2| |badge3| - -This module adds the addenda of Mabe and allow you to generate electronic invoices. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -#. Go to Accounting > Customers > Customers -#. Create a new partner "Mabe" with the complete address -#. Add the "Mabe Plant Code" with the correct code -#. In the "Sales and Purchase" tab, in the Fiscal Information section select the "Addenda Mabe" for the addenda -#. In the same tab, fill the reference field for the AMS Code - -Usage -===== - -To use this module, you need to: - -#. Go to Accounting > Customers > Invoices -#. Create a new invoice for Mabe -#. In the "Other Information" tab, add the customer reference -#. In the "Mabe Addenda" tab, add the reference 1, 2 and the amount with letter - -How To Test -=========== -Service Account - - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Santiago Rodriguez -* Samuel Macias -* Maxime Chambreuil - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of open source -business process consulting and implementations. - -.. |maintainer-smaciasosi| image:: https://github.com/smaciasosi.png?size=40px - :target: https://github.com/smaciasOSI - :alt: smaciasOSI - -Current `maintainer `__: - -|maintainer-smaciasosi| - -This module is part of the `ursais/osi-addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_mx_edi_addenda_mabe/__init__.py b/l10n_mx_edi_addenda_mabe/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/l10n_mx_edi_addenda_mabe/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/l10n_mx_edi_addenda_mabe/__manifest__.py b/l10n_mx_edi_addenda_mabe/__manifest__.py deleted file mode 100644 index f5611c85a..000000000 --- a/l10n_mx_edi_addenda_mabe/__manifest__.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators (https://www.opensourceintegrators.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Mexican Addendum For Invoices For MABE", - "version": "17.0.1.3.0", - "license": "LGPL-3", - "summary": "Mexican Localization Addendum For MABE", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "depends": ["account", "l10n_mx_edi", "l10n_mx_edi_extended"], - "data": [ - "views/account_move_views.xml", - "views/l10n_mx_addenda_mabe_view.xml", - "views/res_partner_views.xml", - ], - "application": False, - "maintainers": ["ursais"], -} diff --git a/l10n_mx_edi_addenda_mabe/i18n/es_MX.po b/l10n_mx_edi_addenda_mabe/i18n/es_MX.po deleted file mode 100644 index 3ebcb6f95..000000000 --- a/l10n_mx_edi_addenda_mabe/i18n/es_MX.po +++ /dev/null @@ -1,57 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_mabe -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-05 16:19+0000\n" -"PO-Revision-Date: 2024-06-05 16:19+0000\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_edi_addenda_mabe -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Mabe Addenda" -msgstr "Addenda Mabe" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_amount_with_letter -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_amount_with_letter -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_amount_with_letter -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Amount with letter" -msgstr "Importe con letra" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model,name:l10n_mx_edi_addenda_mabe.model_account_move -msgid "Journal Entry" -msgstr "Asiento contable" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_flag -msgid "Mabe Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_ref1 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_ref1 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_ref1 -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Reference 1" -msgstr "Referencia 1" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_ref2 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_ref2 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_ref2 -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Reference 2" -msgstr "Referencia 2" diff --git a/l10n_mx_edi_addenda_mabe/i18n/l10n_mx_edi_addenda_mabe.pot b/l10n_mx_edi_addenda_mabe/i18n/l10n_mx_edi_addenda_mabe.pot deleted file mode 100644 index 2de72a09c..000000000 --- a/l10n_mx_edi_addenda_mabe/i18n/l10n_mx_edi_addenda_mabe.pot +++ /dev/null @@ -1,57 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_mabe -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-05 16:17+0000\n" -"PO-Revision-Date: 2024-06-05 16:17+0000\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_edi_addenda_mabe -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Mabe Addenda" -msgstr "Addenda Mabe" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_amount_with_letter -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_amount_with_letter -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_amount_with_letter -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Amount with letter" -msgstr "Importe con letra" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model,name:l10n_mx_edi_addenda_mabe.model_account_move -msgid "Journal Entry" -msgstr "Asiento Contable" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_flag -msgid "Mabe Flag" -msgstr "" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_ref1 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_ref1 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_ref1 -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Reference 1" -msgstr "Referencia 1" - -#. module: l10n_mx_edi_addenda_mabe -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_bank_statement_line__mabe_ref2 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_move__mabe_ref2 -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_mabe.field_account_payment__mabe_ref2 -#: model_terms:ir.ui.view,arch_db:l10n_mx_edi_addenda_mabe.view_account_move_form_inherit_addenda_mabe -msgid "Reference 2" -msgstr "Referencia 2" diff --git a/l10n_mx_edi_addenda_mabe/models/__init__.py b/l10n_mx_edi_addenda_mabe/models/__init__.py deleted file mode 100644 index 74548553b..000000000 --- a/l10n_mx_edi_addenda_mabe/models/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import account_move -from . import res_partner diff --git a/l10n_mx_edi_addenda_mabe/models/account_move.py b/l10n_mx_edi_addenda_mabe/models/account_move.py deleted file mode 100644 index f75d6f64d..000000000 --- a/l10n_mx_edi_addenda_mabe/models/account_move.py +++ /dev/null @@ -1,18 +0,0 @@ -from odoo import api, fields, models - - -class AccountMove(models.Model): - _inherit = "account.move" - - # New Fields - mabe_ref1 = fields.Char(string="Mabe Reference 1", default="NA") - mabe_ref2 = fields.Char(string="Mabe Reference 2", default="NA") - mabe_amount_with_letter = fields.Char(string="Amount with letter") - mabe_flag = fields.Boolean(default=False, compute="_compute_mabe_flag", store=True) - - @api.depends("partner_id.l10n_mx_edi_addenda_name") - def _compute_mabe_flag(self): - for record in self: - record.mabe_flag = ( - record.partner_id.l10n_mx_edi_addenda_name == "Addenda Mabe" - ) diff --git a/l10n_mx_edi_addenda_mabe/models/res_partner.py b/l10n_mx_edi_addenda_mabe/models/res_partner.py deleted file mode 100644 index d3a340650..000000000 --- a/l10n_mx_edi_addenda_mabe/models/res_partner.py +++ /dev/null @@ -1,166 +0,0 @@ -from odoo import fields, models - - -class ResPartner(models.Model): - _inherit = "res.partner" - - mabe_plant_code = fields.Selection( - selection=[ - ("S001", '[S001] - ESTUFAS 30"'), - ("S002", "[S002] - GO GLOBAL SLP"), - ("S004", "[S004] - FARGOS SLP"), - ("S005", "[S005] - IKDS"), - ("S006", '[S006] - ESTUFAS 20" & 24"'), - ("R001", "[R001] - PLANTA CELAYA"), - ("R007", "[R007] - REFACCIONES CEL"), - ("R008", "[R008] - REFRIGERADORES CEL PT QC"), - ("R002", "[R002] - SLC - GO - GLOBAL"), - ("W002", "[W002] - PLANTA SALTILLO"), - ("W004", "[W004] - SLC GO GLOBAL SALTILLO"), - ("W007", "[W007] - SLC - SIAC SALTILLO"), - ("W008", "[W008] - SLC - MIRAI SALTILLO"), - ("W009", "[W009] - VIRTUALCONTROLADORA"), - ("W013", "[W013] - M2L SERVICES DE MÉX"), - ("A055", "[A055] - CONTROLADORA HOLDING"), - ("A067", "[A067] - CORPORATIVO DE MATERIALES"), - ("A068", "[A068] - CSC INDUSTRIAL"), - ("C003", "[C003] - COMPONENTES PLASTICOS"), - ("C004", "[C004] - COMPONENTES TROQUELES"), - ("C005", "[C005] - COMPRESORES SAN LUIS POTOSI"), - ("C008", "[C008] - LEISER QUERETARO"), - ("C009", "[C009] - COMPONENTES PLASTICOS CELAYA"), - ("C013", "[C013] - SLC MPT ELECTRONICA"), - ("C014", "[C014] - SLC MPT ELECTRONICA"), - ("Q901", "[Q901] - CMABEID-ESTUFAS SLP"), - ("Q902", "[Q902] - CMABEID- IKDS LEISER"), - ("Q903", '[Q903] - CMABEID- LEISER SLP ESTUFAS 20" & 24"'), - ("Q904", "[Q904] - CMABEID-REFRIG. CLYA"), - ("Q905", "[Q905] - CMABEID- LEISER REGRIGERAD CEL PT QC"), - ("Q906", "[Q906] - CMABEID- LEISER CLY ANDROMEDA"), - ("Q907", "[Q907] - CMABEID- TARJETAS ELECTRÓNICAS QRO"), - ("Q908", "[Q908] - CMABEID-LAVADORAS SALTILLO"), - ("Q909", "[Q909] - CMABEID-SECADORAS SALTILLO"), - ("Q910", "[Q910] - CMABEID-TRANSMISIONES SALTILLO"), - ("Q911", "[Q911] - CMABEID-CENTROS DE LAVADO SALTILLO"), - ("Q912", "[Q912] - CMABEID-PLASTICOS QRO"), - ("Q913", "[Q913] - CMABEID-COOK TOPS QRO"), - ("Q914", "[Q914] - CMABEID-TROQUELADOS QRO"), - ("Q915", "[Q915] - CMABEID-COMPRESORES SLP"), - ("Q916", "[Q916] - CMABEID- COMPONENTES MOTORES"), - ("Q100", "[Q100] - MABE INTEGRA"), - ("Q101", "[Q101] - MI-CDR HUEHUETOCA"), - ("Q106", "[Q106] - MI- ESTUFAS SAN LUIS POTOSI"), - ("Q109", "[Q109] - MI-ADR MEXICO"), - ("Q143", "[Q143] - MI- MABE SA CENTRAL"), - ("Q146", "[Q146] - MI- REFRIGERADORES CELAYA"), - ("Q149", "[Q149] - MI- COMPONENTES QUERETARO"), - ("Q151", "[Q151] - MI- LAVADORAS SALTILLO"), - ("Q155", "[Q155] - MI- MCM AMERICAS"), - ("Q157", "[Q157] - MI_CORPORATIVO DE MATERIALES"), - ("Q159", "[Q159] - MI- TYP"), - ("Q160", "[Q160] - MI- PYMES"), - ("Q161", "[Q161] - MI-MPT"), - ("Q200", "[Q200] - MABESUD"), - ("Q201", "[Q201] - MS-CDR HUEHUETOCA"), - ("Q206", "[Q206] - MS- ESTUFAS SAN LUIS POTOSI"), - ("Q209", "[Q209] - MS-ADR MEXICO"), - ("Q243", "[Q243] - MS- MABE SA CENTRAL"), - ("Q245", "[Q245] - MS- REFRIGERADORES CELAYA"), - ("Q248", "[Q248] - MS- COMPONENTES QUERETARO"), - ("Q250", "[Q250] - MS- LAVADORAS SALTILLO"), - ("Q254", "[Q254] - MS- MCM AMERICAS"), - ("Q256", "[Q256] - MS_CORPORATIVO DE MATERIALES"), - ("Q258", "[Q258] - MS- TYP"), - ("Q259", "[Q259] - MS-MPT"), - ("Q300", "[Q300] - SERVEJ"), - ("Q301", "[Q301] - SV-COMERCIAL"), - ("Q303", "[Q303] - SV-MABE SA CENTRAL"), - ("Q306", "[Q306] - SV-ESTUFAS SLP"), - ("Q309", "[Q309] - SV-REFRIGERADORES CLYA"), - ("Q312", "[Q312] - SV-COMPONENTES QRO"), - ("Q314", "[Q314] - SV-MCM AMERICAS"), - ("Q315", "[Q315] - SV-LAVADORAS SALTILLO"), - ("Q318", "[Q318] - SV-SERVIPLUS"), - ("Q328", "[Q328] - SV-TYP"), - ("Q329", "[Q329] - SV-PYMES"), - ("Q330", "[Q330] - SV-CORPORATIVO DE MATERIALES"), - ("Q332", "[Q332] - SV - MPT"), - ("Q400", "[Q400] - MABE UNE"), - ("Q401", "[Q401] - MABE UNE-CDR HUEHUETOCA"), - ("Q406", "[Q406] - MABE UNE- ESTUFAS SAN LUIS POTOSI"), - ("Q409", "[Q409] - MABE UNE- ADR MEXICO DF"), - ("Q443", "[Q443] - MABE UNE- MABE SA CENTRAL"), - ("Q446", "[Q446] - MABE UNE- REFRIGERADORES CELAYA"), - ("Q449", "[Q449] - MABE UNE- COMPONENTES QRO PLASTICOS"), - ("Q451", "[Q451] - MABE UNE- LAVADORAS SALTILLO"), - ("Q455", "[Q455] - MABE UNE- MCM AMERICAS"), - ("Q457", "[Q457] - MABE UNE- CORPORATIVO DE MATERIALES"), - ("Q459", "[Q459] - MABE UNE- TYP"), - ("Q460", "[Q460] - MABE UNE- PYMES"), - ("Q461", "[Q461] - MABE UNE-MPT"), - ("Q462", "[Q462] - MABE UNE-SERVIPLUS CEAM"), - ("D004", "[D004] - CDR Huehuetoca"), - ("D005", "[D005] - CDR Guadalajara"), - ("D006", "[D006] - CDR Monterrey"), - ("D007", "[D007] - Ing Militares"), - ("D008", "[D008] - BIN Querétaro 1"), - ("D009", "[D009] - BPI MABE SA"), - ("D010", "[D010] - Virtual Celaya"), - ("D011", "[D011] - Virtual SLP"), - ("D012", "[D012] - BIN Monterrey"), - ("D013", "[D013] - BIN Saltillo Lavadoras"), - ("D014", "[D014] - Virtual Saltillo"), - ("D015", "[D015] - Cross Dock Villahermosa"), - ("D016", "[D016] - Cross Dock Chihuhua"), - ("D019", "[D019] - Cross Dock Chihuhua"), - ("D021", "[D021] - Cross Dock Mérida"), - ("D022", "[D022] - Cross Dock Mexicali"), - ("D023", "[D023] - Gto.Corp.Comercial"), - ("D024", "[D024] - Cross Dock Culiacan"), - ("D025", "[D025] - Cross Dock Veracruz"), - ("D026", "[D026] - Mabe Internacional"), - ("D121", "[D121] - CDR SAN LUIS POTOSI"), - ("D128", "[D128] - EXPORTACION CEAM"), - ("D161", "[D161] - CDR AF SAN LUIS POTOSI"), - ("D165", "[D165] - CDR TLAQUEPAQUE"), - ("A002", "[A002] - MABE SA CENTRAL"), - ("A003", "[A003] - TI"), - ("A004", "[A004] - CSC FINANZAS"), - ("A006", "[A006] - CORPORATIVO TYP"), - ("T102", "[T102] - ADR MEXICO DF"), - ("T103", "[T103] - MODULO MEXICO METRO NORTE"), - ("T104", "[T104] - MODULO ACAPULCO"), - ("T105", "[T105] - MODULO PUEBLA"), - ("T106", "[T106] - MODULO MEXICO METRO ORIENTE"), - ("T107", "[T107] - MODULO QUERETARO"), - ("T108", "[T108] - MODULO VERACRUZ"), - ("T109", "[T109] - MODULO MERIDA"), - ("T110", "[T110] - MODULO VILLAHERMOSA"), - ("T111", "[T111] - MODULO CANCUN"), - ("T112", "[T112] - ADR MONTERREY"), - ("T113", "[T113] - MODULO MONTERREY"), - ("T114", "[T114] - MODULO CD JUAREZ"), - ("T115", "[T115] - MODULO CHIHUAHUA"), - ("T116", "[T116] - MODULO TORREON"), - ("T117", "[T117] - MODULO MEXICO METRO SUR"), - ("T118", "[T118] - MODULO TAMPICO"), - ("T119", "[T119] - MODULO MONTERREY SUR"), - ("T120", "[T120] - MODULO REYNOSA"), - ("T121", "[T121] - MODULO MATAMOROS"), - ("T122", "[T122] - MODULO CD VICTORIA"), - ("T123", "[T123] - MODULO PIEDRAS NEGRAS"), - ("T124", "[T124] - ADR GUADALAJARA"), - ("T125", "[T125] - MODULO GUADALAJARA"), - ("T126", "[T126] - MODULO AGUASCALIENTES"), - ("T127", "[T127] - MODULO SAN LUIS POTOSI"), - ("T128", "[T128] - MODULO MEXICALLI"), - ("T129", "[T129] - MODULO TIJUANA"), - ("T130", "[T130] - MODULO HERMOSILLO"), - ("T131", "[T131] - MODULO LEON"), - ("T132", "[T132] - MODULO CULIACAN"), - ("T133", "[T133] - MODULO LOS MOCHIS"), - ("T134", "[T134] - MODULO LA PAZ"), - ("T135", "[T135] - Corporativo Serviplus"), - ("T136", "[T136] - ADR SAN LUIS POTOSI"), - ] - ) diff --git a/l10n_mx_edi_addenda_mabe/static/description/icon.png b/l10n_mx_edi_addenda_mabe/static/description/icon.png deleted file mode 100644 index 145452c73..000000000 Binary files a/l10n_mx_edi_addenda_mabe/static/description/icon.png and /dev/null differ diff --git a/l10n_mx_edi_addenda_mabe/views/account_move_views.xml b/l10n_mx_edi_addenda_mabe/views/account_move_views.xml deleted file mode 100644 index 14c60b2a1..000000000 --- a/l10n_mx_edi_addenda_mabe/views/account_move_views.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - account.move.form.inherit.addenda.mabe - account.move - - - - - - - - - - - - - - - diff --git a/l10n_mx_edi_addenda_mabe/views/l10n_mx_addenda_mabe_view.xml b/l10n_mx_edi_addenda_mabe/views/l10n_mx_addenda_mabe_view.xml deleted file mode 100644 index d00bd1266..000000000 --- a/l10n_mx_edi_addenda_mabe/views/l10n_mx_addenda_mabe_view.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - diff --git a/l10n_mx_edi_addenda_mabe/views/res_partner_views.xml b/l10n_mx_edi_addenda_mabe/views/res_partner_views.xml deleted file mode 100644 index 89946aebc..000000000 --- a/l10n_mx_edi_addenda_mabe/views/res_partner_views.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - res.partner.form.inherit.addenda.mabe - res.partner - - - - - - - - - diff --git a/l10n_mx_edi_addenda_volkswagen/README.rst b/l10n_mx_edi_addenda_volkswagen/README.rst deleted file mode 100644 index abcb15503..000000000 --- a/l10n_mx_edi_addenda_volkswagen/README.rst +++ /dev/null @@ -1,107 +0,0 @@ -================== -Addenda Volkswagen -================== - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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-LGPL--3-blue.png - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-ursais%2Fosi--addons-lightgray.png?logo=github - :target: https://github.com/ursais/osi-addons/tree/17.0/l10n_mx_edi_addenda_volkswagen - :alt: ursais/osi-addons - -|badge1| |badge2| |badge3| - -This module adds the addenda of Volkswagen and allows you to generate electronic invoices. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -Customer -~~~~~~~~ - -#. Go to Accounting > Customers > Customers -#. Create a new partner "Volkswagen" with the complete address -#. In the "Sales and Purchase" tab, select the "Addenda Volkswagen" for the addenda - -Product -~~~~~~~ - -#. Go to Sales > Products > Products -#. Create a new product or edit an existing one -#. In the "Accounting" tab, fill in the VW reference that corresponds to the part number - -Usage -===== - -To use this module, you need to: - -#. Go to Accounting > Customers > Invoices -#. Create a new invoice fo Volkswagen -#. In the "Other Information" tab, fill in the Customer reference field -#. In the "Addenda Volkswagen" tab, fill in the division, applicant name, applicant email and file fields - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ -* Edgar Martinez -* Samuel Macias -* Maxime Chambreuil - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by Open Source Integrators. - -.. image:: https://github.com/ursais.png - :alt: Open Source Integrators - :target: https://opensourceintegrators.com - -Open Source Integrators™ (OSI) provides customers a unique combination of open source -business process consulting and implementations. - -.. |maintainer-smaciasosi| image:: https://github.com/smaciasosi.png?size=40px - :target: https://github.com/smaciasOSI - :alt: smaciasOSI - -Current `maintainer `__: - -|maintainer-smaciasosi| - -This module is part of the `ursais/osi-addons `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_mx_edi_addenda_volkswagen/__init__.py b/l10n_mx_edi_addenda_volkswagen/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/l10n_mx_edi_addenda_volkswagen/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/l10n_mx_edi_addenda_volkswagen/__manifest__.py b/l10n_mx_edi_addenda_volkswagen/__manifest__.py deleted file mode 100644 index cdea8f637..000000000 --- a/l10n_mx_edi_addenda_volkswagen/__manifest__.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators (https://www.opensourceintegrators.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Mexican Addendum For Invoices For Volkswagen", - "version": "17.0.1.3.1", - "license": "LGPL-3", - "summary": "Mexican Localization Addendum For Volkswagen", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "depends": ["account", "l10n_mx_edi"], - "data": [ - "views/account_move.xml", - "views/l10n_mx_edi_addenda_volkswagen.xml", - ], - "application": False, -} diff --git a/l10n_mx_edi_addenda_volkswagen/i18n/es_MX.po b/l10n_mx_edi_addenda_volkswagen/i18n/es_MX.po deleted file mode 100644 index 216a2a68d..000000000 --- a/l10n_mx_edi_addenda_volkswagen/i18n/es_MX.po +++ /dev/null @@ -1,63 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_volkswagen -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-07 20:15+0000\n" -"PO-Revision-Date: 2024-06-07 20:15+0000\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_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_applicant_name -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_applicant_name -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_applicant_name -msgid "Applicant Name" -msgstr "Nombre del solicitante" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_applicant_email -msgid "Applicant email" -msgstr "Email del solicitante" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_division -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_division -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_division -msgid "Division" -msgstr "División" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_file -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_file -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_file -msgid "File" -msgstr "Archivo" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model,name:l10n_mx_edi_addenda_volkswagen.model_account_move -msgid "Journal Entry" -msgstr "" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_reference -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_reference -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_reference -msgid "Reference" -msgstr "Referencia" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_flag -msgid "Vw Flag" -msgstr "" diff --git a/l10n_mx_edi_addenda_volkswagen/i18n/l10n_mx_edi_addenda_volkswagen.pot b/l10n_mx_edi_addenda_volkswagen/i18n/l10n_mx_edi_addenda_volkswagen.pot deleted file mode 100644 index 216a2a68d..000000000 --- a/l10n_mx_edi_addenda_volkswagen/i18n/l10n_mx_edi_addenda_volkswagen.pot +++ /dev/null @@ -1,63 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_mx_edi_addenda_volkswagen -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0+e-20240224\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-07 20:15+0000\n" -"PO-Revision-Date: 2024-06-07 20:15+0000\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_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_applicant_name -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_applicant_name -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_applicant_name -msgid "Applicant Name" -msgstr "Nombre del solicitante" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_applicant_email -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_applicant_email -msgid "Applicant email" -msgstr "Email del solicitante" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_division -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_division -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_division -msgid "Division" -msgstr "División" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_file -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_file -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_file -msgid "File" -msgstr "Archivo" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model,name:l10n_mx_edi_addenda_volkswagen.model_account_move -msgid "Journal Entry" -msgstr "" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_reference -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_reference -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_reference -msgid "Reference" -msgstr "Referencia" - -#. module: l10n_mx_edi_addenda_volkswagen -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_bank_statement_line__vw_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_move__vw_flag -#: model:ir.model.fields,field_description:l10n_mx_edi_addenda_volkswagen.field_account_payment__vw_flag -msgid "Vw Flag" -msgstr "" diff --git a/l10n_mx_edi_addenda_volkswagen/models/__init__.py b/l10n_mx_edi_addenda_volkswagen/models/__init__.py deleted file mode 100644 index 0d5ab6a2f..000000000 --- a/l10n_mx_edi_addenda_volkswagen/models/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import account_move -from . import account_move_line diff --git a/l10n_mx_edi_addenda_volkswagen/models/account_move.py b/l10n_mx_edi_addenda_volkswagen/models/account_move.py deleted file mode 100644 index d5f4e687a..000000000 --- a/l10n_mx_edi_addenda_volkswagen/models/account_move.py +++ /dev/null @@ -1,17 +0,0 @@ -from odoo import api, fields, models - - -class AccountMove(models.Model): - _inherit = "account.move" - - vw_division = fields.Char(string="VW Division") - vw_applicant_name = fields.Char(string="VW Applicant Name") - vw_applicant_email = fields.Char(string="VW Applicant email") - vw_flag = fields.Boolean(compute="_compute_vw_flag", store=True) - - @api.depends("partner_id.l10n_mx_edi_addenda") - def _compute_vw_flag(self): - for record in self: - record.vw_flag = ( - record.partner_id.l10n_mx_edi_addenda_name == "Addenda Volkswagen" - ) diff --git a/l10n_mx_edi_addenda_volkswagen/models/account_move_line.py b/l10n_mx_edi_addenda_volkswagen/models/account_move_line.py deleted file mode 100644 index 318c96a42..000000000 --- a/l10n_mx_edi_addenda_volkswagen/models/account_move_line.py +++ /dev/null @@ -1,7 +0,0 @@ -from odoo import fields, models - - -class AccountMoveLine(models.Model): - _inherit = "account.move.line" - - vw_product_ref = fields.Char(string="VW Product Reference") diff --git a/l10n_mx_edi_addenda_volkswagen/static/description/icon.png b/l10n_mx_edi_addenda_volkswagen/static/description/icon.png deleted file mode 100644 index b959e3d24..000000000 Binary files a/l10n_mx_edi_addenda_volkswagen/static/description/icon.png and /dev/null differ diff --git a/l10n_mx_edi_addenda_volkswagen/views/account_move.xml b/l10n_mx_edi_addenda_volkswagen/views/account_move.xml deleted file mode 100644 index 1c8f984af..000000000 --- a/l10n_mx_edi_addenda_volkswagen/views/account_move.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - account.move.form.inherit.addenda.volkswagen - account.move - - - - - - - - - - - - - - - - - - diff --git a/l10n_mx_edi_addenda_volkswagen/views/l10n_mx_edi_addenda_volkswagen.xml b/l10n_mx_edi_addenda_volkswagen/views/l10n_mx_edi_addenda_volkswagen.xml deleted file mode 100644 index 075b3060f..000000000 --- a/l10n_mx_edi_addenda_volkswagen/views/l10n_mx_edi_addenda_volkswagen.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - diff --git a/l10n_mx_edi_addenda_whirlpool/README.rst b/l10n_mx_edi_addenda_whirlpool/README.rst deleted file mode 100644 index e69de29bb..000000000 diff --git a/l10n_mx_edi_addenda_whirlpool/__init__.py b/l10n_mx_edi_addenda_whirlpool/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/l10n_mx_edi_addenda_whirlpool/__manifest__.py b/l10n_mx_edi_addenda_whirlpool/__manifest__.py deleted file mode 100644 index d2c1891b5..000000000 --- a/l10n_mx_edi_addenda_whirlpool/__manifest__.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators (https://www.opensourceintegrators.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -{ - "name": "Mexican Addendum For Invoices For Whirlpool", - "version": "17.0.1.1.0", - "license": "LGPL-3", - "summary": "Mexican Localization Addendum For Whirlpool", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "depends": ["account", "l10n_mx_edi"], - "data": ["views/l10n_mx_addenda_whirlpool.xml"], - "application": False, - "maintainers": ["ursais"], -} diff --git a/l10n_mx_edi_addenda_whirlpool/static/description/icon.png b/l10n_mx_edi_addenda_whirlpool/static/description/icon.png deleted file mode 100644 index ef664f182..000000000 Binary files a/l10n_mx_edi_addenda_whirlpool/static/description/icon.png and /dev/null differ diff --git a/l10n_mx_edi_addenda_whirlpool/views/l10n_mx_addenda_whirlpool.xml b/l10n_mx_edi_addenda_whirlpool/views/l10n_mx_addenda_whirlpool.xml deleted file mode 100644 index 3f54d5b38..000000000 --- a/l10n_mx_edi_addenda_whirlpool/views/l10n_mx_addenda_whirlpool.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - diff --git a/osi_fifo_serialized_fix/README.rst b/osi_fifo_serialized_fix/README.rst deleted file mode 100644 index 29cf2ba0a..000000000 --- a/osi_fifo_serialized_fix/README.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. 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 - -======== -Overview -======== - -* Override FIFO valuation to consider lot/serial number tracked products - - -======= -Credits -======= - -* Open Source Integrators - - -Contributors ------------- - -* Chanakya Soni -* Raphael Lee -* Antonio Yamuta diff --git a/osi_fifo_serialized_fix/__init__.py b/osi_fifo_serialized_fix/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/osi_fifo_serialized_fix/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/osi_fifo_serialized_fix/__manifest__.py b/osi_fifo_serialized_fix/__manifest__.py deleted file mode 100644 index 776beb69a..000000000 --- a/osi_fifo_serialized_fix/__manifest__.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2021, Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -{ - "name": "OSI FIFO Serialized Product Fix", - "summary": """Properly handle Inventory Valuation - with Serialized and Lot Tracked products""", - "version": "17.0.1.0.0", - "license": "LGPL-3", - "author": "Open Source Integrators", - "maintainer": "Open Source Integrators", - "website": "https://github.com/ursais/osi-addons", - "category": "Accounting", - "depends": ["stock_account", "mrp_account"], - "data": ["views/stock_valuation_layer.xml"], - "application": False, - "maintainers": ["osi-scampbell", "Chanakya-OSI", "RLeeOSI", "agyamuta"], - "installable": True, -} diff --git a/osi_fifo_serialized_fix/models/__init__.py b/osi_fifo_serialized_fix/models/__init__.py deleted file mode 100644 index 510ae94ec..000000000 --- a/osi_fifo_serialized_fix/models/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (C) 2023, Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -from . import product -from . import stock_move -from . import stock_valuation_layer -from . import mrp_production -from . import mrp_workcenter_productivity diff --git a/osi_fifo_serialized_fix/models/mrp_production.py b/osi_fifo_serialized_fix/models/mrp_production.py deleted file mode 100644 index ef4a75a34..000000000 --- a/osi_fifo_serialized_fix/models/mrp_production.py +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import models -from odoo.tools import float_round - - -class MRPProduction(models.Model): - _inherit = "mrp.production" - - def button_mark_done(self): - res = super().button_mark_done() - - # Below code will fix the FIFO SN costing for Raw material, FG and By product - # recalculate all JE for last MO - # for mo in self for SBC MOs - for mo in self: - finished_move = mo.move_finished_ids.filtered( - lambda x: x.product_id == mo.product_id - and x.state == "done" - and x.quantity > 0 - ) - consumed_moves = mo.move_raw_ids - if finished_move: - work_center_cost = 0 - finished_move.ensure_one() - for work_order in mo.workorder_ids: - time_lines = work_order.time_ids.filtered( - lambda t: t.date_end and not t.cost_already_recorded - ) - work_center_cost += work_order._cal_cost() - time_lines.write({"cost_already_recorded": True}) - qty_done = finished_move.product_uom._compute_quantity( - finished_move.quantity, finished_move.product_id.uom_id - ) - extra_cost = mo.extra_cost * qty_done - total_cost = ( - -sum( - consumed_moves.sudo() - .stock_valuation_layer_ids.filtered( - lambda svl: svl.quantity < 0 - ) - .mapped("value") - ) - + work_center_cost - + extra_cost - ) - byproduct_moves = mo.move_byproduct_ids.filtered( - lambda m: m.state == "done" and m.quantity > 0 and m.cost_share != 0 - ) - byproduct_cost_share = 0 - for byproduct in byproduct_moves: - byproduct_cost_share += byproduct.cost_share - if byproduct.product_id.cost_method in ("fifo", "average"): - byproduct_svl = byproduct.sudo().stock_valuation_layer_ids - byproduct.price_unit = float_round( - total_cost - * byproduct.cost_share - / 100 - / byproduct.product_uom._compute_quantity( - byproduct.quantity, byproduct.product_id.uom_id - ), - precision_rounding=byproduct_svl.currency_id.rounding, - ) - if byproduct.lot_ids: - byproduct.lot_ids.write( - {"real_price": byproduct.price_unit} - ) - mo._correct_svl_je( - byproduct_svl, - byproduct, - total_cost * byproduct.cost_share / 100, - ) - if ( - finished_move.product_id.valuation == "manual_periodic" - and byproduct_cost_share - ): - # If the FG gets no value, ensure the byproducts have the total value - # Corrects rounding issues too - total_value_byproducts = sum(byproduct_moves.mapped("price_unit")) - remainder = float_round( - total_cost - total_value_byproducts, precision_rounding=0.0001 - ) - if remainder != 0.0: - for byproduct in byproduct_moves.filtered( - lambda m: m.product_id.cost_method in ("fifo", "average") - ): - byproduct.price_unit = byproduct.price_unit + remainder - if byproduct.lot_ids: - byproduct.lot_ids.write( - {"real_price": byproduct.price_unit} - ) - mo._correct_svl_je( - byproduct.sudo().stock_valuation_layer_ids, - byproduct, - byproduct.price_unit, - ) - break - if finished_move.product_id.cost_method in ("fifo", "average"): - finished_move.price_unit = ( - total_cost - * float_round( - 1 - byproduct_cost_share / 100, precision_rounding=0.0001 - ) - / qty_done - ) - total_fg_cost = finished_move.price_unit * qty_done - mo.lot_producing_id.real_price = finished_move.price_unit - fg_svl = ( - finished_move.stock_valuation_layer_ids - and finished_move.stock_valuation_layer_ids[0] - or [] - ) - credit = float_round( - sum(fg_svl.account_move_id.line_ids.mapped("credit")), - precision_rounding=0.0001, - ) - debit = float_round( - sum(fg_svl.account_move_id.line_ids.mapped("debit")), - precision_rounding=0.0001, - ) - balanced_credits = credit == total_fg_cost - balanced_debits = debit == total_fg_cost - if credit != debit or not balanced_credits or not balanced_debits: - mo._correct_svl_je(fg_svl, finished_move, total_fg_cost) - if mo.analytic_account_ids: - mo.analytic_account_ids.line_ids.write( - {"manufacturing_order_id": mo.id} - ) - return res - - def _correct_svl_je(self, svl, stock_move, total_cost): - account_move_id = svl.account_move_id - svl.unit_cost = total_cost / (svl.quantity if svl.quantity > 0 else 1) - svl.value = svl.unit_cost * svl.quantity - svl.remaining_value = svl.unit_cost * svl.quantity - svl.remaining_qty = svl.quantity - - if not account_move_id: - svl._validate_accounting_entries() - else: - # Change the SVl with correct cost - account_move_id.button_draft() - # The Valuation Layer has been changed, - # now we have to edit the STJ Entry - for ji_id in account_move_id.line_ids: - if ji_id.credit != 0: - ji_id.with_context(check_move_validity=False).write( - {"credit": total_cost} - ) - elif ji_id.debit != 0: - ji_id.with_context(check_move_validity=False).write( - {"debit": total_cost} - ) - account_move_id.sudo().action_post() diff --git a/osi_fifo_serialized_fix/models/mrp_workcenter_productivity.py b/osi_fifo_serialized_fix/models/mrp_workcenter_productivity.py deleted file mode 100644 index f4877aaf2..000000000 --- a/osi_fifo_serialized_fix/models/mrp_workcenter_productivity.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2023 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class MRPWorkcenterProductivity(models.Model): - _inherit = "mrp.workcenter.productivity" - - cost_already_recorded = fields.Boolean( - "Cost Recorded", - help="Technical field automatically checked when a ongoing production " - "posts journal entries for its costs. This way, we can record one " - "production's cost multiple times and only consider new entries " - "in the work centers time lines.", - ) diff --git a/osi_fifo_serialized_fix/models/product.py b/osi_fifo_serialized_fix/models/product.py deleted file mode 100644 index eb77729de..000000000 --- a/osi_fifo_serialized_fix/models/product.py +++ /dev/null @@ -1,104 +0,0 @@ -from odoo import models -from odoo.tools import float_is_zero - - -class ProductProduct(models.Model): - _inherit = "product.product" - - def _run_fifo(self, quantity, company): - if self.tracking == "none": - res = super()._run_fifo(quantity, company) - return res - rel_stock_move = ( - self._context.get("stock_move_id") or self.env["stock.move"].sudo() - ) - - self.ensure_one() - - # Find back incoming stock valuation layers - # (called candidates here) to value `quantity`. - qty_to_take_on_candidates = quantity - candidates = ( - self.env["stock.valuation.layer"] - .sudo() - .search( - [ - ("product_id", "=", self.id), - ("remaining_qty", ">", 0), - ("company_id", "=", company.id), - ] - ) - ) - new_standard_price = 0 - tmp_value = 0 # to accumulate the value taken on the candidates - for candidate in candidates: - if any(lot in candidate.lot_ids for lot in rel_stock_move.lot_ids): - qty_taken_on_candidate = min( - qty_to_take_on_candidates, candidate.remaining_qty - ) - candidate_unit_cost = ( - candidate.remaining_value / candidate.remaining_qty - ) - new_standard_price = candidate_unit_cost - value_taken_on_candidate = qty_taken_on_candidate * candidate_unit_cost - value_taken_on_candidate = candidate.currency_id.round( - value_taken_on_candidate - ) - new_remaining_value = ( - candidate.remaining_value - value_taken_on_candidate - ) - - candidate_vals = { - "remaining_qty": candidate.remaining_qty - qty_taken_on_candidate, - "remaining_value": new_remaining_value, - } - - candidate.write(candidate_vals) - - qty_to_take_on_candidates -= qty_taken_on_candidate - tmp_value += value_taken_on_candidate - - if float_is_zero( - qty_to_take_on_candidates, precision_rounding=self.uom_id.rounding - ): - if float_is_zero( - candidate.remaining_qty, precision_rounding=self.uom_id.rounding - ): - next_candidates = candidates.filtered( - lambda svl: svl.remaining_qty > 0 - ) - new_standard_price = ( - next_candidates - and next_candidates[0].unit_cost - or new_standard_price - ) - break - - # Update the standard price with the price of the last used candidate, if any. - if new_standard_price and self.cost_method == "fifo": - self.sudo().with_company(company.id).with_context( - disable_auto_svl=True - ).standard_price = new_standard_price - - # If there's still quantity to value but we're out of candidates, we fall in the - # negative stock use case. We chose to value the out move at the price of the - # last out and a correction entry will be made once `_fifo_vacuum` is called. - vals = {} - if float_is_zero( - qty_to_take_on_candidates, precision_rounding=self.uom_id.rounding - ): - vals = { - "value": -tmp_value, - "unit_cost": tmp_value / quantity, - } - else: - assert qty_to_take_on_candidates > 0 - last_fifo_price = new_standard_price or self.standard_price - negative_stock_value = last_fifo_price * -qty_to_take_on_candidates - tmp_value += abs(negative_stock_value) - vals = { - "remaining_qty": -qty_to_take_on_candidates, - "value": -tmp_value, - "unit_cost": last_fifo_price, - } - return vals diff --git a/osi_fifo_serialized_fix/models/stock_move.py b/osi_fifo_serialized_fix/models/stock_move.py deleted file mode 100644 index 0f8e7895c..000000000 --- a/osi_fifo_serialized_fix/models/stock_move.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2023, Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -from odoo import models - - -class StockMove(models.Model): - _inherit = "stock.move" - - def _create_out_svl(self, forced_quantity=None): - res = self.env["stock.valuation.layer"] - for move in self: - result = super( - StockMove, move.with_context(stock_move_id=move) - )._create_out_svl(forced_quantity) - res += result - return res diff --git a/osi_fifo_serialized_fix/models/stock_valuation_layer.py b/osi_fifo_serialized_fix/models/stock_valuation_layer.py deleted file mode 100644 index 3988b465a..000000000 --- a/osi_fifo_serialized_fix/models/stock_valuation_layer.py +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright (C) 2023, Open Source Integrators -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -from odoo import api, fields, models - - -class StockProductionLot(models.Model): - _inherit = "stock.lot" - - real_price = fields.Float() - - -class StockValuationLayer(models.Model): - _inherit = "stock.valuation.layer" - - lot_ids = fields.Many2many("stock.lot", string="Lot ID's") - repair_type = fields.Selection([("add", "ADD"), ("remove", "Remove")]) - - @api.model_create_multi - def create(self, vals_list): - new_vals_list = [] - for val in vals_list: - stock_move_id = self.env["stock.move"].browse(val.get("stock_move_id")) - svl_id = self.env["stock.valuation.layer"].browse( - val.get("stock_valuation_layer_id") - ) - if stock_move_id: - if len(stock_move_id.move_line_ids) > 1: - for line in stock_move_id.move_line_ids: - new_val = val.copy() - new_val["quantity"] = line.quantity - new_val["remaining_qty"] = line.quantity - new_val["value"] = line.quantity * new_val.get("unit_cost") - new_val["remaining_value"] = new_val["value"] - if line.lot_id: - new_val["lot_ids"] = [line.lot_id.id] - new_vals_list.append(new_val) - else: - if stock_move_id.move_line_ids.lot_id: - val["lot_ids"] = [stock_move_id.move_line_ids.lot_id.id] - new_vals_list.append(val) - elif svl_id: - new_val = val.copy() - new_val["lot_ids"] = [svl_id.lot_ids.ids] - new_vals_list.append(new_val) - res = super().create(new_vals_list) - for layer in res.filtered( - lambda ly: ly.stock_move_id.lot_ids or ly.stock_valuation_layer_id.lot_ids - ): - # Update the lot price when we do incoming lots - # update the lot_ids for linked layer. - # i.g. Landed cost layers, Price diff layers. - if layer.stock_valuation_layer_id and not layer.lot_ids: - layer.lot_ids = layer.stock_valuation_layer_id.lot_ids - - # Update lot price for Purchase and Inventory Adjustment Increase - if layer.stock_move_id.location_id.usage in ("inventory", "supplier"): - layer_ids = self.search([("lot_ids", "in", layer.lot_ids.ids)]) - total_qty = sum(layer_ids.mapped("quantity")) - total_value = sum(layer_ids.mapped("value")) - layer.lot_ids.write( - {"real_price": total_value / total_qty if total_qty else 1} - ) - - # Update the lot price for the raw material moves. - # Update the layer values for raw materual moves - if layer.stock_move_id.raw_material_production_id: - total_lot_price = 0 - for lot in layer.lot_ids: - all_lot_layers = self.search( - [("lot_ids", "in", lot.id), ("id", "!=", layer.id)] - ).sorted(reverse=True) - move_lines = layer.stock_move_id.move_line_ids.filtered( - lambda x: x.lot_id.id == lot.id - ) - move_quantity = sum(move_line.quantity for move_line in move_lines) - total_lot_quantity = 0 - lot_price_total = 0 - for consumed_layer in all_lot_layers: - adjusted_value = 0 - if not move_quantity: - break - layer_diff = ( - consumed_layer.quantity - consumed_layer.remaining_qty - ) - if not layer_diff and not consumed_layer.price_diff_value: - consumed_quantity = move_quantity - move_quantity = 0 - elif layer_diff <= move_quantity: - if not layer_diff and consumed_layer.price_diff_value: - linked_layers = self.search( - [ - ("lot_ids", "in", lot.id), - ("id", "not in", (layer.id, consumed_layer.id)), - ] - ) - qty = sum(linked_layers.mapped("quantity")) - if qty: - adjusted_value = (consumed_layer.value / qty) * min( - qty, move_quantity - ) - move_quantity -= layer_diff - consumed_quantity = layer_diff - elif layer_diff > move_quantity: - consumed_quantity = move_quantity - move_quantity = 0 - else: - continue - real_price = ( - consumed_layer.value / consumed_layer.quantity - if consumed_layer.quantity - else 0 - ) - real_value = (real_price * consumed_quantity) + adjusted_value - total_lot_price += real_value - lot_price_total += real_value - total_lot_quantity += consumed_quantity - lot.write({"real_price": lot_price_total / total_lot_quantity}) - layer.remaining_value = 0 - layer.value = -total_lot_price - - layer.unit_cost = -( - total_lot_price / layer.quantity if layer.quantity else 1 - ) - - if ( - layer.stock_move_id.production_id - and layer.stock_move_id.product_id.cost_method in ("fifo", "average") - ): - layer.stock_move_id.production_id.lot_producing_id.real_price = ( - layer.stock_move_id.price_unit - ) - - # For inventory Decrease - if ( - layer.stock_move_id - and layer.stock_move_id.location_dest_id.usage in ("inventory") - and "inventory_mode" in self._context.keys() - ): - layer.unit_cost = sum(layer.mapped("lot_ids").mapped("real_price")) - layer.value = layer.unit_cost * layer.quantity - return res - - def svl_lots_update(self): - # Update lot_ids on svl for existing records. - for svl in self: - svl.lot_ids = [ - (6, 0, svl.stock_move_id.mapped("move_line_ids").mapped("lot_id").ids) - ] diff --git a/osi_fifo_serialized_fix/views/stock_valuation_layer.xml b/osi_fifo_serialized_fix/views/stock_valuation_layer.xml deleted file mode 100644 index 42e5ab2e5..000000000 --- a/osi_fifo_serialized_fix/views/stock_valuation_layer.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - inventory.valuation.lot.ids.form - stock.valuation.layer - - - - - - - - - - inventory.valuation.lot.ids.tree - stock.valuation.layer - - - - - - - - - diff --git a/setup/.setuptools-odoo-make-default-ignore b/setup/.setuptools-odoo-make-default-ignore deleted file mode 100644 index 207e61533..000000000 --- a/setup/.setuptools-odoo-make-default-ignore +++ /dev/null @@ -1,2 +0,0 @@ -# addons listed in this file are ignored by -# setuptools-odoo-make-default (one addon per line) diff --git a/setup/README b/setup/README deleted file mode 100644 index a63d633e8..000000000 --- a/setup/README +++ /dev/null @@ -1,2 +0,0 @@ -To learn more about this directory, please visit -https://pypi.python.org/pypi/setuptools-odoo