TIP: You can type at any time to perform a new search.
AEAT modelo 592
l10n_es_aeat_mod592 · OCA/l10n-spain
Security findings
- Repository
- OCA/l10n-spain · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Accounting
- Folder size
- 1.48 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-spain
- Last tracking update
- 2026-08-28 17:32:05
- Authors
- Odoo Community Association (OCA), Tecnativa, Binhex System Solutions
- Maintainers
- Odoo Community Association (OCA), Tecnativa, Binhex System Solutions
- Committers
- Víctor Martínez, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- unidecode, xlrd, xlsxwriter
- System dependencies
- None
- Required by
- None
- Description
Módulo que calcula el impuesto al plástico Mod592. Esto módulo introduce el menú "AEAT 592 Model" en Contabilidad -\> Informe -\> Declaraciones AEAT -\> AEAT 592 Model. Es posible visualizar e imprimir por separado: - Registro de asientos con productos en impuestos al plástico de los asquirientes Es posible exportar los registros a archivo con extensión csv para subir a la web de la AEAT.
Code Analysis
Views touched (18)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
l10n_es_aeat_mod592.mod592_acquirer_record |
l10n_es_aeat_mod592.mod592_acquirer_record | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.mod592_acquirer_record_head |
l10n_es_aeat_mod592.mod592_acquirer_record_head | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.mod592_acquirer_summary |
l10n_es_aeat_mod592.mod592_acquirer_summary | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.mod592_manufacturer_record |
l10n_es_aeat_mod592.mod592_manufacturer_record | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.mod592_manufacturer_record_head |
l10n_es_aeat_mod592.mod592_manufacturer_record_head | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.mod592_manufacturer_summary |
l10n_es_aeat_mod592.mod592_manufacturer_summary | ir.ui.view | qweb | New |
l10n_es_aeat_mod592.report_aeat_mod592_document |
l10n_es_aeat_mod592.report_aeat_mod592_document | ir.ui.view | qweb | New |
l10n_es_aeat_mod_592_acquirer_entries_view_form |
l10n_es_aeat_mod_592_acquirer_entries.view.form | l10n.es.aeat.mod592.report.line.acquirer | form | New |
l10n_es_aeat_mod_592_acquirer_entries_view_tree |
l10n_es_aeat_mod_592_acquirer_entries.view.tree | l10n.es.aeat.mod592.report.line.acquirer | list | New |
l10n_es_aeat_mod_592_manufacturer_entries_view_form |
l10n_es_aeat_mod_592_manufacturer_entries.view.form | l10n.es.aeat.mod592.report.line.manufacturer | form | New |
l10n_es_aeat_mod_592_manufacturer_entries_view_tree |
l10n_es_aeat_mod_592_manufacturer_eentries.view.tree | l10n.es.aeat.mod592.report.line.manufacturer | list | New |
product_template_form_view_inherit_l10n_es_aeat_mod592 |
product.template.view.form.inherit | product.template | form | Inherits product.product_template_form_view |
product_variant_easy_edit_view_inherit_l10n_es_aeat_mod592 |
product.product.view.form.easy | product.product | form | Inherits product.product_variant_easy_edit_view |
report_l10n_es_mod592_pdf |
report_l10n_es_mod592_pdf | ir.ui.view | qweb | New |
view_company_aeat_form_inherit_l10n_es_aeat_mod592 |
res.company.report.view.form.inherit | res.company | form | Inherits l10n_es_aeat.view_company_aeat_form |
view_l10n_es_aeat_mod592_report_form |
l10n_es.aeat.mod592.report.form | l10n.es.aeat.mod592.report | form | Inherits l10n_es_aeat.view_l10n_es_aeat_report_form |
view_l10n_es_aeat_mod592_report_tree |
l10n_es.aeat.mod592.report.tree | l10n.es.aeat.mod592.report | list | Inherits l10n_es_aeat.view_l10n_es_aeat_report_tree |
view_partner_property_form_inherit_l10n_es_aeat_mod592 |
res.partner.view.form.inherit | res.partner | form | Inherits account.view_partner_property_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (12)
New fields (18)
-
acquirer_line_idsOne2many → l10n.es.aeat.mod592.report.line.acquirercomodel_name='l10n.es.aeat.mod592.report.line.acquirer'copy=Falseinverse_name='report_id'readonly=Truestring='Acquirer entries' -
amount_plastic_taxFloatdefault=0.45store=Truestring='Amount tax for non recyclable' -
company_plastic_acquirerBooleanrelated='company_id.company_plastic_acquirer' -
company_plastic_manufacturerBooleanrelated='company_id.company_plastic_manufacturer' -
manufacturer_line_idsOne2many → l10n.es.aeat.mod592.report.line.manufacturercomodel_name='l10n.es.aeat.mod592.report.line.manufacturer'copy=Falseinverse_name='report_id'readonly=Truestring='Manufacturer entries' -
num_lines_acquirerIntegercompute='_compute_num_lines_acquirer'string='Number of lines acquirer' -
num_lines_manufacturerIntegercompute='_compute_num_lines_manufacturer'string='Number of lines manufacturer' -
numberChardefault='592' -
show_error_acquirerBooleancompute='_compute_show_error_acquirer'string='Acquirer lines with error' -
show_error_manufacturerBooleancompute='_compute_show_error_manufacturer'string='Manufacturer lines with error' -
total_acquirer_entriesIntegercompute='_compute_total_acquirer_entries'string='Total acquirer entries' -
total_amount_acquirerFloatcompute='_compute_total_amount_acquirer'digits='Product Price'string='Total amount acquirer' -
total_amount_manufacturerFloatcompute='_compute_total_amount_manufacturer'digits='Product Price'store=Truestring='Total amount manufacturer' -
total_manufacturer_entriesIntegercompute='_compute_total_manufacturer_entries'store=Truestring='Total manufacturer entries' -
total_weight_acquirerFloatcompute='_compute_total_weight_acquirer'string='Total weight acquirer' -
total_weight_acquirer_non_reclyclableFloatcompute='_compute_total_weight_acquirer_non_reclyclable'string='Total weight acquirer non reclyclable' -
total_weight_manufacturerFloatcompute='_compute_total_weight_manufacturer'store=Truestring='Total weight manufacturer' -
total_weight_manufacturer_non_reclyclableFloatcompute='_compute_total_weight_manufacturer_non_reclyclable'store=Truestring='Total weight manufacturer non reclyclable'
-
button_confirm(self)Checks if all the fields of the report are correctly filled -
button_recover(self)Clean children records in this state for allowing things like cancelling an invoice that is inside this report. -
calculate(self)Computes the records in report. -
export_csv_acquirer(self) -
export_csv_manufacturer(self) -
export_xlsx_acquirer(self) -
export_xlsx_manufacturer(self) -
get_acquirer_moves_domain(self)Search intracomunitary incoming moves with plastic tax TODO: Date range search by invoice related date or day 15 of next month whathever is first -
get_manufacturer_moves_domain(self)TODO: Dependency on mrp module could be heavy. we need strong traceability of manufactured quants to covear each case Temporaly retunf a domain that return no records as we dont have this casuistic yet (l10n_es_aeat_mod592_mrp for example). -
get_report_file_name(self) -
view_action_mod592_report_line_acquirer(self) -
view_action_mod592_report_line_manufacturer(self)
New fields (3)
-
conceptSelectioncompute='_compute_concept'selection=[('1', '(1) Intra-community acquisition'), ('2', '(2) Shipping outside Spanish territory'), ('3', '(3) Inadequacy or destruction'), ('4', '(4) Return for destruction or reincorporation into the\n manufacturing process')]store=True -
entry_numberChardefault=<expr> -
fiscal_acquirerSelectioncompute='_compute_fiscal_acquirer'selection=FISCAL_ACQUIRERSstore=Truestring='Fiscal reginme acquirer'
No public methods.
New fields (3)
-
conceptSelectioncompute='_compute_concept'selection=[('1', '(1) Initial existence'), ('2', '(2) Manufacturing'), ('3', '(3) Return of products for destruction or reincorporation into the manufacturing process'), ('4', '(4) Delivery or making available of the products accounted for'), ('5', '(5) Other cancellations of the products accounted for other than their delivery or availability')]store=True -
entry_numberChardefault=<expr> -
fiscal_manufacturerSelectioncompute='_compute_fiscal_manufacturer'selection=FISCAL_MANUFACTURERSstore=Truestring='Fiscal regime manufacturer'
No public methods.
New fields (20)
-
date_doneDatecompute='_compute_date_done'store=Truestring='Date' -
entries_okBooleancompute='_compute_entries_ok'help='Checked if record is OK'string='Entries OK' -
entry_noteTextstring='Entries observation' -
entry_numberCharstring='Entrie number' -
error_textCharcompute='_compute_error_text'store=Truestring='Error text' -
kgsFloatcompute='_compute_kgs'digits='Stock Weight'store=Truestring='Weight' -
no_recycling_kgsFloatcompute='_compute_no_recycling_kgs'digits='Stock Weight'store=Truestring='Weight non reclycable' -
partner_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_partner_id'store=True -
picking_idMany2one → stock.pickingcomodel_name='stock.picking'related='stock_move_id.picking_id' -
product_descriptionCharcompute='_compute_product_description'string='Product description' -
product_idMany2one → product.productcomodel_name='product.product'related='stock_move_id.product_id' -
product_keySelectioncompute='_compute_product_key'selection=PRODUCT_KEYSstore=True -
product_uom_qtyFloatcompute='_compute_product_uom_qty'digits='Product Unit of Measure'store=True -
proofCharcompute='_compute_proof'store=Truestring='Supporting document' -
report_idMany2one → l10n.es.aeat.mod592.reportcomodel_name='l10n.es.aeat.mod592.report'string='Mod592 Report' -
sequenceIntegerdefault=1 -
stock_move_idMany2one → stock.movecomodel_name='stock.move'required=Truestring='Stock Move' -
supplier_document_numberCharcompute='_compute_supplier_document_number'store=Truestring='Supplier document number' -
supplier_document_typeSelectioncompute='_compute_supplier_document_type'selection=DOCUMENT_TYPESstore=Truestring='Supplier document type' -
supplier_social_reasonCharcompute='_compute_supplier_social_reason'store=Truestring='Supplier name'
No public methods.
New fields (7)
-
is_plastic_taxBooleanstring='Is plastic tax?'tracking=True -
plastic_tax_regime_acquirerSelectionselection=FISCAL_ACQUIRERSstring='Plastic tax regime acquirer' -
plastic_tax_regime_manufacturerSelectionselection=FISCAL_MANUFACTURERSstring='Plastic tax regime manufaturer' -
plastic_tax_weightFloatdigits='Stock Weight'string='Plastic weight' -
plastic_type_keySelectionselection=PRODUCT_KEYSstring='Plastic type key' -
plastic_weight_non_recyclableFloatdigits='Stock Weight'string='Plastic weight non recyclable' -
tax_plastic_typeSelectiondefault='both'selection=[('manufacturer', 'Manufacturer'), ('acquirer', 'Acquirer'), ('both', 'Both')]
-
check_plastic_weight_non_recyclable(self)@api.constrains('plastic_weight_non_recyclable', 'plastic_tax_weight')
New fields (7)
-
is_plastic_taxBooleancompute='_compute_plastic_info'inverse='_inverse_plastic_info'search='_search_is_plastic_tax'string='Is plastic tax?'tracking=True -
plastic_tax_regime_acquirerSelectioncompute='_compute_plastic_info'inverse='_inverse_plastic_info'search='_search_plastic_tax_regime_acquirer'selection=FISCAL_ACQUIRERSstring='Plastic tax regime acquirer' -
plastic_tax_regime_manufacturerSelectioncompute='_compute_plastic_info'inverse='_inverse_plastic_info'search='_search_plastic_tax_regime_manufacturer'selection=FISCAL_MANUFACTURERSstring='Plastic tax regime manufaturer' -
plastic_tax_weightFloatcompute='_compute_plastic_info'digits='Stock Weight'inverse='_inverse_plastic_info'search='_search_plastic_tax_weight'string='Plastic weight' -
plastic_type_keySelectioncompute='_compute_plastic_info'inverse='_inverse_plastic_info'search='_search_plastic_type_key'selection=PRODUCT_KEYSstring='Plastic type key' -
plastic_weight_non_recyclableFloatcompute='_compute_plastic_info'digits='Stock Weight'inverse='_inverse_plastic_info'search='_search_plastic_weight_non_recyclable'string='Plastic weight non recyclable' -
tax_plastic_typeSelectioncompute='_compute_plastic_info'default='both'inverse='_inverse_plastic_info'search='_search_tax_plastic_type'selection=[('manufacturer', 'Manufacturer'), ('acquirer', 'Acquirer'), ('both', 'Both')]
-
check_plastic_tax_weight(self)@api.constrains('plastic_weight_non_recyclable', 'plastic_tax_weight')
New fields (0)
No new fields.
Public methods (2)-
csv_report_options(self) -
generate_csv_report(self, writer, data, objects)
New fields (0)
No new fields.
Public methods (2)-
csv_report_options(self) -
generate_csv_report(self, writer, data, objects)
New fields (0)
No new fields.
Public methods (1)-
generate_xlsx_report(self, workbook, data, objects)
New fields (0)
No new fields.
Public methods (1)-
generate_xlsx_report(self, workbook, data, objects)
New fields (2)
-
company_plastic_acquirerBooleandefault=Truestring='Plastic Acquirer' -
company_plastic_manufacturerBooleandefault=Falsestring='Plastic Manufacturer'
No public methods.
New fields (1)
-
plastic_document_typeSelectioncompute='_compute_plastic_document_type'help='Supplier/Recipient Document Type Code'selection=DOCUMENT_TYPESstore=Truestring='Plastic document type'
No public methods.
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 187 days ago
- Last activity
- 38 days ago
- Repository
- OCA/l10n-spain
- Pull request
- [18.0][MIG] l10n_es_aeat_mod592: Migration to 18.0 (#4928)