← Back to team overview

openerp-india team mailing list archive

[Bug 939917] [NEW] stock warehouse address must display adderss not partner

 

Public bug reported:


IMHO <field name="partner_address_id" context="{'contact_display':'partner'}"/>
is wrong especially if company has multiple contacts (adresses)


/stock/stock_view.xml

        <record id="view_warehouse" model="ir.ui.view">
            <field name="name">stock.warehouse</field>
            <field name="model">stock.warehouse</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Warehouse">
                    <field colspan="4" name="name" select="1"/>
                    <field name="lot_input_id"/>
                    <field name="lot_stock_id"/>
                    <field name="lot_output_id"/>
                    <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
                    <newline/>
                    <field name="partner_address_id" context="{'contact_display':'partner'}"/>
                </form>
            </field>
        </record>
        <record id="view_warehouse_tree" model="ir.ui.view">
            <field name="name">stock.warehouse.tree</field>
            <field name="model">stock.warehouse</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Warehouse">
                    <field name="name"/>
                    <field name="lot_input_id"/>
                    <field name="lot_stock_id"/>
                    <field name="lot_output_id"/>
                    <field name="partner_address_id" context="{'contact_display':'partner'}"/>
                </tree>
            </field>
        </record>

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/939917

Title:
  stock warehouse address must display adderss not partner

Status in OpenERP Addons (modules):
  New

Bug description:

  IMHO <field name="partner_address_id" context="{'contact_display':'partner'}"/>
  is wrong especially if company has multiple contacts (adresses)


  /stock/stock_view.xml

          <record id="view_warehouse" model="ir.ui.view">
              <field name="name">stock.warehouse</field>
              <field name="model">stock.warehouse</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                  <form string="Warehouse">
                      <field colspan="4" name="name" select="1"/>
                      <field name="lot_input_id"/>
                      <field name="lot_stock_id"/>
                      <field name="lot_output_id"/>
                      <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
                      <newline/>
                      <field name="partner_address_id" context="{'contact_display':'partner'}"/>
                  </form>
              </field>
          </record>
          <record id="view_warehouse_tree" model="ir.ui.view">
              <field name="name">stock.warehouse.tree</field>
              <field name="model">stock.warehouse</field>
              <field name="type">tree</field>
              <field name="arch" type="xml">
                  <tree string="Warehouse">
                      <field name="name"/>
                      <field name="lot_input_id"/>
                      <field name="lot_stock_id"/>
                      <field name="lot_output_id"/>
                      <field name="partner_address_id" context="{'contact_display':'partner'}"/>
                  </tree>
              </field>
          </record>

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/939917/+subscriptions


Follow ups

References