-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_es_aeat_mod303, l10n_es_aeat_mod390: Default values in com…
…anies @moduon MT-8488 Co-authored-by: Loida Vilaplana <[email protected]> Co-authored-by: Arantxa Sudón <[email protected]>
- Loading branch information
1 parent
dcbf5ab
commit db7ad0d
Showing
14 changed files
with
956 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import mod303 | ||
from . import res_company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2024 Moduon Team - Emilio Pascual | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResCompany(models.Model): | ||
_inherit = "res.company" | ||
|
||
main_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código actividad principal", | ||
) | ||
main_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. actividad principal", | ||
size=4, | ||
) | ||
other_first_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código 1ª actividad", | ||
) | ||
other_first_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. 1ª actividad", | ||
size=4, | ||
) | ||
other_second_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código 2ª actividad", | ||
) | ||
other_second_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. 2ª actividad", | ||
size=4, | ||
) | ||
other_third_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código 3ª actividad", | ||
) | ||
other_third_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. 3ª actividad", | ||
size=4, | ||
) | ||
other_fourth_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código 4ª actividad", | ||
) | ||
other_fourth_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. 4ª actividad", | ||
size=4, | ||
) | ||
other_fifth_activity_code_id = fields.Many2one( | ||
comodel_name="l10n.es.aeat.mod303.report.activity.code", | ||
string="Código 5ª actividad", | ||
) | ||
other_fifth_activity_iae = fields.Char( | ||
string="Epígrafe I.A.E. 5ª actividad", | ||
size=4, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.