logo
down
shadow

OpenERP - Get leads data in partner form view


OpenERP - Get leads data in partner form view

Content Index :

OpenERP - Get leads data in partner form view
Tag : xml , By : Juan Pablo
Date : November 14 2020, 05:18 PM

may help you . I'm trying to display lead data related to a partner. , try this,
<record id="view_partner_property_form1" model="ir.ui.view">
    <field name="name">res.partner.property.form.inherit1</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="arch" type="xml">
        <xpath expr="//notebook/page[@string='History']" position="inside">
                <!-- Customer Leads Group -->
            <group name="grp_leads_history" string="Leads History">
                <field name="lead_ids" colspan="4" nolabel="1">
                    <tree string="Partner Leads" editable="false" create="false" delete="false">
                        <field name="name" readonly="True"/>
                        <field name="create_date" readonly="True"/>
                        <field name="date_deadline" readonly="True"/>
                        <field name="priority" readonly="True"/>
                        <field name="planned_revenue" readonly="True"/>
                        <field name="probability" readonly="True"/>
                        <field name="state" readonly="True"/>
                    </tree>
                </field>
            </group>
        </xpath>
    </field>
</record>

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

openerp wizard is calling base res.partner form instead of mine


Tag : python , By : lewing
Date : March 29 2020, 07:55 AM
I wish this help you The search_view_id field in an action definition is used to specify the search view to use, not the form view, as the name implies. If you want to use a specific form view you should use the view_id field instead (which is used to specify the main view to open, typically a form or tree one). And by the way all the view selection fields in an OpenERP action definition may be overridden by specifying a views field: an ordered list of pairs (view_id, view_mode) where view_id can be False to use the default view. This is a computed field that the framework automatically adds on regular actions, but may be manually added to a custom action returned by a Python method.
Here is how you could do it in a Python method:
# assuming partner_id, context, form_view_id are defined here
return {
    'type': 'ir.actions.act_window',
    'view_type': 'form',
    'view_mode': 'form,tree',
    'res_model': 'res.partner',
    'res_id': int(partner_id),
    'context': context,
    'view_id': form_view_id, 

    # optionally, you could refine by specifying the 'views' explicitly
    'views': [(form_view_id, 'form'),  # open my form view first,
              (False, 'tree')]         # then default tree view
}

OpenERP - not getting list of customers from res.partner on tree view


Tag : python , By : user133834
Date : March 29 2020, 07:55 AM
around this issue When you are inheriting a model and creating another model, the new model will not have the data from inherited model. Here you inherited 'res.partner' and created new model 'delivery.forcast'. So data will be stored in new table 'delivery_forecast'. You have to specify the table name of the inherited model in order to show all the data. ie, You have to give like this _name = 'delivery.forcast' _inherit = 'res.partner' _table = 'res_partner' Then it will show all the data in res_partner

Extending re.partner, in OpenERP


Tag : python , By : keird
Date : March 29 2020, 07:55 AM
hop of those help? A few problems here:
You have defined both a _name and a _inherit and they have different values. There is nothing wrong this if what you want is a whole new table called starstream.customers whose columns are a superset of the res.partner model with your new ones added in but then you are using the existing res_partner table for storage.

How to filter contact person for partner in OpenERP?


Tag : python , By : Simon Capewell
Date : March 29 2020, 07:55 AM
I hope this helps you . I want to add partner's contact person and it Should filter customers contacts based on partner , The domain attribute is used to filter records. Try this:
<field name="partner_contact_id" domain="[('parent_id', '=', partner_id)]" />
<field name="partner_id" on_change="onchange_partner_id(partner_id, context)" ...your other attributes.../>
def onchange_partner_id(self, cr, uid, ids, part, context=None):
    res = super(MyCustomModel, self).onchange_partner_id(cr, uid, ids, part, context)
    res['value'].update({'partner_contact_id': False})
    return res

Show partner address into tree view - OpenERP


Tag : python , By : user157654
Date : March 29 2020, 07:55 AM
With these it helps As per my point of view, context is used for often available as contextual actions on resources;
context is nothing but a python directory.
Related Posts Related QUESTIONS :
  • Eclipse complains android:scrollbars and android:fadingEdge do not allow Strings - includes code
  • DTD (or XSD) problem with duplicate name element having different scopes
  • Most efficient way to store list structure in XML
  • What is the correct syntax for XSD to restrict attrributes values in the elements list?
  • Web based XML Editor
  • Looking for a free xsd scheme editor
  • Use XSLT to arrange a list of items in a table
  • XML: Check if anything exists between two nodes
  • Metatool for automatic xml code generation
  • Looking for a library of XSLT to create SVG charts
  • How to decide when to use XSD or DTD?
  • BlackBerry - Extract data from 3rd nesting level of xml
  • XSD schema for recursive XML
  • nokogiri xml unescape
  • How to visualize an XML schema?
  • NSString to NSData Failing in Encoding
  • XmlTextWriter.WriteFullEndElement tags on the same line
  • The case of "id" attribute when signing an element in a XML file
  • Increment a counter in VXML
  • how to build xml schema
  • How define several elements with same name, but different type in xsd:choice element?
  • How can you tell if an XMLlist object in AS3 contains a node?
  • Can XML schema be written to allow xs:attribute of either xs:date or xs:dateTime?
  • how to insert a SAML Assertion to SOAPHeader
  • How to migrate from XslTransform to XslCompiledTransform
  • Is there any better IDOMImplementation other than MSXML?
  • Indesign and XML - how to auto flow into multiple pages with differing styles?
  • XSLT - Add a XML node as header
  • Would like to validate a reference to a container in an XML
  • Dataweave - Trying to write END_DOCUMENT when document has no root
  • How can i export Orbeon form data into xml
  • Using XMLQUERY to retrieve specific XML data
  • Is there a semantical difference between <tag /> and <tag></tag> in XML?
  • Importing xml with nested nodes into Access (and needing to transform the xml into a 'flat' structure with xsl)
  • Why is my modified XML not saving the modified values?
  • How to ensure certain immediate siblings always appear in a specific order?
  • How do you handle complex namespaces in XQuery/BaseX?
  • Removing invalid characters from XML in Python3 with etree
  • Grouping/Paginating items from two different parents
  • contracted/expanded tabular display for all principal xml lines
  • How to establish a custom xml serialization with content negotiation in spring boot 2
  • Overcome 2GB limit on XML output in SQL Server
  • How to add a node to an existing XML document using powershell
  • Why is the attribute also append to the child node?
  • Escaping a Dash in XML Element Name With Powershell
  • What is the use of XML?
  • Create dynamic list/array of string - int pairs based on XML input
  • How to flatten a very complex XML into a new XML containing all nodes at root level
  • Looping and summing values from a different tag values in XSLT
  • XML to csv do the correct xslt
  • XML 'name' attribute, and XML variable type with SelectNodes
  • Remove elements from XML based on complex condition
  • Doctrine Invalid Mapping File Exception when trying to generate entities
  • Is it possible to use icons next to radio buttons in odoo 12
  • View responsible for top navbar in Odoo12
  • Best way to query different xml elements as one column
  • unexpected token while reading xml to string in JSR223 sampler
  • Concatenate XML in SQL stored Procedure
  • XSL - Only getting data from one node in my XML
  • XML schema - No matching global declaration available for the validation root
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com