mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -16,6 +16,7 @@
|
||||
"data": [
|
||||
"wizards/stock_pull_list_wizard.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"data/stock_pull_list_sequence_data.xml",
|
||||
],
|
||||
"installable": True,
|
||||
}
|
||||
|
||||
9
stock_pull_list/data/stock_pull_list_sequence_data.xml
Normal file
9
stock_pull_list/data/stock_pull_list_sequence_data.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<odoo noupdate="1">
|
||||
<record id="seq_stock_pull_list" model="ir.sequence">
|
||||
<field name="name">Stock Pull List</field>
|
||||
<field name="code">stock.pull.list</field>
|
||||
<field name="prefix">SPL/</field>
|
||||
<field name="padding">6</field>
|
||||
<field name="company_id" eval="False" />
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -238,8 +238,11 @@ class PullListWizard(models.TransientModel):
|
||||
return list(itertools.product(*options_list))
|
||||
|
||||
def _prepare_proc_group_values(self):
|
||||
# TODO: use special secuence to name procurement groups of pull lists.
|
||||
return {}
|
||||
vals = {}
|
||||
name = self.env["ir.sequence"].next_by_code("stock.pull.list")
|
||||
if name:
|
||||
vals["name"] = name
|
||||
return vals
|
||||
|
||||
def action_procure(self):
|
||||
self.ensure_one()
|
||||
|
||||
Reference in New Issue
Block a user