diff --git a/bemade_partner_email_domain/__manifest__.py b/bemade_partner_email_domain/__manifest__.py index 0e65dc9..5047c18 100644 --- a/bemade_partner_email_domain/__manifest__.py +++ b/bemade_partner_email_domain/__manifest__.py @@ -28,7 +28,7 @@ 'data': [ 'views/res_partner_views.xml', 'data/mail_template_data.xml', - 'data/template_data' + 'data/template_data.xml' ], 'license': 'AGPL-3', 'author': 'Bemade', diff --git a/bemade_sale_order_line_number/__manifest__.py b/bemade_sale_order_line_number/__manifest__.py new file mode 100644 index 0000000..ff1e89d --- /dev/null +++ b/bemade_sale_order_line_number/__manifest__.py @@ -0,0 +1,21 @@ +{ + 'name': 'Sale Order Line Sequence View Modification', + 'version': '1.0', + 'summary': 'Modifies the Sale Order Line View to show Sequence twice', + 'sequence': 10, + 'description': """ + This module modifies the Sale Order Line view to display the sequence field as both a handle widget and a number. + """, + 'category': 'Sales Management', + 'author': 'Bemade', + 'website': 'https://www.bemade.org', + 'depends': ['sale_management'], + 'data': [ + 'views/sale_order_view.xml', + ], + 'demo': [], + 'installable': True, + 'application': False, + 'auto_install': False, + 'license': 'LGPL-3', +} \ No newline at end of file diff --git a/bemade_sale_order_line_number/views/sale_order_views.xml b/bemade_sale_order_line_number/views/sale_order_views.xml new file mode 100644 index 0000000..f13f0bf --- /dev/null +++ b/bemade_sale_order_line_number/views/sale_order_views.xml @@ -0,0 +1,27 @@ + +To modify the sale.order.line view so that the sequence field is shown twice, once as a widget and once as a regular number field, you would need to modify the form view of the sale.order model where the sale.order.line is defined as a One2many field (usually with a tree view inside a form view). + +Here is an example of how you can extend the view in an XML file within your custom module: + +xml +Copy code + + + + + + sale.order.form.inherit.sequence + sale.order + + + + + + + + + + + + + \ No newline at end of file