Skip to content

Commit cc50395

Browse files
committed
[ADD] bees_custom: label default code as product location
1 parent cbfab09 commit cc50395

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

bees_custom/README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ BEES Customizations
2222
Specifics customizations for BEES coop
2323

2424
* make due date editable when a payment term is set
25+
* label default_code as product location in product info screen
2526

2627
**Table of contents**
2728

bees_custom/__manifest__.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"version": "12.0.1.0.1",
77
"depends": [
88
"beesdoo_account",
9+
"beesdoo_product_info_screen",
910
],
1011
"author": "Coop IT Easy SCRLfs",
1112
"license": "AGPL-3",
@@ -16,6 +17,7 @@
1617
""",
1718
"data": [
1819
"views/account_invoice.xml",
20+
"views/products.xml",
1921
],
2022
"installable": True,
2123
}

bees_custom/readme/DESCRIPTION.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Specifics customizations for BEES coop
22

33
* make due date editable when a payment term is set
4+
* label default_code as product location in product info screen

bees_custom/static/description/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ <h1 class="title">BEES Customizations</h1>
371371
<p>Specifics customizations for BEES coop</p>
372372
<ul class="simple">
373373
<li>make due date editable when a payment term is set</li>
374+
<li>label default_code as product location in product info screen</li>
374375
</ul>
375376
<p><strong>Table of contents</strong></p>
376377
<div class="contents local topic" id="contents">

bees_custom/views/products.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2021 Coop IT Easy
4+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
5+
-->
6+
<odoo>
7+
<record id="view_product_information_read_only_form" model="ir.ui.view">
8+
<field name="name">view_product_information_read_only_form_inherit</field>
9+
<field name="model">product.template</field>
10+
<field name="inherit_id" ref="beesdoo_product_info_screen.view_product_information_read_only_form"/>
11+
<field name="arch" type="xml">
12+
<field name="default_code" position="attributes">
13+
<attribute name="string">Product Location</attribute>
14+
</field>
15+
</field>
16+
</record>
17+
18+
<record id="view_product_information_read_only_tree" model="ir.ui.view">
19+
<field name="name">view_product_information_read_only_tree_inherit</field>
20+
<field name="model">product.template</field>
21+
<field name="inherit_id" ref="beesdoo_product_info_screen.view_product_information_read_only_tree"/>
22+
<field name="arch" type="xml">
23+
<field name="default_code" position="attributes">
24+
<attribute name="string">Product Location</attribute>
25+
</field>
26+
</field>
27+
</record>
28+
</odoo>

0 commit comments

Comments
 (0)