diff --git a/sale_pricelist_customer_ref/README.rst b/sale_pricelist_customer_ref/README.rst new file mode 100644 index 0000000..2d3385b --- /dev/null +++ b/sale_pricelist_customer_ref/README.rst @@ -0,0 +1,3 @@ +=========================== +SALE PRICELIST CUSTOMER REF +=========================== 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..922675c --- /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": "15.0.1.0.0", + "category": "Sales", + "author": "Glo Networks", + "website": "https://github.com/GlodoUK/sale", + "depends": [ + "product", + ], + "data": ["views/product_pricelist.xml"], + "license": "LGPL-3", +} 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..b5b47c2 --- /dev/null +++ b/sale_pricelist_customer_ref/views/product_pricelist.xml @@ -0,0 +1,13 @@ + + + + product.pricelist.view + product.pricelist + + + + + + + + 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, +)