diff --git a/okr_management/__manifest__.py b/okr_management/__manifest__.py new file mode 100644 index 00000000..e69de29b diff --git a/sale_properties/__init__.py b/sale_properties/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/sale_properties/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_properties/__manifest__.py b/sale_properties/__manifest__.py new file mode 100644 index 00000000..4d1d0028 --- /dev/null +++ b/sale_properties/__manifest__.py @@ -0,0 +1,20 @@ +{ + 'name': 'Sale Properties', + 'version': "17.0.1.0.0", + 'summary': '', + 'author': 'ADHOC SA', + 'website': 'www.adhoc.com.ar', + 'license': 'AGPL-3', + 'images': [ + ], + 'depends': [ + 'crm', + 'sale_management' + ], + 'data': [ + 'views/sale_order_views.xml', + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/sale_properties/models/__init__.py b/sale_properties/models/__init__.py new file mode 100644 index 00000000..1e4ddb08 --- /dev/null +++ b/sale_properties/models/__init__.py @@ -0,0 +1,2 @@ +from . import crm_team +from . import sale_order diff --git a/sale_properties/models/crm_team.py b/sale_properties/models/crm_team.py new file mode 100644 index 00000000..4d663035 --- /dev/null +++ b/sale_properties/models/crm_team.py @@ -0,0 +1,6 @@ +from odoo import fields, models + +class CrmTeam(models.Model): + _inherit = 'crm.team' + + so_properties_definition = fields.PropertiesDefinition('Properties Definition') diff --git a/sale_properties/models/sale_order.py b/sale_properties/models/sale_order.py new file mode 100644 index 00000000..b8ebc656 --- /dev/null +++ b/sale_properties/models/sale_order.py @@ -0,0 +1,9 @@ +from odoo import fields, models + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + sale_properties = fields.Properties( + string='Sale Properties', + definition='team_id.so_properties_definition' + ) diff --git a/sale_properties/views/sale_order_views.xml b/sale_properties/views/sale_order_views.xml new file mode 100644 index 00000000..3c7b49bf --- /dev/null +++ b/sale_properties/views/sale_order_views.xml @@ -0,0 +1,25 @@ + + + + sale.order.tree.inherit.website.sale + sale.order + + + + + + + + + + + sale.order.inherited.form.properties + sale.order + + + + + + + +