Skip to content

Commit

Permalink
Merge pull request #14 from GlodoUK/test-apps-odoo-com
Browse files Browse the repository at this point in the history
testing apps.odoo.com
  • Loading branch information
theangryangel authored Aug 15, 2024
2 parents 9e8cc4e + 11b6fb3 commit 9887cf2
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sale_pricelist_customer_ref2/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
===========================
SALE PRICELIST CUSTOMER REF
===========================
1 change: 1 addition & 0 deletions sale_pricelist_customer_ref2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
13 changes: 13 additions & 0 deletions sale_pricelist_customer_ref2/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "sale_pricelist_customer_ref2",
"summary": "Adds customer ref field to pricelist item.",
"version": "17.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",
}
1 change: 1 addition & 0 deletions sale_pricelist_customer_ref2/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product_pricelist_item
7 changes: 7 additions & 0 deletions sale_pricelist_customer_ref2/models/product_pricelist_item.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from odoo import fields, models


class ProductPricelistItem(models.Model):
_inherit = "product.pricelist.item"

customer_ref = fields.Char(string="Customer Reference")
3 changes: 3 additions & 0 deletions sale_pricelist_customer_ref2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
13 changes: 13 additions & 0 deletions sale_pricelist_customer_ref2/views/product_pricelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="product_pricelist_view" model="ir.ui.view">
<field name="name">product.pricelist.view</field>
<field name="model">product.pricelist</field>
<field name="inherit_id" ref="product.product_pricelist_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='date_end']" position="after">
<field name="customer_ref" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit 9887cf2

Please sign in to comment.