[FIX] purchase_requisition: company of sequence
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/odoo#31153
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<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">
|
||||
@@ -29,6 +30,7 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user