diff --git a/partner_fax/__init__.py b/partner_fax/__init__.py new file mode 100644 index 000000000..66aa588e8 --- /dev/null +++ b/partner_fax/__init__.py @@ -0,0 +1,4 @@ +# © 2018 Apruzzese Francesco +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/partner_fax/__manifest__.py b/partner_fax/__manifest__.py new file mode 100644 index 000000000..fbc5a2301 --- /dev/null +++ b/partner_fax/__manifest__.py @@ -0,0 +1,20 @@ +# © 2018 Apruzzese Francesco +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Partner fax', + 'category': 'Extra Tools', + 'summary': 'Add fax number on partner', + 'version': '11.0.1.0.0', + 'license': 'AGPL-3', + 'author': 'Francesco Apruzzese, ' + 'Odoo Community Association (OCA)', + 'website': 'https://odoo-community.org/', + 'depends': [ + 'base_setup' + ], + 'data': [ + 'views/res_partner.xml', + ], + 'installable': True, +} diff --git a/partner_fax/models/__init__.py b/partner_fax/models/__init__.py new file mode 100644 index 000000000..a50cd1ea6 --- /dev/null +++ b/partner_fax/models/__init__.py @@ -0,0 +1,4 @@ +# © 2018 Apruzzese Francesco +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import res_partner diff --git a/partner_fax/models/res_partner.py b/partner_fax/models/res_partner.py new file mode 100644 index 000000000..3072830e5 --- /dev/null +++ b/partner_fax/models/res_partner.py @@ -0,0 +1,11 @@ +# © 2018 Apruzzese Francesco +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResPartner(models.Model): + + _inherit = 'res.partner' + + fax = fields.Char() diff --git a/partner_fax/static/description/icon.png b/partner_fax/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_fax/static/description/icon.png differ diff --git a/partner_fax/views/res_partner.xml b/partner_fax/views/res_partner.xml new file mode 100644 index 000000000..4a2a64b4e --- /dev/null +++ b/partner_fax/views/res_partner.xml @@ -0,0 +1,43 @@ + + + + + Add fax on partner + res.partner + + + + + + + + + + + + Add fax on partner + res.partner + + + + + + + + + + + + Add fax on partner + res.partner + + + + + + + + + + +