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

@@ -9,11 +9,11 @@
'summary': 'Product',
'description': "",
'website': 'https://www.odoo.com/page/crm',
'depends': [
'product'
'depends': ['product','base'
],
'data': [
'views/product_views.xml',
'views/partner_view.xml',
],
'demo': [

View File

@@ -2,4 +2,5 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import product
from . import product
from . import partner

View File

@@ -0,0 +1,15 @@
import time
import logging
from odoo import api, fields, models, _
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo.exceptions import ValidationError
from odoo.addons.base.models.res_partner import WARNING_MESSAGE, WARNING_HELP
from psycopg2 import sql, DatabaseError
class ResPartner(models.Model):
_inherit = 'res.partner'
street3 = fields.Char('Steet3')
street4 = fields.Char('Steet4')
street5 = fields.Char('Steet5')

View File

@@ -15,3 +15,6 @@ class ProductProduct(models.Model):
length = fields.Float('Length', digits='Stock Weight')
height = fields.Float('Height', digits='Stock Weight')
model_grade = fields.Char('Model/Grade')
rental_group_id = fields.Char('Rental Group')
group_id = fields.Many2one(
'stock.groups', 'Group', help="Select group for the current product")

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="ir.ui.view" id="res_partner_view_form_inherit">
<field name="name">res.partner.view.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="10"/>
<!--<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>-->
<field name="arch" type="xml">
<xpath expr="//field[@name='street2']" position="after">
<field name="street3" placeholder="Street3"/>
<field name="street4" placeholder="Street4"/>
<field name="street5" placeholder="Street5"/>
</xpath>
</field>
</record>
</data>
</odoo>

View File

@@ -11,12 +11,13 @@
<field name="arch" type="xml">
<xpath expr="//group[@name='group_general']" position="inside">
<field name="model_grade"/>
<field name="group_id"/>
</xpath>
<xpath expr="//group[@name='group_lots_and_weight']" position="inside">
<field name="width"/>
<field name="length"/>
<field name="height"/>
<field name="height"/>
</xpath>
@@ -24,7 +25,16 @@
</field>
</record>
<!-- <record id="product_template_form_view_rental_inherit" model="ir.ui.view">
<field name="name">product.template.inherit.stock.rental</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale_renting.product_template_form_view_rental"/>
<field name="arch" type="xml">
<group name="extra" position="inside">
<field name="rental_group_id"/>
</group>
</field>
</record>-->
</data>