add new module

This commit is contained in:
sonal arora
2020-07-21 10:09:46 +00:00
parent 800e7fdceb
commit c0d10e3fbe
1063 changed files with 243750 additions and 5 deletions

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Inventory Groups',
'version': '1.0',
'category': 'Inventory/Product',
'summary': 'Enable to make arrangement in Groups',
'description': "",
'depends': ['base'],
'data': [
'security/ir.model.access.csv',
'views/groups.xml',
],
'demo': [
],
'css': [],
'installable': True,
'application': True,
'auto_install': False
}

Binary file not shown.

View File

@@ -0,0 +1 @@
from . import groups

View File

@@ -0,0 +1,21 @@
from odoo import _, fields, models, api
class Inventorygroups(models.Model):
_name = "stock.groups"
_parent_name = "parent_id"
_rec_name = 'complete_name'
name = fields.Char(required=True)
parent_id = fields.Many2one('stock.groups', "Parent Group")
complete_name = fields.Char(
'Complete Name', compute='_compute_complete__group_name',
store=True)
@api.depends('name', 'parent_id.complete_name')
def _compute_complete__group_name(self):
for category in self:
if category.parent_id:
category.complete_name = '%s / %s' % (category.parent_id.complete_name, category.name)
else:
category.complete_name = category.name

View File

@@ -0,0 +1 @@
,apagen,apagen-One-Z1402,16.07.2020 21:13,file:///home/apagen/.config/libreoffice/4;

View File

@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_groups,stock.groups,model_stock_groups,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_stock_groups stock.groups model_stock_groups base.group_user 1 1 1 1

View File

@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<odoo>
<record id="inventory_groups_arrangment_view_form" model="ir.ui.view">
<field name="name">stock.groups.form</field>
<field name="model">stock.groups</field>
<field name="arch" type="xml">
<form>
<field name="name" placeholder="Name"/>
<group>
<field name="parent_id"/>
</group>
</form>
</field>
</record>
<record id="inventory_groups_arrangment_view_action" model="ir.actions.act_window">
<field name="name">Groups</field>
<field name="res_model">stock.groups</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create Groups
</p>
</field>
</record>
<menuitem
id="inventory_groups_arrangment_view_menu"
name="Groups"
action="inventory_groups_arrangment_view_action"
parent="stock.menu_product_in_config_stock"
/>
</odoo>