Browse Source

Aug 24 [FIX] : Bug Fixed 'product_brand_inventory'

pull/280/head
AjmalCybro 2 years ago
parent
commit
da633c4d15
  1. BIN
      dark_mode_backend/static/description/assets/icons/._.DS_Store
  2. BIN
      gstin_verification_api/static/description/assets/.DS_Store
  3. BIN
      gstin_verification_api/static/description/assets/screenshots/.DS_Store
  4. BIN
      jazzy_backend_theme/static/description/assets/._.DS_Store
  5. BIN
      master_search/static/description/assets/icons/._.DS_Store
  6. BIN
      multicolor_backend_theme/static/description/assets/icons/._.DS_Store
  7. BIN
      multiple_order_confirm/.DS_Store
  8. BIN
      multiple_order_confirm/static/.DS_Store
  9. BIN
      multiple_order_confirm/static/description/.DS_Store
  10. BIN
      multiple_order_confirm/static/description/assets/.DS_Store
  11. BIN
      multiple_order_confirm/static/description/assets/modules/.DS_Store
  12. BIN
      orange_theme_odoo12/static/description/assets/._.DS_Store
  13. 23
      product_brand_inventory/README.rst
  14. 7
      product_brand_inventory/__manifest__.py
  15. 8
      product_brand_inventory/doc/RELEASE_NOTES.md
  16. 22
      product_brand_inventory/models/__init__.py
  17. 2
      product_brand_inventory/security/ir.model.access.csv
  18. 179
      product_brand_inventory/views/brand_views.xml
  19. BIN
      product_to_invoice/.DS_Store
  20. BIN
      product_to_invoice/static/.DS_Store
  21. BIN
      product_to_invoice/static/description/.DS_Store
  22. BIN
      product_to_invoice/static/description/assets/.DS_Store
  23. BIN
      product_to_invoice/static/description/assets/modules/.DS_Store
  24. BIN
      vista_backend_theme/static/description/assets/._.DS_Store

BIN
dark_mode_backend/static/description/assets/icons/._.DS_Store

Binary file not shown.

BIN
gstin_verification_api/static/description/assets/.DS_Store

Binary file not shown.

BIN
gstin_verification_api/static/description/assets/screenshots/.DS_Store

Binary file not shown.

BIN
jazzy_backend_theme/static/description/assets/._.DS_Store

Binary file not shown.

BIN
master_search/static/description/assets/icons/._.DS_Store

Binary file not shown.

BIN
multicolor_backend_theme/static/description/assets/icons/._.DS_Store

Binary file not shown.

BIN
multiple_order_confirm/.DS_Store

Binary file not shown.

BIN
multiple_order_confirm/static/.DS_Store

Binary file not shown.

BIN
multiple_order_confirm/static/description/.DS_Store

Binary file not shown.

BIN
multiple_order_confirm/static/description/assets/.DS_Store

Binary file not shown.

BIN
multiple_order_confirm/static/description/assets/modules/.DS_Store

Binary file not shown.

BIN
orange_theme_odoo12/static/description/assets/._.DS_Store

Binary file not shown.

23
product_brand_inventory/README.md → product_brand_inventory/README.rst

@ -1,8 +1,15 @@
.. 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/15.0/setup/install.html
- Install our custom addon
@ -15,17 +22,25 @@ 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>
Contacts
--------
* Mail Contact : odoo@cybrosys.com
Credits
-------
Developer: Sonu Soman - sonu@cybrosys.info
Developer: (V15) 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>`__

7
product_brand_inventory/__manifest__.py

@ -20,9 +20,11 @@
###################################################################################
{
'name': 'Product Brand in Inventory',
'version': '15.0.1.0.0',
'version': '15.0.1.0.1',
'category': 'Warehouse',
'summary': 'Product Brand in Inventory',
'description': 'This module lets you add '
'Brand in Inventory and for products.',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
@ -30,12 +32,11 @@
'website': 'https://www.cybrosys.com',
'depends': ['stock'],
'data': [
'views/brand_views.xml',
'security/ir.model.access.csv',
'views/brand_views.xml',
],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

8
product_brand_inventory/doc/RELEASE_NOTES.md

@ -3,3 +3,11 @@
#### 20.09.2021
#### Version 15.0.1.0.0
#### ADD
- Initial commit for Product Brand in Inventory
#### 18.08.2023
#### Version 15.0.1.0.1
#### UPDT
- Update Brand Group By in Inventory Report

22
product_brand_inventory/models/__init__.py

@ -1 +1,21 @@
from . import brand
# -*- 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

2
product_brand_inventory/security/ir.model.access.csv

@ -1,2 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_brand,access_product_brand,model_product_brand,,1,1,1,1
access_product_brand,access_product_brand,model_product_brand,,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_product_brand access_product_brand model_product_brand 1 1 1 1

179
product_brand_inventory/views/brand_views.xml

@ -1,86 +1,111 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="product_brand_id" model="ir.ui.view">
<field name="name">Brand Name</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="brand_id"/>
</field>
<!-- Form view edited of product template. -->
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.template.form.view.inherit.product.brand</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="brand_id"/>
</field>
</record>
</field>
</record>
<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>
<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>
<!-- Action for Product Brand-->
<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>
<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>
<!-- Product Brand Form view-->
<record id="product_brand_view_form" model="ir.ui.view">
<field name="name">product.brand.view.form</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>
<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>
</t>
</templates>
</kanban>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
</div>
</t>
</templates>
</kanban>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="brand_group_by" model="ir.ui.view">
<field name="name">product.template.search.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<filter string="Brand" name="Brand" context="{'group_by':'brand_id'}"/>
</xpath>
</field>
</record>
<!-- Group by for Brand in Product Template Search-->
<record id="brand_group_by" model="ir.ui.view">
<field name="name">product.template.search.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<filter string="Brand" name="Brand"
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"
name="Product Brands"
action="product_brand_action"
parent="stock.menu_stock_inventory_control"
sequence="2"/>
</data>
</odoo>
<menuitem id="product_brand_inventory"
name="Product Brands"
action="product_brand_action"
parent="stock.menu_stock_inventory_control"
sequence="2"/>
</odoo>

BIN
product_to_invoice/.DS_Store

Binary file not shown.

BIN
product_to_invoice/static/.DS_Store

Binary file not shown.

BIN
product_to_invoice/static/description/.DS_Store

Binary file not shown.

BIN
product_to_invoice/static/description/assets/.DS_Store

Binary file not shown.

BIN
product_to_invoice/static/description/assets/modules/.DS_Store

Binary file not shown.

BIN
vista_backend_theme/static/description/assets/._.DS_Store

Binary file not shown.
Loading…
Cancel
Save