← Back to team overview

openerp-india team mailing list archive

[Bug 908189] Re: ir_sequence - code must be unique

 

in sale/sale_sequence.xml

        <record id="seq_sale_order" model="ir.sequence">
            <field name="name">Sales Order</field>
            <field name="code">sale.order</field>
            <field name="prefix">SO</field>
            <field name="padding">3</field>
            <field name="company_id" eval="False"/>
        </record>

it seems this loads without company_id

IMHO all sequences must have a company_id
especially
        'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'ir.sequence', context=c),
always creates sequences WITH company_id
 

** Changed in: openobject-addons
       Status: Incomplete => 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/908189

Title:
  ir_sequence - code must be unique

Status in OpenERP Addons (modules):
  New

Bug description:
  IMHO the code must be unique (for lookup via code) or null (for lookup
  via id from journals)

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


References