Skip to content

Commit

Permalink
[FIX] purchase_requisition: company of sequence
Browse files Browse the repository at this point in the history
In a multi-company environment, the creation of a purchase requisition
fails in a company with ID != 1 because of an empty name.

This is because the sequence is created for the company with ID = 1
only.

opw-1941552

closes odoo#31153
  • Loading branch information
nim-odoo committed Feb 15, 2019
1 parent a463a87 commit 88f5239
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
<field name="code">purchase.requisition.purchase.tender</field>
<field name="prefix">TE</field>
<field name="padding">5</field>
<field name="company_id" eval="False"></field>
</record>

<record id="seq_blanket_order" model="ir.sequence">
<field name="name">Blanket Order</field>
<field name="code">purchase.requisition.blanket.order</field>
<field name="prefix">BO</field>
<field name="padding">5</field>
<field name="company_id" eval="False"></field>
</record>
</data>
</odoo>

0 comments on commit 88f5239

Please sign in to comment.