Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6130 Lượt xem

i have Sequence with name like OSXXX i create sheet for multi-pal companies but when i create my own company sequence work ok but other then my own company my sequence not work  

how i can handle this condition 

i want to create field with OSXXX Sequence for every company auto sequence.... 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

if you are saying that the sequence you have created is working for only a particular company in the instance, what you can do is that, activate the developer mode as well as multi company feature and navigate to Settings -> Technical -> Sequence and Identifiers -> Sequence , from here select your sequence and check whether the company field get value, if there is some company get selected in the field named Company, just remove it and check the working of the sequence.


Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

```

<record id="seq_ssr_master" model="ir.sequence">

<field name="name">SSR</field>

<field name="code">ssr.master</field>

<field name="prefix">OS</field>

<field name="padding">3</field>

</record>

```

but at the time of creating sequence its auto fill company id....

how i can manage during creating sequence company id will not fill

Add <field name="company_id" eval="False"/> this line along with it, see how sequence for sale order is created: https://github.com/odoo/odoo/blob/12.0/addons/sale/data/ir_sequence_data.xml

how can i create multiple sequence for mult-company in code xml guys.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
879
2
thg 7 25
1784
3
thg 7 25
2184
1
thg 7 25
1489
3
thg 11 24
361