Skip to content

Commit

Permalink
[IMP] *: automatic changes by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lef-adhoc committed Jan 20, 2025
1 parent 5a7bcee commit 29d88ac
Show file tree
Hide file tree
Showing 38 changed files with 753 additions and 703 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

exclude: |
(?x)
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
# Library files can have extraneous formatting (even minimized)
Expand Down
129 changes: 64 additions & 65 deletions academic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,72 +18,71 @@
#
##############################################################################
{
'name': 'Academic',
'version': "18.0.1.2.0",
'sequence': 14,
'summary': '',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'images': [
"name": "Academic",
"version": "18.0.1.2.0",
"sequence": 14,
"summary": "",
"author": "ADHOC SA",
"website": "www.adhoc.com.ar",
"license": "AGPL-3",
"images": [],
"depends": [
"portal_backend",
"board",
"hr",
"website",
"board",
"sale_management",
"account",
"contacts",
"report_aeroo",
],
'depends': [
'portal_backend',
'board',
'hr',
'website',
'board',
'sale_management',
'account',
'contacts',
'report_aeroo',
"data": [
"security/academic_security.xml",
"security/ir.model.access.csv",
"data/res_partner_role_data.xml",
"data/res_users_data.xml",
"data/ir_cron.xml",
"security/res_partner_category.xml",
"views/academic_menuitem.xml",
"views/res_partner_views.xml",
"views/academic_group_views.xml",
"views/academic_division_views.xml",
"views/academic_level_views.xml",
"views/academic_study_plan_views.xml",
"views/academic_promotion_views.xml",
"views/academic_section_views.xml",
"views/academic_subject_views.xml",
"views/hr_views.xml",
"views/res_users_views.xml",
"views/res_company_views.xml",
"views/login_page.xml",
"views/sale_order_views.xml",
"views/res_partner_link_views.xml",
"views/res_partner_relationship_views.xml",
"views/account_move_views.xml",
"wizards/portal_wizard_views.xml",
"report/ir_actions_report.xml",
"views/res_partner_category.xml",
"report/report_invoice.xml",
],
'data': [
'security/academic_security.xml',
'security/ir.model.access.csv',
'data/res_partner_role_data.xml',
'data/res_users_data.xml',
'data/ir_cron.xml',
'security/res_partner_category.xml',
'views/academic_menuitem.xml',
'views/res_partner_views.xml',
'views/academic_group_views.xml',
'views/academic_division_views.xml',
'views/academic_level_views.xml',
'views/academic_study_plan_views.xml',
'views/academic_promotion_views.xml',
'views/academic_section_views.xml',
'views/academic_subject_views.xml',
'views/hr_views.xml',
'views/res_users_views.xml',
'views/res_company_views.xml',
'views/login_page.xml',
'views/sale_order_views.xml',
'views/res_partner_link_views.xml',
'views/res_partner_relationship_views.xml',
'views/account_move_views.xml',
'wizards/portal_wizard_views.xml',
'report/ir_actions_report.xml',
'views/res_partner_category.xml',
'report/report_invoice.xml',
"demo": [
"demo/res_partner_relationship_demo.xml",
"demo/res_partner_demo.xml",
"demo/academic.subject.csv",
"demo/academic.section.csv",
"demo/academic.level.csv",
"demo/academic.promotion.csv",
"demo/res.partner.csv",
"demo/res.partner.link.csv",
"demo/academic.division.csv",
"demo/academic.study.plan.csv",
"demo/res_company_demo.xml",
"demo/academic_group.xml",
"demo/res_users_demo.xml",
],
'demo': [
'demo/res_partner_relationship_demo.xml',
'demo/res_partner_demo.xml',
'demo/academic.subject.csv',
'demo/academic.section.csv',
'demo/academic.level.csv',
'demo/academic.promotion.csv',
'demo/res.partner.csv',
'demo/res.partner.link.csv',
'demo/academic.division.csv',
'demo/academic.study.plan.csv',
'demo/res_company_demo.xml',
'demo/academic_group.xml',
'demo/res_users_demo.xml',
],
'installable': True,
'auto_install': False,
'application': False,
'post_init_hook': 'post_init_hook',
"installable": True,
"auto_install": False,
"application": False,
"post_init_hook": "post_init_hook",
}
7 changes: 4 additions & 3 deletions academic/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
# directory
##############################################################################


def post_init_hook(env):
''' Esto lo dejamos solo para los templates de órdenes de venta y no en facturas debido a que
"""Esto lo dejamos solo para los templates de órdenes de venta y no en facturas debido a que
en facturas hay un wizard custom y no heredamos el método de _message_get_default_recipients,
si se mandan facturas desde el chatter no se van a sugerir, aunque en facturas primero se confirma
(al confirmar se agregan los responsables de pago como seguidores) y luego se enviaría la factura,
así que siempre van a enviarse a los seguidores de la factura.
'''
templates = env['mail.template'].search([('model_id.model', '=', 'sale.order')])
"""
templates = env["mail.template"].search([("model_id.model", "=", "sale.order")])
templates.use_default_to = True
6 changes: 3 additions & 3 deletions academic/models/academic_division.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields
from odoo import fields, models


class AcademicDivision(models.Model):
_name = 'academic.division'
_description = 'division'
_name = "academic.division"
_description = "division"

name = fields.Char(
required=True,
Expand Down
Loading

0 comments on commit 29d88ac

Please sign in to comment.