From 08a0a839b16a83ca39421e007879b4664d055221 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:47:41 +0000 Subject: [PATCH 01/10] add new module sale_pricelist_customer_ref --- sale_pricelist_customer_ref/README.rst | 3 +++ sale_pricelist_customer_ref/__init__.py | 1 + sale_pricelist_customer_ref/__manifest__.py | 13 +++++++++++++ sale_pricelist_customer_ref/models/__init__.py | 1 + .../models/product_pricelist_item.py | 7 +++++++ .../views/product_pricelist.xml | 13 +++++++++++++ 6 files changed, 38 insertions(+) create mode 100644 sale_pricelist_customer_ref/README.rst create mode 100644 sale_pricelist_customer_ref/__init__.py create mode 100644 sale_pricelist_customer_ref/__manifest__.py create mode 100644 sale_pricelist_customer_ref/models/__init__.py create mode 100644 sale_pricelist_customer_ref/models/product_pricelist_item.py create mode 100644 sale_pricelist_customer_ref/views/product_pricelist.xml diff --git a/sale_pricelist_customer_ref/README.rst b/sale_pricelist_customer_ref/README.rst new file mode 100644 index 0000000..9d8ee89 --- /dev/null +++ b/sale_pricelist_customer_ref/README.rst @@ -0,0 +1,3 @@ +=========================== +SALE PRICELIST CUSTOMER REF +=========================== \ No newline at end of file diff --git a/sale_pricelist_customer_ref/__init__.py b/sale_pricelist_customer_ref/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/sale_pricelist_customer_ref/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_pricelist_customer_ref/__manifest__.py b/sale_pricelist_customer_ref/__manifest__.py new file mode 100644 index 0000000..11f8f1e --- /dev/null +++ b/sale_pricelist_customer_ref/__manifest__.py @@ -0,0 +1,13 @@ +{ + "name": "sale_pricelist_customer_ref", + "summary": "Adds customer ref field to pricelist item.", + "version": "16.0.1.0.0", + "category": "Sales", + "author": "Glo Networks", + "website": "https://www.glo.systems/", + "depends": [ + "product", + ], + "data": ["views/product_pricelist.xml"], + "license": "Other proprietary", +} diff --git a/sale_pricelist_customer_ref/models/__init__.py b/sale_pricelist_customer_ref/models/__init__.py new file mode 100644 index 0000000..41c51bd --- /dev/null +++ b/sale_pricelist_customer_ref/models/__init__.py @@ -0,0 +1 @@ +from . import product_pricelist_item diff --git a/sale_pricelist_customer_ref/models/product_pricelist_item.py b/sale_pricelist_customer_ref/models/product_pricelist_item.py new file mode 100644 index 0000000..584a9f2 --- /dev/null +++ b/sale_pricelist_customer_ref/models/product_pricelist_item.py @@ -0,0 +1,7 @@ +from odoo import fields, models + + +class ProductPricelistItem(models.Model): + _inherit = "product.pricelist.item" + + customer_ref = fields.Char(string="Customer Reference") diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml new file mode 100644 index 0000000..1c66fed --- /dev/null +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -0,0 +1,13 @@ + + + + product.pricelist.view + product.pricelist + + + + + + + + \ No newline at end of file From d50e7064fa5be89c115ba5cb1d47b68d712154bd Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:51:35 +0000 Subject: [PATCH 02/10] fix lint error --- sale_pricelist_customer_ref/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_pricelist_customer_ref/README.rst b/sale_pricelist_customer_ref/README.rst index 9d8ee89..2d3385b 100644 --- a/sale_pricelist_customer_ref/README.rst +++ b/sale_pricelist_customer_ref/README.rst @@ -1,3 +1,3 @@ =========================== SALE PRICELIST CUSTOMER REF -=========================== \ No newline at end of file +=========================== From 2d3ab66bfdd120a43ee10d46af2236836d2896fd Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:57:41 +0000 Subject: [PATCH 03/10] fix lint error --- sale_pricelist_customer_ref/views/product_pricelist.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml index 1c66fed..328fc47 100644 --- a/sale_pricelist_customer_ref/views/product_pricelist.xml +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -10,4 +10,5 @@ - \ No newline at end of file + + From eb53641c983da8a63bad420dc5a356d19e031a2d Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 10:43:26 +0000 Subject: [PATCH 04/10] fix linting errors --- sale_pricelist_customer_ref/views/product_pricelist.xml | 3 +-- .../odoo/addons/sale_pricelist_customer_ref | 1 + setup/sale_pricelist_customer_ref/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 120000 setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref create mode 100644 setup/sale_pricelist_customer_ref/setup.py diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml index 328fc47..b5b47c2 100644 --- a/sale_pricelist_customer_ref/views/product_pricelist.xml +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -1,4 +1,4 @@ - + product.pricelist.view @@ -11,4 +11,3 @@ - diff --git a/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref b/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref new file mode 120000 index 0000000..35dcecb --- /dev/null +++ b/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref @@ -0,0 +1 @@ +../../../../sale_pricelist_customer_ref \ No newline at end of file diff --git a/setup/sale_pricelist_customer_ref/setup.py b/setup/sale_pricelist_customer_ref/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/sale_pricelist_customer_ref/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 16f970cb73d4e69037cf5868f67fa3d56d4bbc76 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 10:53:31 +0000 Subject: [PATCH 05/10] update manifest --- sale_pricelist_customer_ref/__manifest__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sale_pricelist_customer_ref/__manifest__.py b/sale_pricelist_customer_ref/__manifest__.py index 11f8f1e..922675c 100644 --- a/sale_pricelist_customer_ref/__manifest__.py +++ b/sale_pricelist_customer_ref/__manifest__.py @@ -1,13 +1,13 @@ { "name": "sale_pricelist_customer_ref", "summary": "Adds customer ref field to pricelist item.", - "version": "16.0.1.0.0", + "version": "15.0.1.0.0", "category": "Sales", "author": "Glo Networks", - "website": "https://www.glo.systems/", + "website": "https://github.com/GlodoUK/sale", "depends": [ "product", ], "data": ["views/product_pricelist.xml"], - "license": "Other proprietary", + "license": "LGPL-3", } From 506ec083ea1b4a83ee43b6d61c2e1b480df8da98 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:47:41 +0000 Subject: [PATCH 06/10] add new module sale_pricelist_customer_ref --- sale_pricelist_customer_ref/README.rst | 3 +++ sale_pricelist_customer_ref/__init__.py | 1 + sale_pricelist_customer_ref/__manifest__.py | 13 +++++++++++++ sale_pricelist_customer_ref/models/__init__.py | 1 + .../models/product_pricelist_item.py | 7 +++++++ .../views/product_pricelist.xml | 13 +++++++++++++ 6 files changed, 38 insertions(+) create mode 100644 sale_pricelist_customer_ref/README.rst create mode 100644 sale_pricelist_customer_ref/__init__.py create mode 100644 sale_pricelist_customer_ref/__manifest__.py create mode 100644 sale_pricelist_customer_ref/models/__init__.py create mode 100644 sale_pricelist_customer_ref/models/product_pricelist_item.py create mode 100644 sale_pricelist_customer_ref/views/product_pricelist.xml diff --git a/sale_pricelist_customer_ref/README.rst b/sale_pricelist_customer_ref/README.rst new file mode 100644 index 0000000..9d8ee89 --- /dev/null +++ b/sale_pricelist_customer_ref/README.rst @@ -0,0 +1,3 @@ +=========================== +SALE PRICELIST CUSTOMER REF +=========================== \ No newline at end of file diff --git a/sale_pricelist_customer_ref/__init__.py b/sale_pricelist_customer_ref/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/sale_pricelist_customer_ref/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_pricelist_customer_ref/__manifest__.py b/sale_pricelist_customer_ref/__manifest__.py new file mode 100644 index 0000000..11f8f1e --- /dev/null +++ b/sale_pricelist_customer_ref/__manifest__.py @@ -0,0 +1,13 @@ +{ + "name": "sale_pricelist_customer_ref", + "summary": "Adds customer ref field to pricelist item.", + "version": "16.0.1.0.0", + "category": "Sales", + "author": "Glo Networks", + "website": "https://www.glo.systems/", + "depends": [ + "product", + ], + "data": ["views/product_pricelist.xml"], + "license": "Other proprietary", +} diff --git a/sale_pricelist_customer_ref/models/__init__.py b/sale_pricelist_customer_ref/models/__init__.py new file mode 100644 index 0000000..41c51bd --- /dev/null +++ b/sale_pricelist_customer_ref/models/__init__.py @@ -0,0 +1 @@ +from . import product_pricelist_item diff --git a/sale_pricelist_customer_ref/models/product_pricelist_item.py b/sale_pricelist_customer_ref/models/product_pricelist_item.py new file mode 100644 index 0000000..584a9f2 --- /dev/null +++ b/sale_pricelist_customer_ref/models/product_pricelist_item.py @@ -0,0 +1,7 @@ +from odoo import fields, models + + +class ProductPricelistItem(models.Model): + _inherit = "product.pricelist.item" + + customer_ref = fields.Char(string="Customer Reference") diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml new file mode 100644 index 0000000..1c66fed --- /dev/null +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -0,0 +1,13 @@ + + + + product.pricelist.view + product.pricelist + + + + + + + + \ No newline at end of file From b3197eb8a63c2f32f70540db1d1e858d876e274a Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:51:35 +0000 Subject: [PATCH 07/10] fix lint error --- sale_pricelist_customer_ref/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_pricelist_customer_ref/README.rst b/sale_pricelist_customer_ref/README.rst index 9d8ee89..2d3385b 100644 --- a/sale_pricelist_customer_ref/README.rst +++ b/sale_pricelist_customer_ref/README.rst @@ -1,3 +1,3 @@ =========================== SALE PRICELIST CUSTOMER REF -=========================== \ No newline at end of file +=========================== From 23bdbdc6c01394f64fea0fa60b1aad29d2856750 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 09:57:41 +0000 Subject: [PATCH 08/10] fix lint error --- sale_pricelist_customer_ref/views/product_pricelist.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml index 1c66fed..328fc47 100644 --- a/sale_pricelist_customer_ref/views/product_pricelist.xml +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -10,4 +10,5 @@ - \ No newline at end of file + + From 5179baeef1c8d516d0b39954d89e660983b34645 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 10:43:26 +0000 Subject: [PATCH 09/10] fix linting errors --- sale_pricelist_customer_ref/views/product_pricelist.xml | 3 +-- .../odoo/addons/sale_pricelist_customer_ref | 1 + setup/sale_pricelist_customer_ref/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 120000 setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref create mode 100644 setup/sale_pricelist_customer_ref/setup.py diff --git a/sale_pricelist_customer_ref/views/product_pricelist.xml b/sale_pricelist_customer_ref/views/product_pricelist.xml index 328fc47..b5b47c2 100644 --- a/sale_pricelist_customer_ref/views/product_pricelist.xml +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -1,4 +1,4 @@ - + product.pricelist.view @@ -11,4 +11,3 @@ - diff --git a/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref b/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref new file mode 120000 index 0000000..35dcecb --- /dev/null +++ b/setup/sale_pricelist_customer_ref/odoo/addons/sale_pricelist_customer_ref @@ -0,0 +1 @@ +../../../../sale_pricelist_customer_ref \ No newline at end of file diff --git a/setup/sale_pricelist_customer_ref/setup.py b/setup/sale_pricelist_customer_ref/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/sale_pricelist_customer_ref/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From e24ba5adccd4bec30b36a12adf9874f18aaa9166 Mon Sep 17 00:00:00 2001 From: Kobby Folson Date: Fri, 22 Mar 2024 10:53:31 +0000 Subject: [PATCH 10/10] update manifest --- sale_pricelist_customer_ref/__manifest__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sale_pricelist_customer_ref/__manifest__.py b/sale_pricelist_customer_ref/__manifest__.py index 11f8f1e..922675c 100644 --- a/sale_pricelist_customer_ref/__manifest__.py +++ b/sale_pricelist_customer_ref/__manifest__.py @@ -1,13 +1,13 @@ { "name": "sale_pricelist_customer_ref", "summary": "Adds customer ref field to pricelist item.", - "version": "16.0.1.0.0", + "version": "15.0.1.0.0", "category": "Sales", "author": "Glo Networks", - "website": "https://www.glo.systems/", + "website": "https://github.com/GlodoUK/sale", "depends": [ "product", ], "data": ["views/product_pricelist.xml"], - "license": "Other proprietary", + "license": "LGPL-3", }