8 changed files with 179 additions and 115 deletions
@ -1,31 +0,0 @@ |
|||||
Product Brand in Inventory |
|
||||
========================== |
|
||||
|
|
||||
Installation |
|
||||
============ |
|
||||
- www.odoo.com/documentation/15.0/setup/install.html |
|
||||
- Install our custom addon |
|
||||
|
|
||||
License |
|
||||
======= |
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) |
|
||||
(http://www.gnu.org/licenses/agpl.html) |
|
||||
|
|
||||
Bug Tracker |
|
||||
=========== |
|
||||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|
||||
|
|
||||
Credits |
|
||||
======= |
|
||||
* Cybrosys Techno Solutions <https://www.cybrosys.com> |
|
||||
|
|
||||
|
|
||||
Developer: Sonu Soman - sonu@cybrosys.info |
|
||||
|
|
||||
Maintainer |
|
||||
---------- |
|
||||
|
|
||||
This module is maintained by Cybrosys Technologies. |
|
||||
|
|
||||
For support and more information, please visit https://www.cybrosys.com. |
|
||||
|
|
@ -0,0 +1,44 @@ |
|||||
|
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Product Brand in Inventory |
||||
|
========================== |
||||
|
|
||||
|
This module lets you add Brand in Inventory and for products. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
- www.odoo.com/documentation/16.0/setup/install.html |
||||
|
- Install our custom addon |
||||
|
|
||||
|
License |
||||
|
======= |
||||
|
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) |
||||
|
(http://www.gnu.org/licenses/agpl.html) |
||||
|
|
||||
|
Bug Tracker |
||||
|
=========== |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Developer: (V16) Sonu Soman, Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Maintainer |
||||
|
---------- |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit https://www.cybrosys.com. |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -1 +1,21 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# This program is free software: you can modify |
||||
|
# it under the terms of the GNU Affero General Public License (AGPL) as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
from . import brand |
from . import brand |
@ -1,86 +1,111 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<odoo> |
<odoo> |
||||
<data> |
<!-- Form view edited of product template. --> |
||||
<record id="product_brand_id" model="ir.ui.view"> |
<record id="product_template_form_view" model="ir.ui.view"> |
||||
<field name="name">Brand Name</field> |
<field name="name">product.template.form.view.inherit.product.brand</field> |
||||
<field name="model">product.template</field> |
<field name="model">product.template</field> |
||||
<field name="inherit_id" ref="product.product_template_form_view"/> |
<field name="inherit_id" ref="product.product_template_form_view"/> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<field name="categ_id" position="after"> |
<field name="categ_id" position="after"> |
||||
<field name="brand_id"/> |
<field name="brand_id"/> |
||||
</field> |
|
||||
</field> |
</field> |
||||
</record> |
</field> |
||||
|
</record> |
||||
|
|
||||
<record id="product_brand_action" model="ir.actions.act_window"> |
<!-- Action for Product Brand--> |
||||
<field name="name">Product Brand</field> |
|
||||
<field name="res_model">product.brand</field> |
|
||||
<field name="view_mode">tree,form</field> |
|
||||
</record> |
|
||||
<record id="product_brand_view" model="ir.ui.view"> |
|
||||
<field name="name">Product Brand</field> |
|
||||
<field name="model">product.brand</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form> |
|
||||
<sheet> |
|
||||
<field name="brand_image" widget="image" class="oe_avatar"/> |
|
||||
<div class="oe_title"> |
|
||||
<label for="name" class="oe_edit_only" string="Brand Name"/> |
|
||||
<h1> |
|
||||
<field name="name"/> |
|
||||
</h1> |
|
||||
<div name="options_active"/> |
|
||||
</div> |
|
||||
<group> |
|
||||
<field name="product_count" style="width:40px;"/> |
|
||||
</group> |
|
||||
|
|
||||
|
<record id="product_brand_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Product Brand</field> |
||||
|
<field name="res_model">product.brand</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
|
||||
<notebook> |
<!-- Product Brand Form view--> |
||||
<page string="Products"> |
|
||||
<field name="member_ids" widget="many2many" options="{'not_delete': True}"> |
<record id="product_brand_view_form" model="ir.ui.view"> |
||||
<kanban quick_create="false" create="true" delete="true"> |
<field name="name">product.brand.view.form</field> |
||||
<field name="id"/> |
<field name="model">product.brand</field> |
||||
<field name="name"/> |
<field name="arch" type="xml"> |
||||
<templates> |
<form> |
||||
<t t-name="kanban-box"> |
<sheet> |
||||
<div class="oe_kanban_global_click" style="max-width: 200px"> |
<field name="brand_image" widget="image" class="oe_avatar"/> |
||||
<div class="o_kanban_record_top"> |
<div class="oe_title"> |
||||
<img t-att-src="kanban_image('product.template', 'image_128', record.id.raw_value)" |
<label for="name" class="oe_edit_only" |
||||
class="oe_avatar oe_kanban_avatar_smallbox o_image_40_cover mb0" |
string="Brand Name"/> |
||||
alt="Avatar"/> |
<h1> |
||||
<div class="o_kanban_record_headings ml8"> |
<field name="name"/> |
||||
<strong class="o_kanban_record_title"> |
</h1> |
||||
<field name="name"/> |
<div name="options_active"/> |
||||
</strong> |
</div> |
||||
</div> |
<group> |
||||
|
<field name="product_count" style="width:40px;"/> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page string="Products"> |
||||
|
<field name="member_ids" widget="many2many" |
||||
|
options="{'not_delete': True}"> |
||||
|
<kanban quick_create="false" create="true" |
||||
|
delete="true"> |
||||
|
<field name="id"/> |
||||
|
<field name="name"/> |
||||
|
<templates> |
||||
|
<t t-name="kanban-box"> |
||||
|
<div class="oe_kanban_global_click" |
||||
|
style="max-width: 200px"> |
||||
|
<div class="o_kanban_record_top"> |
||||
|
<img t-att-src="kanban_image('product.template', 'image_128', record.id.raw_value)" |
||||
|
class="oe_avatar oe_kanban_avatar_smallbox o_image_40_cover mb0" |
||||
|
alt="Avatar"/> |
||||
|
<div class="o_kanban_record_headings ml8"> |
||||
|
<strong class="o_kanban_record_title"> |
||||
|
<field name="name"/> |
||||
|
</strong> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</t> |
</div> |
||||
</templates> |
</t> |
||||
</kanban> |
</templates> |
||||
</field> |
</kanban> |
||||
</page> |
</field> |
||||
</notebook> |
</page> |
||||
</sheet> |
</notebook> |
||||
</form> |
</sheet> |
||||
</field> |
</form> |
||||
</record> |
</field> |
||||
|
</record> |
||||
|
|
||||
<record id="brand_group_by" model="ir.ui.view"> |
<!-- Group by for Brand in Product Template Search--> |
||||
<field name="name">product.template.search.inherit</field> |
|
||||
<field name="model">product.template</field> |
<record id="brand_group_by" model="ir.ui.view"> |
||||
<field name="inherit_id" ref="product.product_template_search_view"/> |
<field name="name">product.template.search.inherit</field> |
||||
<field name="arch" type="xml"> |
<field name="model">product.template</field> |
||||
<xpath expr="//search" position="inside"> |
<field name="inherit_id" ref="product.product_template_search_view"/> |
||||
<filter string="Brand" name="Brand" context="{'group_by':'brand_id'}"/> |
<field name="arch" type="xml"> |
||||
</xpath> |
<xpath expr="//search" position="inside"> |
||||
</field> |
<filter string="Brand" name="Brand" |
||||
</record> |
context="{'group_by':'brand_id'}"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<!-- Brand Group By in Stock On Hand --> |
||||
|
|
||||
|
<record id="quant_search_view" model="ir.ui.view"> |
||||
|
<field name="name">quant.search.view.inherit.brand</field> |
||||
|
<field name="model">stock.quant</field> |
||||
|
<field name="inherit_id" ref="stock.quant_search_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//filter[@name='company']" position="after"> |
||||
|
<filter string='Brand' name="brand" domain="[]" context="{'group_by': 'brand_id'}"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<!-- Menu of Product Brands--> |
||||
|
|
||||
<menuitem id="product_brand_inventory" |
<menuitem id="product_brand_inventory" |
||||
name="Product Brands" |
name="Product Brands" |
||||
action="product_brand_action" |
action="product_brand_action" |
||||
parent="stock.menu_stock_inventory_control" |
parent="stock.menu_stock_inventory_control" |
||||
sequence="2"/> |
sequence="2"/> |
||||
</data> |
|
||||
</odoo> |
</odoo> |
Loading…
Reference in new issue